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

I'll find the quote eventually, but this caught my eye:

>If you need more than 3 levels of indentation, you're screwed anyway, and should fix your program.

Got me thinking. I might heighten up to 4 or 5 simply because modern code needs 2 indents just to start writing a function in a struct. But the quote wasn't as crazy as I thought, even 30 years later.




In code reviews I call them sideways christmas trees and mark it as a bug.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: