‹ BackHN Continuity

Thread

Telling a Computer to Do Things

91 points · 37 comments · vismit2000

  1. happyPersonR · · focus · HN ↗
    I’m going to say something … and it might trigger folks

    Learning and getting good at shell scripting is something that takes a while usually. I would recommend that people new at shell scripting actually try to use Python instead writing shell scripts where possible.

    I’ve seen people not use traps, not know when to use set properly, xargs if you don’t know what you’re doing with it is just a giant foot cannon, and folks new at shell scripting don’t know how to debug running shell processes.

    They may have learned some or all of these things for python?(please? )

    1. marcosdumay · · focus · HN ↗
      > They may have learned some or all of these things for python?(please? )

      On other languages those things are either obvious because you have to write the behavior yourself, or fail loudly in a way that requires you to learn them before your code will run.

      You don't have to hope. The same people that fall to the foot-guns in sh don't make the same mistakes when they write it in python.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.