Ask HN:working with a company with anal coding standards
I am a humbly good programmer who always gets a good job done (speed/meeting specs)
I do not care for other people's arbitrary coding conventions. Not do I care about wasting time writing tests. I hate camelCasing. Is it getDb() or getDB()? I don't care. Keep it as getdb() and don't waste my fucking time.
Now apparently my company will adopt strict code conventions and will make committing impossible if it doesn't meet the scheme. How have you got around this?
15 comments
[ 4.4 ms ] story [ 20.8 ms ] threadBooks such as "Code Complete"[1] and "Clean Code"[2] should help you with that transition.
[1] http://www.amazon.com/Code-Complete-Practical-Handbook-Const...
[2] http://www.amazon.com/Clean-Code-Handbook-Software-Craftsman...
If you are a "humbly good" programmer then you should be able to work with code conventions.
I have seen numerous counts of "He is fast and efficient, but we end up suffering due to the (non) maintainability of his code", followed by "We had to let him go." or "He has been moved to this sole person project."
Your call.
Camelcase is something that you pretty much come to accept as soon as you start writing OO Perl.
Unless camelCasing shot your pa, this seems like a waste of perfectly servicable animosity.
Don't get me wrong, there are plenty of times where the standard is little more than a person with petty power turning their personal preferences into an enforced standard. There are also times when standards are applied to workflows that don't need standards because the product will never be touched again.
Plenty of organizations have standards because it looks good on a list of QA practices. Only a subset of those organizations enforce them with a sustained effort.
The fight will be vicious because the stakes are so small.
As an aside: code expected to be replaced "in two months" has a horrible habit of still being around in 10 years.