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.

Follow

@bigzaphod I've started using code regions instead to remind myself that it's still a mess, and only create separate private methods when I need to reuse code. That's helped keep things actually clean.

Sign in to participate in the conversation
Switter

Switter, a sex work-friendly social space. Check out Tryst.link, our verified escort directory. Looking for listings? Visit Switter Listings Looking for Backpage alternatives?