2 ms·
This enlightens me as to how people can code with ed (and why Ken Thompson famously said 'I don't want to see the state of the file when I'm editing.'). It's ba
by SPBS 4y ago
This enlightens me as to how people can code with ed (and why Ken Thompson famously said 'I don't want to see the state of the file when I'm editing.'). It's basically a REPL for writing code. Same as psql, the commands you use to view the state of the text (database) are different from the commands you use to edit the state of the text (database).
Still sucks though. Even in psql I regularly drop into vim with \e to edit whole queries before sending them out.
- parasti 4y agoJust keep it in your head. ed must have been a decent upgrade from punched cards.
- rbanffy 4y agoAs a line editor, it’s pretty much editing a deck of punch cards. This metaphor, BTW, persists on a lot of mainframe related tasks where, while you see lines on a screen, the computer is reasoning about punch cards.