Hacker News new | comments | show | ask | jobs | submit login

I more read it as "stop wasting time arguing over tiny details and code", rather than "I'm bad at coding and don't like being told what to do".

Things like the two you mentioned are useful as a code standard, but they're also things that junior devs should be learning from senior devs in the process of work anyway. There's no point slavishly following a standard if you're going to never learn from it.




Yeah there is. Preventing bugs due to coder inexperience is valuable in its own right.


No, coding standards bicker about such frivolous things as whether to use _, m, or m_ for member variables. Just pick one and stick with it. Arguing over one or the other is both useless and utterly stupid.


> Just pick one and stick with it.

Well, by definition, you've just created a coding standard.

We often just start out using the standard of someone who has thought it through.

Crockford for JS, Microsoft for C# and Google for Java.

If someone raises a complaint, we do consider it but then the onus is on the developer to justify why it should be changed and that means the developer has to have thought out his/her idea, which is what you really want to begin with.

If it's something as trivial as marking members with "_" or "m_" then it will be a non starter due to,as you said, it just doesn't matter as long as your consistent.


If you have a standard then you've already picked one, there isn't any argument at that point.


Picking one and sticking with it is what a coding standard is.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: