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

If the amount of time it takes to type your code is the biggest bottleneck in your project and you need to optimise for amount of characters written you're either the most genius 100x coder ever or ... not one of the best.

You should always optimise your (work) code for readability, even if it takes longer to type. I've spent way too many hundreds of hours of my 25 year career untangling overly clever code just to figure out what's wrong.

If you can't be sure the person who has to open up your clever code at 3AM to fix a live production issue can instantly see what's going on with the code, write more readable code. Preferably ask someone to review the pull request and see if they can understand what's going on.

You can be as clever and terse you want on your own time, but on company time write readable code even if it's verbose.



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

Search: