Spyke

Replies

Comment on

How do you structure your models save/load code?

Usually my models only store data, meaning the files that contain them don't have much code. The decision also depends on the tools you are using and who you are working with. I would fallback to the rule of separation of responsabilities and write a new class for the purpuse of serializing the model (which could and should also serialize similiar models). This way is universal in any language and can easily be understood by future you and colleages.

Comment on

What should semantic diffs highlight: The change or its effect?

The most obvious option: highlight what changed, the whole string. If you changed the string from interpolated to non-interpolated, the meaning of the whole string changed; it is no longer a method to concatenate variables, it has become a literal string.

Same for the example of single to double quotes. In some languages, double quotes are only used in specific contexts, so its use changes the meaning of the code. The post seems to dismiss this fact too easily.

Comment on

What is one moral you have that most people don't agree with?

Reply in thread

Immigration helps the common man by filling low level positions that most natives will not take. A lot of immigrants don't know the local language and/or the local culture, so it is fair that they take free, unwanted jobs.

Further, there are a lot of protections for the workers, including immigrants, meaning wages and working conditions do not fall below acceptable standards. Immigrants strengthen the core pillars of industry, which might even lead to an increase in productivity and better conditions. They contribute to the economy and help pay public services which benefits the broader community.

Comment on

How do plumbers exist if there's no junior plumbers

Reply in thread

Junior compiler writers exist.

You can have a junior write compiler code, but you won't have a junior compiler writer. It's a very specific niche topic which does not have the demand for this.

They don't teach CLIs and git and debugging in uni.

Well, they do. Version control is extremly useful for doing projects especially in groups and debugging is a necessary tool for building systems. These are not the main topic of the courses, but they are taught and practically mandatory.