7 ms·
That's hardly the point. The point is that there is a single format for the language itself and you don't have to argue about spaces vs tabs vs when to line bre
by leononame 2y ago
That's hardly the point. The point is that there is a single format for the language itself and you don't have to argue about spaces vs tabs vs when to line break, whether you want trailing commas and where to put your braces.
You can format on save or in a pre commit hook. But that the language has a single canonical format makes it kind of new.
- pjmlp 2y agoYes, because there is no one in the room able to configure the formating tool for the whole SCM. A simple settings file set in stone by the CTO, such a hard task to do. The fact that is even a novelty unaware of, only confirms the target group for the language.
- utrack 2y agoIMHO it's not about the standards in your company, it's more about being able to parse any random library on GitHub etc with your eyeballs.
- pjmlp 2y agoI use compilers and IDEs for that.
- geodel 2y ago> A simple settings file set in stone by the CTO, such a hard task to do. It does seem hard thing to do. Working over dozens of enterprise shops in last 15 years I have not see such setting done or dictated at all. So whole codebase used to be mishmash of person styles.
- pjmlp 2y agoA clear management failure then.
- derefr 2y agoAny CTO who is aware of the impact that having an incoherent programming style can have on employee productivity, is likely going to arrive at the conclusion that the most efficient way to set such policy is to "outsource" it to the programming language, by requiring projects to use an opinionated language. Then again, any such CTO is likely also going to be someone who tends to think about things like "the ability to hire developers already familiar with the language to reduce ramp-up time" — and will thus end up picking a common and low-expressivity opinionated language. Which usually just means Java. (Although Golang is gaining more popularity here as well, as more coding schools train people in it.)
- pjmlp 2y agoIt is going to be a very clueless CTO, if they aren't aware of tooling that is even older than themselves.
- theshrike79 2y ago> A simple settings file set in stone by the CTO, such a hard task to do. And then you have a 100 companies with 100 CTOs resulting in 100 different styles. With Go there is only one style everywhere.
- pjmlp 2y agoMost people only care about the code of their employer.
- jntun 2y ago[flagged]
- derefr 2y agoMany shops have to write and submit patches to upstream projects. Some shops have to maintain their own "living fork" version of an upstream project.
- pjmlp 2y agoYeah, and apparently use Notepad, since they are unable to have a configuration file for formatting.
- theshrike79 2y agoVery few employers do 100% of the code in-house, everyone uses libraries and code from the internet. Which will have a different style you need to contend with. But with Go every single sane piece of code you find will be formatted with gofmt and will look mostly the same.