Programming is great because you can just take that huge messy chuck from the middle of your function and hide it away under a new name in a new function and feel good about how you "cleaned up" the original function by abstracting the internals.

This is exactly how I used to clean my room as a kid - I'd refactor all the junk on the floor to be under my bed. Boom - problem solved.

@bigzaphod Once seem an undergrad have every single expression as a separate function... I imagine it’s what Perl is supposed to look like but this was Java 101...

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!