News for hackers. Stuff that matters.
Re:The 80/24 Rule by agapon on Friday November 15, 2019 @05:42AM (#21543831)
Just my two cents. If your A, B, C are neatly separated, then good. But it's way too easy (especially for a "quick hack" type of programmers) to introduce hidden dependencies like a goto from the middle of A to the middle of B, or C depending on a variable that was implied to be internal to B. Having separate functions helps to avoid some of such accidental dependencies. But, of course, the functions can still "communicate" via the global state or a shared state in a mutable object.
Re:The 80/24 Rule by coredog64 on Friday November 15, 2019 @07:02AM (#21544157)
How many times has it turned into this:

DoA(DoAllContext ctx);

Re:The 80/24 Rule by ebiester on Friday November 15, 2019 @08:55AM (#21544752)
That tells me that DoAllContext should be a class itself that doA belongs to, or that DoAllContext should be on the class itself, and the method itself should be the class.

This is, of course, when we're talking about programming in Objects.