• graham1@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 month ago

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

      • I Cast Fist
        link
        fedilink
        arrow-up
        6
        ·
        1 month 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