this post was submitted on 02 Feb 2024
187 points (100.0% liked)

Programmer Humor

852 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
top 41 comments
sorted by: hot top controversial new old
[–] SomeBoyo@feddit.de 30 points 8 months ago (1 children)
[–] PlexSheep@feddit.de 7 points 8 months ago
[–] OpenStars@startrek.website 20 points 8 months ago (1 children)

Just bc vim is superior? (/s :-P)

[–] electric_nan@lemmy.ml 5 points 8 months ago (1 children)

What's that at the end of your comment? Is that how you close vim??

[–] OpenStars@startrek.website 3 points 8 months ago

You don't ever close vim. You pray to the gods and hope that vim chooses to quit for you. (technically accurate if you think about it - i.e. otherwise you leave swap files all over the place:-P)

And hope that you do not mess up and summon a daemon instead:-P.

[–] azimir@lemmy.ml 18 points 8 months ago (1 children)

If an IDE doesn't have vi key bindings it isn't going to be used by me. That's what finally get me to change from terminal only dev to vscode. Until I found the vi editing extension the IDE wasn't of interest.

Yes, vi is just that good.

I hear emacs bindings are also great, but I just know how to save and exit from emacs.

[–] drew_belloc@programming.dev 3 points 8 months ago (1 children)

I use doom emacs and have to say, it takes everything that I like about vim and adds to emacs, plus a lot of useful features that i would have to install myself otherwise that can be enable by just uncommenting a feel lines in the config file.

It's can feel a bit bloated at first but allows me to have the perfect IDE (for me at least) in a matter of minutes.

And the best of all is that I don't need to use the emacs keybinds if I don't wanna (and I don't).

[–] azimir@lemmy.ml 3 points 8 months ago

One of the interesting aspects of humanity is how much people like given text editing methods. There's a handful of approaches and after learning one or two, people really figure out what works for them.

I am more than happy to say I like vim, but in the end you should use what you like best. Just done be surprised when I can write and edit a ton of text really fast while your nano session is comfortable, but slow.

[–] littletranspunk@lemmus.org 9 points 8 months ago (2 children)
[–] NovaPrime@lemmy.ml 20 points 8 months ago (1 children)

Go sit in a corner and think about what you've done

[–] littletranspunk@lemmus.org 4 points 8 months ago (1 children)

I will and I will exit nano easily

[–] ArcticAmphibian@lemmus.org 2 points 6 months ago

You have to say you use Vim then actually use Nano. That's the Linux way.

[–] Crow@lemmy.blahaj.zone 4 points 8 months ago

Vim actually has a surprising ammount of features already built in, you don't even really need any Plugins. It has a file browser, terminal emulator, and window tiling built in

[–] 1984@lemmy.today 4 points 8 months ago (1 children)

I used to use a lot of nvim but actually went to Jetbrains now at work... It's just a lot easier to work with for teams.

[–] flashgnash@lemm.ee 1 points 8 months ago (1 children)

Can you not get an nvim extension? There's one for Vscode that works very well and even uses your existing nvim config

[–] mac@infosec.pub 2 points 8 months ago (1 children)

What does it carry over from your swim config? What are the benefits of using Nvidia inside of VSCode as opposed to just nvim?

[–] flashgnash@lemm.ee 1 points 8 months ago (1 children)

You get everything Vscode does, vscode's LSPs, vscode's element rename/jump to definition (which I realise nvim has but I can't get it to work properly and code does it out of the box), live share sessions, built in split panes and git integration etc etc

It carries over everything as far as I can tell (besides the graphical changes obviously), motions, plugins, shortcuts

I'm sure you can achieve most things Vscode does in neovim but using Vscode/ium and nvim is a massive shortcut

[–] mac@infosec.pub 1 points 8 months ago (1 children)

Honestly it seems like you gain nothing but a slightly bloated electron wrapper around NeoVim.

All those features you listed either work out of the box or require minimal configuration in NeoVim.

[–] flashgnash@lemm.ee 3 points 7 months ago

As far as I'm aware none of the things I mentioned work out of the box in neovim (jump to definition does but only within the same file which is kinda useless for me

[–] sorrowl@lemmy.blahaj.zone 4 points 8 months ago (1 children)
[–] flashgnash@lemm.ee 3 points 8 months ago (1 children)

Helix is great except when you switch to vim for whatever reason and everything is backwards

[–] mac@infosec.pub 1 points 8 months ago (1 children)

This was the thing that stopped me from hopping over in the first place, the vim binds just make too much sense

[–] flashgnash@lemm.ee 2 points 8 months ago (1 children)

Personally I kinda prefer helix bindings but vim bindings I think are far more useful to know when using anything other than helix

[–] mac@infosec.pub 1 points 8 months ago

Honestly I'm sure they are great but vim bindings are near ubiquitous amongst technologies now so it's difficult to get everyone to move away from it.

[–] bloodfart@lemmy.ml 4 points 8 months ago (1 children)

lol if you can’t use vim.

Who cares that you can cut a perfect miter joint with a jig and a table saw when you can’t cut a butt joint with a hand saw.

[–] 342345@feddit.de 2 points 8 months ago* (last edited 8 months ago) (1 children)

I looked up miter joint and butt joint and I'm beginning to understand what you wanted to say.

Yes, maybe.

It doesn't hurt to know the basic commands to insert, copy, paste with vim. But with bim, handling the tool always consumed a too big percentage of my attention in respect to doing the task at hand. I still use it for small file changes.

[–] bloodfart@lemmy.ml 2 points 8 months ago

My comment really applies more to vi than vim but everyone’s using them interchangeably nowadays. When implementing systems where internet connection or excess install size aren’t possible or recommended, you gotta be able to work with the tools at hand.

Of course, the comparison is custom cabinetry to ikea. Your local meth head needs to understand how to use hand tools because he or she may need to use them for myriad reasons ranging from “I don’t have the power version of this” to “it’s faster” to “the cut is cleaner” to “they pay me more to use this”. The person designing hudfł needs to be concerned first and foremost with how to shave a sixteenth off every panel so his accounting department doesn’t have to pay to reforest an extra hundred acres this year.

Perhaps someone working entirely in programming has good reason to not know vim, but I still cling to the antiquated notion that the person designing furniture out of manufactured materials ought to be able to build a box you’d feel comfortable with company seeing.

[–] ParsaRanjbar@khiar.net 3 points 8 months ago
[–] gladflag@lemmy.ml 3 points 8 months ago

They’re racing to be the first to make a joke about being hard to quit.

[–] WeirdGoesPro@lemmy.dbzer0.com 1 points 8 months ago (1 children)

Someone here will know—why shouldn’t I use nano.

[–] mac@infosec.pub 2 points 8 months ago (1 children)

If it works for you. Go ahead

[–] WeirdGoesPro@lemmy.dbzer0.com 3 points 7 months ago (1 children)
[–] mac@infosec.pub 2 points 7 months ago (1 children)

Why? What's wrong with your nano usage? Is it becoming a problem?

[–] WeirdGoesPro@lemmy.dbzer0.com 2 points 7 months ago* (last edited 7 months ago) (1 children)

Ever since I left VI, I just haven’t felt the same. My nano has definitely persisted for more than 4 hours.

[–] mac@infosec.pub 1 points 7 months ago (1 children)

I checked my activity monitor earlier to see a ZSH session at like 40 hours or something.

[–] WeirdGoesPro@lemmy.dbzer0.com 2 points 7 months ago (1 children)

I’m amazed it hasn’t fallen off at this point.

[–] mac@infosec.pub 2 points 7 months ago (1 children)

The beauty of hibernation mode, I think it technically counts as the process still running!

[–] WeirdGoesPro@lemmy.dbzer0.com 2 points 7 months ago

I’ll allow it!