Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: Why do functional programmers hate loops (for, while, etc.)?.
We should just be careful when using them just like any other nested structure (if/else/while-do/switch/select/etc.)
Like if I see ``` for ... { for ... { if ... { } else { } // code here ... } ... } ```
That is objectively bad code and not readable.
Nobody hates anything. Most of us just dont like how people misuse them to write bad code because their managers pressure them.
There are no comments on this comment yet.
We should just be careful when using them just like any other nested structure (if/else/while-do/switch/select/etc.)
Like if I see ``` for ... { for ... { if ... { } else { } // code here ... } ... } ```
That is objectively bad code and not readable.
Nobody hates anything. Most of us just dont like how people misuse them to write bad code because their managers pressure them.