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 203 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (6)

  1. > "suckless" software lists where they confuse simplicity with reliability or quality

    because simple and elegant code is really more reliable and easier to maintain than complex code, also it's not just about simplicity but unix philosophy of "do one thing well"

    > Very few are going to prefer ed to anything else like vim/emacs or even nano.

    you seem to be confusing the amount of code to do the same thing vs the scope of the whole program / application, vim/emacs clearly do more than simple text editing, this isn't a fair example, it's like comparing tetris and GTA VI because "both are video games"

    Replies (1)
    1. The example of ed being preferable to vim/emacs is from the article.
      Replies (1)
      1. ed was designed to edit text files on a 110 baud teletype or completely dumb "glass tty." For simply editing a line of text, it probably is really efficient for a user who knows it well. It's obviously pretty terrible at or incapable of doing anything else.
        Replies (2)
        1. Well, then George Coulouris's em obviously "sucks less" than ed and the list compiler did not go nearly far enough. (-:
        2. Had a surprise use-case a few days ago. Changed /etc/fstab for the root mount on Ubuntu 24.04. System came up with a broken partition, because this setting was unsupported. (Yes, RTFM. But tune2fs, mkfs.ext4, ext4(5) even reference rumors, as per Dan Luu. Read them. Didn't help.)

          For some reason, the Ubuntu-systemd-tmpfs-whatever fell over and even after force-remounting root read-write (which succeeded) and opening /etc/fstab to remove the offending option, sudo vim failed due to a tmp file allocation failing. It couldn't display the file on the system console!

          Using ed(1) worked and the offending line in /etc/fstab was fixed with a crude `s///` command.

          Never thought a machine could be bricked so hard that ed(1) kept working after vim failed on a Ctrl-F1 Linux terminal. But Ubuntu managed that.

          Replies (1)
          1. You may have been able to run vim with `-n -i NONE`, to avoid creating any temporary files. I guess you could also have done the edit with sed itself? But yeah, nothing wrong with ed (: