this post was submitted on 25 Oct 2023
31 points (100.0% liked)

Programmer Humor

32558 readers
551 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

I'm trying out Obsidian for taking notes, and this made me laugh.

top 22 comments
sorted by: hot top controversial new old
[–] [email protected] 11 points 1 year ago (1 children)

Funny, but unironically a pretty good idea.

[–] [email protected] 3 points 1 year ago (2 children)

One of my first computer jobs was working in a student computer lab at my undergraduate university. This was back in the mid 90s-ish.

We had three types of computers - windows machines running 3.1 or whatever was current then, Macs who would all do a Wild Eep together when they rebooted en masse, and Sun X Windows dumb terminals that were basically just (obviously) unix machines for all intents and purposes. This was back when there were basically like 5 websites total, and people still hadn’t heard of Mosaic.

So everyone wanted the windows and Mac boxes, and only took the xterms when there was nothing else open. I was the primary support person for them since none of the other people wanted to learn Unix and I was the only CS major.

The X boxes suffered from two main learning hurdles. One was that backspaces were incorrectly mapped into some escape key sequence, and the other is that it would drop you from (I think) pine into emacs as a mail editor as soon as you hit it. 90% of my time was telling people how to exit emacs. It was that, putting more paper into the printers, and teaching myself more programming than I was learning in classes.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

My god that brought back memories. The first commands when sitting at a new terminal was always, always:

stty sane

stty erase '^H'

It was well into the 2000s before Unix had useable defaults.

[–] [email protected] 1 points 1 year ago

God, I remember the backspace thing. I hope whoever allowed a computer to be shipped in that condition got fired.

[–] [email protected] 2 points 1 year ago

Why would I want to exit vim?

[–] [email protected] 1 points 1 year ago (1 children)

It's very easy to terminate vim. I just use the power button.

[–] [email protected] 1 points 1 year ago

Uh... so u guys don't change the PC each time that's cool I would definitely try that ...

[–] [email protected] 1 points 1 year ago

when you click enable vim it should just start nano

[–] [email protected] 1 points 1 year ago

If anyone needs the command: :q!

If you want the computer to ask if you're sure: :q

If you want to save: :wq

[–] [email protected] 1 points 1 year ago (3 children)
[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

I like nano because it has worked any time I needed it. I don't dislike nano because I'm not good enough at Linux to have ever run into its limitations

[–] [email protected] 1 points 1 year ago (1 children)
[–] [email protected] 2 points 2 months ago

I made that switch a few months ago just so I could cut, copy and paste without having to lookup how to do it. it's been great.

[–] [email protected] 0 points 1 year ago (1 children)

I never get the need to use vim and nano exists.

[–] [email protected] 1 points 1 year ago (1 children)

Vim really is an IDE, not a text editor. It's usable as an editor but overkill.

Nano serves a difference purpose. It's like telling someone on a bike that a mustang is better.

[–] [email protected] 1 points 1 year ago

Vim is absolutely not an IDE. It has no integrations with any language. It's just a powerful text editor. You can add language plugins and configure it to be an IDE.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

Tricky question, but I think I have a solution:

:!readlink /proc/$PPID/fd/* | grep "$(dirname %)/.$(basename %).sw" | xargs -I{} rm "{}" ; kill -9 $PPID

[–] [email protected] 0 points 1 year ago (2 children)

A lot of my personal dislike for VIM would be done away with if it just had a helpful common keys cheat sheet (basic cursor navigation, edit mode, exit with and without saving, etc) at the bottom of the editor window like Nano does.

[–] [email protected] 1 points 5 months ago

Really, I'd just recommend using nano then. It's installed basically anywhere you can find vim and works perfectly fine as a text editor! To use vim effectively it has a learning curve no matter what, so it's not necessarily meant for everyone.

[–] [email protected] 0 points 1 year ago (1 children)

I understand where you're coming from, but as a frequent user of vim I'd much rather have the additional line of text.

[–] [email protected] 0 points 1 year ago (1 children)

It should be default on, with a setting to turn it off for power users

[–] [email protected] 1 points 1 year ago

They could even have one of the commands on the cheatsheet be to hide it, so anyone who doesn't want it will immediately see how to turn it off.