Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Yes, 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.


> 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.


Most people only care about the code of their employer.


Many shops have to write and submit patches to upstream projects. Some shops have to maintain their own "living fork" version of an upstream project.


Yeah, and apparently use Notepad, since they are unable to have a configuration file for formatting.


Very 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.


> 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.


A clear management failure then.


Any 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.)


It is going to be a very clueless CTO, if they aren't aware of tooling that is even older than themselves.


IMHO 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.


I use compilers and IDEs for that.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: