this post was submitted on 25 Nov 2025
294 points (96.8% liked)

Programmer Humor

27507 readers
1910 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
top 37 comments
sorted by: hot top controversial new old
[–] expr@programming.dev 8 points 1 day ago

Naturally, vim is still acceptable.

[–] palmtrees2309@lemmy.world 4 points 1 day ago (1 children)
[–] io@piefed.blahaj.zone 1 points 16 hours ago

thanks for that!

[–] daw@feddit.org 7 points 1 day ago (1 children)

Ed, the greatest WYGIWYG editor of all.

[–] kilgore_trout@feddit.it 3 points 23 hours ago* (last edited 23 hours ago)

What you get is what you get?
Excuse me if this was the joke.

[–] termaxima@slrpnk.net 21 points 1 day ago

I use ed too...

Except I have alias ed=$EDITOR and export EDITOR=nvim in my .zshrc x)

[–] dwraf_of_ignorance@programming.dev 2 points 1 day ago (1 children)
[–] Morphit@feddit.uk 1 points 14 hours ago

That's part of the bloat in emacs.

[–] OR3X@lemmy.world 63 points 2 days ago (2 children)

ED IS THE STANDARD TEXT EDITOR

[–] thejml@sh.itjust.works 45 points 1 day ago (3 children)

You wouldn't use a "vi"itor or an "emacs"itor, you use an "ed"itor!

[–] hellfire103@lemmy.ca 17 points 1 day ago (2 children)

I would, however, use a "vi"sual editor.

[–] Morphit@feddit.uk 1 points 14 hours ago

I think that could be improved upon.

[–] io@piefed.blahaj.zone 8 points 1 day ago* (last edited 1 day ago)

newsflash, ed is also visual, i can see it on my terminal rn

[–] tux0r@feddit.org 3 points 1 day ago

I use a samitor!

[–] GreyCat@lemmy.world 1 points 1 day ago

We do use a "vi"itor, it's called Vim/Neovim

[–] somegeek@programming.dev 29 points 1 day ago (1 children)

I load the file into the memory and alter the memory bits manually.

[–] JohnAnthony@lemmy.dbzer0.com 17 points 1 day ago (2 children)

With a magnetic needle and a steady hand ?

[–] somegeek@programming.dev 2 points 23 hours ago

...anything is possible

[–] Chais@sh.itjust.works 7 points 1 day ago

Can't do that with SSDs.

[–] marcos@lemmy.world 32 points 2 days ago (4 children)

Somehow, despite being the standard it doesn't come installed by default in any distro I've tried.

They all insist you use sed... that bloated thing!

[–] wewbull@feddit.uk 23 points 1 day ago (1 children)

ed and sed arre different things. One edits files in place, interactively. The other edits streams i.e.batch processing.

ed is the precursor to vi. Similar commands. It's just you can only work on one line at a time.

[–] marcos@lemmy.world 17 points 1 day ago (1 children)

One edits files in place, interactively. The other edits streams i.e.batch processing.

You want sed -i -f -

ed is also the precursor of sed, and of some other dozen of commands.

[–] wewbull@feddit.uk 5 points 1 day ago

Yes ed begat sed, but sed works differently. It didn't replace ed. It did a different job.

Ed loads the file into a buffer which you edit in a random access fashion and then save. Sed collects a list of commands and then streams the file line by line, executing the commands as they match lines. In your example nothing happens until you've entered the whole editing script.

[–] io@piefed.blahaj.zone 12 points 1 day ago

sed is a stream editor. A stream editor is used to perform basic text transformations on an input stream (a file or input from a pipeline). While in some ways similar to an editor which permits scripted edits (such as ed), sed works by making only one pass over the input(s), and is consequently more efficient. But it is sed’s ability to filter text in a pipeline which particularly distinguishes it from other types of editors.

I love the way they are selling this

https://www.gnu.org/software/sed/manual/sed.html

[–] palordrolap@fedia.io 4 points 1 day ago (1 children)

If your system has vi or a clone, try vi -e, or, if the symlink is set up, ex. Technically that's vi in ex mode, not ed per-se but it's about as similar as you're going to get without a lot of pointless bother.

[–] io@piefed.blahaj.zone 3 points 1 day ago (1 children)
[–] palordrolap@fedia.io 4 points 1 day ago (1 children)

Comparison time!

ex is to ed as nano is to pico

That is, it's an editor that works in almost exactly the same way as the original, but it's by somebody else.

ex is to vi as vi is to vim, or C to C++.

That is, the latter grew out of and improved upon the former, but you can still use them like their forerunners if you really want, which is why vi has an ex mode and why you can still use pointers in C++ if you're sufficiently warped.

[–] io@piefed.blahaj.zone 3 points 1 day ago (1 children)

and how does qed, ed, ex and sed and grep relate to nano micro and pico in comparison? 🤔

[–] palordrolap@fedia.io 3 points 1 day ago

qed was also a line editor but pre-dated and inspired ed, so that's pico to nano or ed to ex again, just even further back in time.

sed and grep grew out of commands within ed (or equivalent) so I guess you could say they're each kind of a knight's move two to the side and once backward from the direction of ex to vi. Backwards because they're simpler, but two to the side because they're not interactive.

As to what would be "backward but one to the side" in that analogy, that'd be something like a tool that asked questions about every line in a file and made changes accordingly. I don't think there's any such standard tool, but I can think of at least a couple of ways to write one.

[–] SubArcticTundra@lemmy.ml 5 points 1 day ago

It's like nano Vs the original pico

[–] tux0r@feddit.org 9 points 1 day ago

sam is the standard Plan 9 editor.

[–] tomiant@piefed.social 6 points 1 day ago

Sill och nubbe - JA TACK.

Rösta JA till proposition 5!

[–] crimsonpoodle@pawb.social 4 points 1 day ago (1 children)

Wait till you realize e means extended

[–] io@piefed.blahaj.zone 3 points 1 day ago (1 children)
[–] crimsonpoodle@pawb.social 3 points 22 hours ago

Oh no you’re right I was thinking of ex

[–] sga@piefed.social 3 points 1 day ago

i concede, you are too chad for me to even be in same plane of existence.