Unofficial Hacker News companion — get notified on comment replies, and more.

All software sucks (2007) (opens external site)

171 points by archargelod 10 hours ago harmful.cat-v.org 204 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (5)

  1. I'm struggling to understand why head is "harmful" as compared to sed.
    Replies (2)
    1. Probably that it's completely redundant if you have sed. The programs that you don't have cause you the least trouble.
      Replies (1)
      1. Amusingly, the 'completely redundant' argument would have us not use Rob Pike's famous 'vis' because it is redundant given the prior existence of 'cat -v'.

        But that's actually the shibboleth that marks this kind of Unix nostalgia, including in the very domain name here. There isn't really an argument that one can make in favour of 'sed' instead of 'head' that does not also work for 'cat -v' instead of 'vis'.

        Replies (1)
        1. I didn't remember vis. I don't know that I've ever used it. According to the man page "It differs from cat -v in that the form can be unique and invertible."
    2. The author is an advocate for Plan 9, so I am going to guess that it's because Plan 9 has "sed" but not "head". My guess is based on how "sed" and "tail" are listed in this document, but no "head":

      https://p9f.org/sys/man/1/INDEX.html

      https://man.cat-v.org/plan_9/1/

      Maybe someone who has used Plan 9 can elaborate more on why sed is better?