Better HN
topnewbestaskshowjobs
Log inSign up

code-blooded

340 karma · joined Dec 4, 2021 (4y ago) · 70 submissions

https://github.com/mateuszwieloch
Submissions

comment 3y ago · link · parent

I consistently get 10+ hours. I'm currently using PopOS+GNOME and my typical workload is a combination of a web browser + development in terminal (vim) + Obsidian for notes + cloud sync + listening to music + IM (but not Slack ;) ). It is to say, the workload is rather low.

It is certainly not M1-like battery performance, but plenty for my average workday not to feel constrained.

My current laptop is ThinkPad X1 Carbon 7th Gen from 2019 with 1080p screen, 10th gen Intel CPU, 16GB RAM, I replaced SSD for a very fast Samsung one. The laptop has a rather tiny 51Wh battery.

comment 3y ago · link · parent

I'm having a very different experience. I've been using Linux on and off for many years, but 2022 was the first time I installed it on a new laptop (Thinkpad X1 Carbon) and I like my overall setup + work experience more than on a MacBook Pro. I was able to tweak a lot of things related to my flow that are more difficult to tweak on macOS. Battery life is excellent, performance maybe not on-par with M1, but still very good and I like the keyboard a lot more.

Long live Linux.

Edit: Oh yeah, the hibernation is still crappy on Linux, but suspend works well and the laptop starts extremely quickly.

comment 3y ago · link · parent

If you're in the tech industry then you may want to strongly consider what keyboard does a laptop have. ThinkPads still win IMO despite Lenovo making keyboards thinner in the recent years.

One absolute killer feature of ThinkPads for me is that you can remap the trackpad keys under the spacebar to any other key, e.g. to SUPER or ALT key for superb ergonomics.

comment 3y ago · link · parent

This used to be true, but no more. There's a lot of great hardware built for Linux or officially compatible with Linux. I'll just list a few comparable to MBP 16" since that's what I'm most familiar with: * StarLabs Starfighter * ThinkPad X1 Carbon Extreme * TUXEDO Computers InfinityBook Pro 16"

comment 3y ago · link · parent

Whoops! Making it public right away :)

comment 3y ago · link · parent

Yes it takes quite a lot of effort to get there. Vim motions take weeks to become your second nature, and then you'll probably spend 20-50hours finding plugins and configuring Neovim until you reach the Vimvarna. That's a ton of effort, but like I explained in the other post, I found it being both fun and making me a better programmer as an unintended side effect.

Breakages are rare though especially if you use a plugin manager that shows you commits from your current versions of plugins (e.g. lazy.nvim [1]) so that you can see if you need to update anything.

[1] An example of lazy.nvim plugin update experience: https://user-images.githubusercontent.com/292349/208301737-6...

comment 3y ago · link · parent

https://github.com/mateuszwieloch/dotfiles/tree/master/.conf...

I'm rewriting it to be 100% Lua at the moment. It's 80% done and I've just pushed it for you. Take a look at the init.lua and ignore init.vim which is going away and is in a messy transitional state. The only thing that's missing in the Lua config is LSP integration, but that should be done by tomorrow as well.

Edit: Just remembered that the Lua version also has no plugin manager, but there's plugin-install.fish script that just clones plugins into the correct folder, which works for now. I'll probably add lazy.nvim plugin manager in the upcoming weeks as well ;)

comment 3y ago · link · parent

Sure thing! https://github.com/nvim-treesitter/nvim-treesitter-context is what I use nowadays. It has a little clip demonstrating how it works so you'll instantly know if you want it or not ;)

comment 3y ago · link · parent

The advantage of (Neo)vim is that it lets you create a PDE (personalized development environment) [1] where you can customize every little detail to your liking easily [2] and as a result program and navigate at the speed of thought.

It takes some effort and likely 20-30 plugins, but you get to learn a lot and IMO become a better programmer as a (unintended?) side effect. For me it's part of the continuous improvement to understand your tools.

Last but not least it's just so much joy when you can envision a certain feature (e.g. I wanted to have a function header visible in the first line of editor even when the top of the function has scrolled off the screen) and either find a plugin or program it yourself. This is exactly the kind of primal joy that initially made me pursue the career of software engineer.

[1] The concept of PDE is explained in this video: https://youtu.be/QMVIJhC9Veg [2] Easily is relative. IMO each little customization is quick, but you'll end up customizing hundreds of things over time.

comment 4y ago · link · parent

It looks like this article requires sign up to read.
123