Liralen Li (liralen) wrote,
Liralen Li

Showing my Age

Actually, what's showing is years of designing, debugging, and working in a system that was entirely OOP, nicely encapsulated. I seem to find it easier to think in OOP.

I'm completely redesigning a script I did in Perl and using the OOP abilities it has and it's entirely satisfying. I'm not nearly as confused as when I was writing the script 'straight' and I am finding it totally clarifying to be able to concentrate on Just One Thing In Each Class. Helps having very distinct objects in my system to start, but what I took weeks to write in a spaghetti script may well take only a few days with a very clean, limited interface for each module and I'm not only extending the data being tracked by an order of magnitude, but this should make further extensions transparent.

It's surprising me to find that I am so biased towards a particular paradigm, but I won't argue if it makes it easier to write and easier, later, to change as the underlying data structures may well change in the next release or two, and if I keep my interfaces clean, it'll mean that I only change what I need to instead of looking for it across the whole damned thing. It also surprises me that Perl is so easy to use in this way, though, perhaps, it shouldn't.

  • Bao-zi My Way

    We've been doing a lot of experimental cooking during the pandemic, much as everyone else has been. Some notable highlights have been the TikTok…

  • New Growth

    It's funny how something as simple as a toothbrush working again as it should could be a sign of hope. Small things working as they ought to. The…

  • Still Sad and Observations about the Longmont Police

    I burned Hell Money for Morgan when he died during COVID in an ICU for an infection of the ankle. He was younger than I, and he was a kind man…

  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.