Sometimes I create a solution to a simple problem. However instead of making use of the solution, I keep extending it unnecessarily. This is why for this kind of project, I want to systematically restrain my future self from adding new features beyond the initial vision e.g. by actively refusing generic and re-usable code.

What is the search engine friendly term for this approach or at least for this situation? “Ad-hoc programming” may be literally what I’m talking about, but in practice it’s associated with unplanned happenings.

  • Palestine WIll Be Free@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    11 days ago

    To my untrained ear, it sounds like you’re using a dynamically typed language and wishing you had more type safety and guarantees about your programs.

    What if I told you that by switching to a statically typed, strict, compiled language, you could have that safety while also being able to make it extensible and polymorphic?