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

Perhaps the problem is that we've stopped teaching people about coupling and cohesion, along with the mechanism of stepwise refinement.

We abstract to functions to reduce cognitive load and to allow scope rules and information hiding within the language to prevent local variables becoming pseudo globals.

The whole premise of the 'goto consider harmful' structured programming movement was to allow us to replace control structures with a single black box consisting of input-process-output, which aided in reasoning.

The premise was to construct the program from cohesive functions that are lightly coupled.

When did we move away from that?



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

Search: