News for hackers. Stuff that matters.
Re:“What if it changes?” by biorach on Monday May 23, 2022 @08:26AM (#31478103)
> Doing this too much

ok, so you're talking about overdoing it. It's still a good approach when done right.

Re:“What if it changes?” by BigJono on Monday May 23, 2022 @07:43PM (#31486243)
Not really, unless "done right" is for like a 2000 line function or something.

If code is running once in order, there's no reason to break it up into functions and take it out of execution order. That's just stupid.

Re:“What if it changes?” by JJMcJ on Monday May 23, 2022 @07:53PM (#31486313)
Martin Fowler, in his book "Refactoring" outlines circumstances were you can leave bad code alone.

Basically if it works and you don't have to touch it to change it, leave it alone.

Re:“What if it changes?” by biorach on Tuesday May 24, 2022 @02:05PM (#31495469)
I think you've completely missed the point.