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

I don’t think it’s that hard to learn actually. This works:

1. Before writing a class or a function write comments about what the code will do (unless it’s absolutely trivial)

2. Check if the comments make sense

3. Write the code

That simple practice almost guarantees understandable code.



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

Search: