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

> then called each of those functions sequentially in a single "run" function

If a lot of conditions are checked sequentially, why not write down exactly that? The sequence itself may well be what a reader would like to know.

The one benefit of the added function calls would be that the definition order does not need to change even if there are future changes to the execution order. But that is exactly also what adds mental overhead for the reader.

If the names add context, then that's a perfect use for comments.



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

Search: