• graham1@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    15 days ago

    Is it intentional to have so many filesystem interactions and subprocess launches?

      • I Cast Fist@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        15 days ago

        I guess the obvious question now is “why”? From a glance, it’s pretty clear that one of the things that you really should’ve done is separated the file reading/writing into separate functions, instead of having every function open-read-write cat.txt