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

Programmer Humor

854 readers
2 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 50 comments
sorted by: hot top controversial new old
[–] amio@kbin.social 247 points 1 year ago (2 children)

Funny, but unironically a pretty good idea.

[–] SatanicNotMessianic@lemmy.ml 75 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.

load more comments (2 replies)
load more comments (1 replies)
[–] nautilus@lemmy.dbzer0.com 112 points 1 year ago (7 children)
[–] marduk@lemmy.sdf.org 39 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

[–] penquin@lemm.ee 28 points 1 year ago (3 children)

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

[–] bioemerl@kbin.social 23 points 1 year ago* (last edited 1 year ago) (4 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.

[–] kogasa@programming.dev 21 points 1 year ago (4 children)

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.

[–] Bo7a@lemmy.ca 9 points 1 year ago (4 children)

No offense intended here - But why is this being upvoted?

vim absolutely is an IDE if that is how you want to use it. Syntax highlighting, linter, language specific autocomplete, integrated sed/regex. And much, much more.

[–] reverendsteveii@lemm.ee 17 points 1 year ago (1 children)

my car is absolutely a boat if you put a boat motor on the back of it and waterproof it

[–] bioemerl@kbin.social 8 points 1 year ago

"You see here my car has positions for all the parts of a boat so it's easily made into a boat and it's already waterproof but it's just a normal car"

[–] kogasa@programming.dev 8 points 1 year ago (2 children)

Syntax highlighting, linting, and language specific autocomplete are features supported by plugins and scripts. Plain, simple vim is a powerful extensible text editor. The extensibility makes it easy to turn into an IDE.

load more comments (2 replies)
[–] fushuan@lemm.ee 4 points 1 year ago

You can't run and debug things in vim, can you?

load more comments (1 replies)
[–] bioemerl@kbin.social 4 points 1 year ago (1 children)

It literally has a built in scripting language.

[–] kogasa@programming.dev 4 points 1 year ago (6 children)

So it's an IDE for vimscript...? No.

load more comments (6 replies)
load more comments (2 replies)
[–] Slotos@feddit.nl 8 points 1 year ago

Nano is for those that occasionally edit text files from a terminal.

Vim is for those who make a living out of it.

[–] TheGreenGolem@lemm.ee 5 points 1 year ago (2 children)
[–] bioemerl@kbin.social 5 points 1 year ago (1 children)

Not really, or that doesn't feel right to my. Word and notepad basically still do the same thing except for that word lets you add style.

Like a manual vs an automatic car, maybe?

[–] frezik@midwest.social 8 points 1 year ago* (last edited 1 year ago)

Word is a WYSIWYG editor. We don't talk about it much these days because it's just how things are done, but it took a long time for the industry to come up with a way to display text on screen with rich formatting and have it come out the same way in print. There was a lot of buzz around it in the late 80s and early 90s.

Word solves a completely different problem than an IDE. Notepad is a raw, minimal tool that could be built on for either WYSIWYG or an IDE.

load more comments (1 replies)
load more comments (1 replies)
[–] uzay@infosec.pub 4 points 1 year ago (3 children)

It just makes a lot of stuff way easier once you know how to use it. Switching out a word for another: two button-presses, duplicating a line: three presses, deleting 500 consecutive lines: five presses

[–] xilliah 6 points 1 year ago (1 children)

What if I want to undo my life's mistakes.

[–] Illecors@lemmy.cafe 6 points 1 year ago (2 children)

Church of Emacs is always there ;)

load more comments (2 replies)
load more comments (2 replies)
load more comments (1 replies)
[–] locuester@lemmy.zip 19 points 1 year ago (3 children)

nano gang checking in.

However, I’ve been forced over time to remember “:wq” to get unstuck should vim randomly appear.

[–] dukk@programming.dev 8 points 1 year ago

Alternatively, you can save a key and use :x (And :q! to quit without saving)

Yeah, that’s such a Vim user thing to say :P

load more comments (2 replies)
[–] habanhero@lemmy.ca 5 points 1 year ago

Pico gang reporting in.

[–] ensignrick@startrek.website 4 points 1 year ago

I personally like nano but it's what I used first. So I learned the commands. Vim I still forget Everytime.

load more comments (2 replies)
[–] cupcakezealot@lemmy.blahaj.zone 74 points 1 year ago

when you click enable vim it should just start nano

[–] psud@aussie.zone 45 points 1 year ago (4 children)

If anyone needs the command: :q!

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

If you want to save: :wq

[–] intensely_human@lemm.ee 35 points 1 year ago (3 children)

You’re nullifying that safety measure by doing this you know

[–] Oszilloraptor@feddit.de 13 points 1 year ago

Some people just want to see the world burning

[–] PM_ME_FAT_ENBIES@lib.lgbt 12 points 1 year ago (1 children)

Nah, the safety measure is designed to make sure they can quit vim. Now they can quit vim.

[–] intensely_human@lemm.ee 9 points 1 year ago

I can quit vim any time I want. I just don’t want to.

load more comments (1 replies)
[–] PoolloverNathan@programming.dev 10 points 1 year ago

:wq will write even if you didn't change anything; :x won't. (similar to :w vs :up)

[–] Zacryon@feddit.de 10 points 1 year ago

If you want to save: :wq

Or :x

load more comments (1 replies)
[–] HovringSquidworld97A 36 points 1 year ago

That is a hilarious, yet useful test.

[–] Luvon 27 points 1 year ago

If you want to learn vim, try the command vimtutor in a terminal

[–] user224@lemmy.sdf.org 25 points 1 year ago (1 children)

Big brain time, pkill vim

Vim: Caught deadly signal TERM
Vim: Finished.
Terminated

[–] dreugeworst@lemmy.ml 17 points 1 year ago

So from within vim :!pkill vim?

[–] rustbuckett@lemmings.world 13 points 1 year ago

I just can't quit you, vim!

[–] Dyskolos@lemmy.zip 10 points 1 year ago (1 children)

You guys can exit vim? 😁

load more comments (1 replies)
[–] Matombo@feddit.de 9 points 1 year ago

Oh wow, that's an easy way to not implement a feature ;)

[–] fl42v@lemmy.ml 9 points 1 year ago

Huh. Which one of them?

[–] hai@lemmy.ml 9 points 1 year ago (1 children)

I think this is the most upvotes I’ve seen on a Lemmy post….

[–] A2PKXG@feddit.de 5 points 1 year ago (1 children)

Lemmy seems to be the old nerdy internet of the 90s, prior to the enshittification

load more comments (1 replies)
[–] genoxidedev1@kbin.social 7 points 1 year ago

I just noticed someone should try xkill if they get the chance. If that doesn't work they should rephrase the question. That is all. This will be my last grand contribution for today. Have a nice Wednesday everyone :3

load more comments
view more: next ›