HN2new | past | comments | ask | show | jobs | submitlogin

I'll present a different take. There are some basic things you can do to make your code more readable:

- avoid double negations

- use grep-pable names and avoid string interpolation

- keep code duplication if that version is more readable and maintainable.

I'd love to see a longer list. In my experience, engineers too often code as if keeping the code as short as possible is what matters, instead of optimizing for code that is easy to read.



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

Search: