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

It might sound like a good idea to precisely describe how code should be written, until you realize it's inefficient and useless.

Code coherence can be accomplished with more relaxed rules if you delegate more responsibility to your engineers.



> Code coherence can be accomplished with more relaxed rules if you delegate more responsibility to your engineers.

Please elaborate.


I think consensus through code review is better as compilers and languages evolve. If you write rules for everything you spend your time checking for compliance and perhaps rewriting rules instead of relying on a more organic code quality assurance.

You also want your engineers to think by themselves instead of hiding behind a rules book.


Code style doesn't dictate what your engineers build, it just makes their code easier to review and maintain. Code smells, foreign conventions, and inconsistency all make reviewing and editing code harder.


Some coding style guides amount to an obsessive compulsive disorder. They focus on trivialities, like an extra space between parameters or the placement of braces around blocks of code.




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

Search: