Over the decades I’ve seen the praise and critique of the “Unix way”. I don’t remember reading about the aspect I’ll describe below. This might be a banality, and I haven’t invested much thought into it either. I’m just curious to hear your opinions.

At the core of the Unix way is that tools should do just one thing. Users very often need results that can only be achieved after doing several things. With only single-purpose tools at hand, users have to integrate them. In other words, the tool authors delegate integration to the users.

Here’s the idea I want to discuss. In programming languages, integrating various modules to achieve a goal is already a complex task because we often have to handle numerous failure modes and edge cases. In shell scripts this is much worse, since shells are more limited than programming languages. Writing a tool that does only one thing looks like avoiding the most complicated task. Which leads to a conclusion that the Unix way only works well in a rather small fraction of use cases; the majority of cases are better served by different approaches.

What do you think?

  • aliceitc@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    2
    ·
    2 days ago

    What does QnD mean here? Sorry if it’s a stupid question, but I tried searching google and Wikipedia and got nothing relevant

      • aliceitc@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        2
        ·
        1 day ago

        Ah yes! I know the expression and the meaning, but I’ve never seen that abbreviation before! You learn something everyday! Thank you very much! (And I agree with your original comment)

      • cyphear@thelemmy.club
        link
        fedilink
        arrow-up
        3
        ·
        1 day ago

        Sometimes I’m looking for a throwaway script that only does one thing and it doesn’t necessarily need to be pretty. I’m not looking to make it publicly used or even to be repeatable. Like the famous Todd Howard quote, “it just works.” QnD is the best option.