verstra

joined 2 years ago
[–] verstra 7 points 14 hours ago

I'd score openwrt as a perfect 5/7

[–] verstra 29 points 14 hours ago (3 children)

OpenWRT on a new router. The wifi works better, ethernet works up to 980Mbit/s and I don't have all my traffic routed trough a Huawei device.

And it allows you to configure everything.

[–] verstra 9 points 2 days ago* (last edited 2 days ago)

If I have a complex regular expression to code into my app, I write it in pomsky, then copy paste the compiled regex to my source file, but also keep the pomsky source nearby. Much more maintainable.

[–] verstra 1 points 4 days ago

Because not all parts of the repo have this status. Some are stable, well tested and critical.

[–] verstra 11 points 5 days ago (6 children)

No it is not. It depends on the codebase - if it is something relatively new, a proof of concept or something that is bound to change soon, there is no point in slowing the development down just because it is "too large to digest".

 

If it compiles it works, right?

I'm not gonna act like I read it all.

[–] verstra 3 points 5 days ago (1 children)

I've tried helix and used it for work today. At first, it was super slow, relearning how to jump between buffers, but at the end of the day, i got decent at it.

But I cannot hjkl. It's just unnatural. The moment I stop thinking about it, my hand is back at arrow keys.

[–] verstra 8 points 6 days ago

R without tidyverse is like php without laravel

[–] verstra 1 points 1 week ago

That's a good argument. The editing speed is not the limiting factor in my workflow.

Honestly, I think my interest for modal editing is a bit irrational. Maybe I don't want to be a normie, using the default keybindings :D

[–] verstra 3 points 1 week ago

Haha, I know that feeling from earlier when I was trying out hx --tutor. Just staring a the keyboard trying to remember which key to press, only to press the wrong one and have it do something completely unexpected.

[–] verstra 1 points 1 week ago

I do still use sublime as a "note" app, where I a "cheatsheet" open with a bunch of common commands I need for our project + a todo.

[–] verstra 9 points 1 week ago (1 children)

Thanks for the overview. I'll work with tutor and see how frustrated I get :D


Regarding language servers:

Recently, I got into this philosophy of "every project needs a declarative environment". It means that there is a committed file that should contain all tooling need to work with the project. Compilers, formatters, test runners and also: language servers.

This fights with vscode extensions which try to be clever and download their language server / bundle it into the extension itself. "No, rust-analyzer, I don't want your build because it does not work with xtensa target arch I'm using in this project".

So actually, this ties nicely with helix not providing the language servers itself, but allowing you to bring your own.

[–] verstra 2 points 1 week ago

That's the thing: I do feel vscode being slow. On my work machine, it's fine - it takes about two seconds to open a project from start. But on my older laptop, that's a solid 10 sec before I can start editing.

 

When I was in high school I found Sublime Text and learned "multiple cursors". Since then, I've transitioned to vscode, mainly because I need LSP (without too much configuration work) for my work.

I keep hearing about how modal editing is faster and I would like to switch to a more performant editor. I've been looking at helix, as the 4th generation of the vi line of editors. Is anyone using it? Is it any good for the main code editor?

The problem that I have is that learning new editing keybindings would probably take me a month of time, before I get to the same amount of productivity (if I ever get here at all). So I'm looking for advice of people who have already done that before.

My code editing does involve a lot of "ctrl-arrow" to move around words, "ctrl-shift-arrow" to select words, "home/end" to move to beginning/end of the line, "ctrl-d" for "new cursor at next occurrence", "shift-alt-down" for "new cursor in the line below", "ctrl-shift-f" for "format file" and a few more to move around using LSP-provided "declaration"/"usages".

I would have to unlearn all of that.

Also, I do use "ctrl-arrow" to edit this post. Have you changed keybindings in firefox too?

31
submitted 3 weeks ago by verstra to c/programming
 

Anyone using soucehut (sr.ht)? Can you please explain to me how you navigate the site?

I really like the minimalist approach and extremely fast website UI, but I just cannot navigate the site.

If I'm looking at source of a repo on https://git.sr.ht/ and want to see open tickets, how do I navigate to https://todo.sr.ht/ ? If I click on "todo" at the top, it takes me to my todo lists, not todo of the project I was just looking at.

-1
The Origins of Wokeness (paulgraham.com)
 

An interesting take. Not sure if it goes here.

2
Trains go brrrr (programming.dev)
submitted 2 months ago by verstra to c/[email protected]
 
 

I'd expect the state to have a list of all its citizens and their basic personal info (age) which could be used to determine their eligibility for voting. In my country, we get a "invitation" to the vote, with your voter station and info on how to change it.

Instead, I'm seeing posts about USA's "voter rolls", which are sometimes purged, which prevents people from voting. Isn't this an attack on the voting system and democracy itself?

So why doesn't USA have a list of voters? Are they stupid?

 

I know that the answer is yes, I should, but outlets near the setup are not grounded (even though they look like they are) and I don't want to have wires running though my living room.

The real question is what are potential problems ? Occasional system reboots? Permanent damage to PSU? Permanent damage to other components?

 
 

I'll just come out and say it: 50W. I know, I know an order of magnitude above what's actually needed to host websites, media center and image gallery.

But it is a computer I had on-hand and which would be turned on a quarter of the day anyway. And these 50W also warm my home, although this is less efficient than the heat pump, of course.

What's your usage? What do you host?

 

It seems like the nodes I find using wishbone are small and underwater. Are they even worth it?

view more: next ›