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

The part about indentation is a bad practice to follow. Indenting the code that way is not maintainable. I witnessed that multiple times in my career and adopted three simple rules:

 1. Use only one space character between any two words. 2. Use only one tab (4 spaces) per indentation level. 3. Use no more than two blank lines to vertically separate parts of the code. 
These three rules are simple, easy to remember and I'm applying them to any language I work with.


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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