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

All software sucks (2007) (opens external site)

160 points by archargelod 8 hours ago harmful.cat-v.org 185 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (15)

  1. While the sentiment might ring true, this list is similar to most "suckless" software lists where they confuse simplicity with reliability or quality. Usually they mix in a fair bit of nostalgia as well. Very few are going to prefer ed to anything else like vim/emacs or even nano.

    IMHO we should reach for that golden middle path.

    Replies (3)
    1. I believe, the author makes the case that reliability and complexity are tightly coupled. And I tend to agree. There's definitely a linear relationship between the two concepts.

      For remarks about nostalgia, this website wasn't updated in a long time, so it's pretty dated (but still relevant IMO).

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

      Many people from my circles prefer plain neovim/vim over VScode. I get why people would not choose to use ed. But there are - usable, simple and still powerful text editors like vis[1] or mg[2].

      For me, I find that less software I use, both in terms of size and quantity, the saner my computer usage is, the less I want to spend time on fiddling with settings, fixing broken things and move on to do stuff. Which is the whole point.

      1: https://github.com/martanne/vis

      2: https://github.com/troglobit/mg

      Replies (2)
      1. > the author makes the case that reliability and complexity are tightly coupled. And I tend to agree.

        And while I agree with that, I want to reduce accidental complexity¹ from software. TFA & its author want to reduce essential complexity, as well, i.e., they want to remove code that, to me, solves the entire problem we wanted solved. The result is "simpler" code, yes, but code that does not meet the requirements that I, as a user, have.

        And that's how TFA ends up recommending "ed". Or, when I read an eBook, I do not want to have to deal with the PDF-on-mobile syndrome of zoom in, zoom out, pan, zoom in, zoom out, pan … because the document isn't formatted for my device's screen. But again: that's the recommendation (DjVu over ePub), because rendering a pre-rendered fixed page is less complex — but not useful.

        ¹See Out of the Tar Pit, §6, for the definitions I'm using for these: https://curtclifton.net/papers/MoseleyMarks06a.pdf

        Replies (1)
        1. > TFA & its author want to reduce essential complexity

          They don't. Let's say you want to quickly edit some text. What does nano brings over from ed that is essential? Nothing much (if at all) and the codebase is very much bigger. Same thing with epub. The only book I've seen that is the size of a phone is the pocket bible (same width but shorter than an iPhone 13). Portrait mode should be roughly A7 while in landscape you can easily display A6. If you have the source file, it would be quite easy to produce a ps file formatted for A5 (tablet), A6, and A7. That would be quite transparent for the user, while dev dealing with the formats will have an easier time (instead of having to unzip, then parse an index file, then parse the html and css file, loading fonts and what not). Most viewer just embed a full web engine for the latter.

      2. Airplanes are simultaneously the most complex transportation, and the most reliable transportation. They're made reliable by adding complexity. Complexity's relationship to reliability is usually exponential, but it isn't fixed. How you use complexity (strategically) determines reliability.
        Replies (1)
        1. They add redundancy. Redundancy reduces complexity (by reducing entropy) and failure modes.
    2. > "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 (:
    3. It was surprisingly refreshing to play around with flat assembler (fasm) and using ed instead of vim. Ed can filter displayed lines down with the father of grep.

      sh$ screen rlwrap ed file.asm ;

      4135

      H

      P

      *g/syscall/n

      *wq

      Replies (2)
      1. Might even be worth adding a shell alias for `gren` over `grep`.
      2. If you are going to wrap ed with readline anyway, then the simpler approach is to use ex. It, too, is 'the standard editor'. And if you have the genuine Joy+Horton one, it has open mode. (-: