3 ms·
did anyone else read this as '... because I am shit at my job'? I'd accept an argument against poor, or draconian standards, but actually standards can stop pe
by jheriko 14y ago
did anyone else read this as '... because I am shit at my job'?
I'd accept an argument against poor, or draconian standards, but actually standards can stop people from doing dumbass stuff or hitting subtle gotchas - esp. useful for junior developers who might not understand the intricacies of static initialisation order or memory alignment in C struct layout...
- nicholassmith 14y agoI 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.
- chris_wot 14y agoYeah there is. Preventing bugs due to coder inexperience is valuable in its own right.
- brokenparser 14y agoNo, 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.
- tterrace 14y agoIf you have a standard then you've already picked one, there isn't any argument at that point.
- icebraining 14y agoPicking one and sticking with it is what a coding standard is.
- chollida1 14y ago> 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.