News for hackers. Stuff that matters.
Re:TigerStyle: Coding philosophy focused on safety, performa... by AnimalMuppet on Friday November 28, 2025 @10:58AM (#46079759)
How about "splitting for comprehension's sake"?

If I have a huge function, and I can peel parts off into sensible well-encapsulated sub-functions, and I name them well, then my ability to comprehend the whole goes up.

If I do that, future me will thank me, because I will almost inevitably be back to that function at some point.

But for this to work, the sub-functions have to really do what they say, and not do anything more. I have to be able to trust that I can understand them by just their name and arguments.

There are no comments on this comment yet.