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. 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 (: