Funny, but unironically a pretty good idea.
Programmer Humor
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
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.
nano crew where you at
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
I never get the need to use vim and nano exists.
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.
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.
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.
my car is absolutely a boat if you put a boat motor on the back of it and waterproof it
"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"
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.
You can't run and debug things in vim, can you?
It literally has a built in scripting language.
Nano is for those that occasionally edit text files from a terminal.
Vim is for those who make a living out of it.
So like Word vs Notepad?
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?
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.
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
What if I want to undo my life's mistakes.
nano gang checking in.
However, I’ve been forced over time to remember “:wq” to get unstuck should vim randomly appear.
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
Pico gang reporting in.
I personally like nano but it's what I used first. So I learned the commands. Vim I still forget Everytime.
when you click enable vim it should just start nano
If anyone needs the command: :q!
If you want the computer to ask if you're sure: :q
If you want to save: :wq
You’re nullifying that safety measure by doing this you know
Some people just want to see the world burning
Nah, the safety measure is designed to make sure they can quit vim. Now they can quit vim.
I can quit vim any time I want. I just don’t want to.
:wq
will write even if you didn't change anything; :x
won't. (similar to :w
vs :up
)
If you want to save: :wq
Or :x
That is a hilarious, yet useful test.
If you want to learn vim, try the command vimtutor in a terminal
Big brain time, pkill vim
Vim: Caught deadly signal TERM
Vim: Finished.
Terminated
So from within vim :!pkill vim
?
I just can't quit you, vim!
Oh wow, that's an easy way to not implement a feature ;)
Huh. Which one of them?
I think this is the most upvotes I’ve seen on a Lemmy post….
Lemmy seems to be the old nerdy internet of the 90s, prior to the enshittification
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