News for hackers. Stuff that matters.
Re:The 80/24 Rule by dgb23 on Friday November 15, 2019 @11:52AM (#21546386)
I understand what you mean. I think a nice middleground between our preferences would be scoped blocks with explicitly passed vars. This would keep the readability you want but still have the other benefits I mentioned. Plus it would be simpler to refactor when needed.
Re:The 80/24 Rule by horsawlarway on Friday November 15, 2019 @12:19PM (#21546650)
This is a good point, and nicely matches a pattern I find myself using in JS where I just define the sub methods inline in the larger method.

You get the niceties of a name for the folks who want it, but the code is still grouped nicely and it's easy to walk through the whole operation.

I see this much less often in languages where scoping is less flexible though.