this post was submitted on 12 Apr 2024
284 points (89.4% liked)

Programmer Humor

32692 readers
405 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] pixxelkick@lemmy.world 77 points 8 months ago (5 children)

From my experience the only big changes I'd say I made overtime are:

  1. Font size bumped up

  2. Switched to neovim from visual studio, which took like a year to relearn my entire workflow (100% worth it though)

  3. Switched from multiscreen setup to one single big screen (largely due to #2 above no longer needing a second screen, tmux+harpoon+telescope+fzf goes brrrr)

  4. Switched to a standing desk with a treadmill, because I became able to afford a larger living space where I can fit such a setup.

If I were to do this meme though it'd mostly be #1, there just came a day when I had to pop open my settings and ++ the font size a couple times, that's how I knew I was getting old.

[–] xlash123@sh.itjust.works 11 points 8 months ago (3 children)

Switching to Neovim is on my to-do list. What do you recommend as a good way to get up to speed?

[–] Fedop 14 points 8 months ago (2 children)

Try starting with LazyVim! It has a great selection of plugins pre-set, and it all works out of the box. It's a great way to get started, and then you can add/remove plugins later on. Also, it's keymap-shortcut page is great for the first week or so of learning the commands.

[–] beeng@discuss.tchncs.de 3 points 8 months ago

Or kick start has been my fav. Uses lazyvim

[–] someacnt_@lemmy.world 2 points 8 months ago

I disagree with this recommendation, the maintainer closed a breaking issue (default syntax highlighting breaks on clean install) saying "workaround exists". That's a red flag ime.

[–] pixxelkick@lemmy.world 6 points 8 months ago

I try and start using it for basic tasks, like note taking, to get used to its interface and basic commands like :w and :q, as well as switching between insert and cmd mode.

Once you are familiar with switching between modes, copying, pasting, etc, then you probably will wanna Starr learning it's lua api and how to load in some QoL plugins. Basic stuff like treesitter, telescope, and nvim-tree are good places to start.

Once you feel comfortable with swapping between files with telescope and configuring plugins, I'd deep dive into getting an LSP up and running for your language of choice so you can actually code.

In the interim I'd recommend getting comfy with using tmux in your terminal, try and open new tmux tabs to do units of work instead of constantly cding around.

I like to keep 4 tmux tabs open for a project:

  • nvim
  • lazygit
  • secrets file open in nvim (usually my secrets file is in another dir so it doesn't check into git)
  • a general terminal tab for running commands
[–] Meltrax@lemmy.world 4 points 8 months ago

The videos by TJ DeVries seem like probably the best starting point there is. He's a contributor, has built a setup script that's meant to be minimalistic and configurable, and has tons and tons of info about running through all of it yourself.

[–] tetris11@lemmy.ml 5 points 8 months ago (3 children)

Explain (4) a bit more. Do you type and walk?

[–] pixxelkick@lemmy.world 17 points 8 months ago (2 children)

Yup, I usually have it set to the slowest setting when typing.

I find I work much better and can think clearer while walking, as it keeps the blood flowing and makes me feel more awake and engaged.

If I have a tough problem I'm trying to work through I turn the speed up to a faster pace and sorta just work through it in my head while speed walking, often this helps a lot!

During meetings when I'm bored I also turn the speed up a bit.

I often get around 10k to 12k steps in a day now.

Note I don't stay on the treadmill all day long, I usually clock a good 4 hours on it though.

Then I take a break and chill on the couch with my work laptop, usually I leave my more "chill" tasks like writing my tests for this part, and throw on some Netflix while I churn all my tests out.

Highly recommend it, I've lost a good 15ish lbs now in the past year since I started doing it, and I just generally feel a lot better, less depressed, less anxious :)

[–] flambonkscious@sh.itjust.works 4 points 8 months ago (1 children)

Wow, that's crazy! Great it's working for you

I completely understand walking to free up the mind but somehow that doesn't fit with working at all... Yeah, I can't reconcile it either

[–] pixxelkick@lemmy.world 3 points 8 months ago

Often people are surprised that I can walk and type but honestly I haven't found it impacts my wpm at all.

[–] Resonosity@lemmy.world 1 points 8 months ago

Man I so want to get a treadmill standing desk

Yes! I noticed if it's faster than 2.5mph, I struggle to type.

Slow it's usually pretty low.

[–] loutr@sh.itjust.works 2 points 8 months ago

Yep that's the idea.

[–] NightAuthor@lemmy.world 5 points 8 months ago (1 children)
[–] lemmyingly@lemm.ee 1 points 8 months ago

The harpoonagen

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

I've been loving telescope and fzf with nvim, but never really got harpoon.

Isn't it basically just a recents list? I find it easier normally to just type the first couple letters of the file name with fuzzy find

[–] pixxelkick@lemmy.world 1 points 8 months ago (1 children)

Harpoon is pretty much just tabs, but, without the actual visual ui of tabs, from my experience.

You pin a specific buffer, and can jump back to it, but unlike normal markers it persists between sessions and has a couple other nuances to it.

It pretty much works like tabs do though.

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

Don't you have to set the harpoon marks manually? And actually now that I say that isn't it just a tui on marks?

[–] driving_crooner@lemmy.eco.br 1 points 8 months ago (2 children)

By visual studio do you mean VS Code?

I use VS Code to program python in a Jupyter notebook, can neovim work for that?

[–] mark@infosec.pub 4 points 8 months ago

Neovim can be used for anything you want! it's a great experience if you're willing to take the time and learn it

[–] pixxelkick@lemmy.world 1 points 8 months ago

I have heard of jupyter but am not familiar with its nuances.

But doing python dev with neovim is very doable, it uses the same LSP I think.

I personally have a dedicated dev machine running debian that has everything on it, including nvim configured.

I SSH into my dev box from other machines to do work, because neovim is a TUI it "just works" over SSH inside the terminal itself, which is what I like about it.

It feels good to just

  1. SSH into my box
  2. tmuxinator my-project-name

And boom, 4 tmux tabs pop open ready to go in the terminal:

  • nvim (pointing at the project dir)
  • lazygit already open
  • nvim (pointing at my secrets.json file elsewhere)
  • an extra general console window opened to project root

And I can just deep dive into working asap in just those 2 steps, it feels very smooth.

I often can even just do tmux a (short for attach) to just straight re-open whatever session I last had open in tmux, instantly jumping right back into where I left off.