[-] verstra@programming.dev 85 points 4 weeks ago

Fun fact: in rust and python, they use "selfself" instead of "meme"

39
Flutter is kinda good (programming.dev)

I don't have much to say, only that I expected flutter to be a bloated fragile abstraction on top of different native GUI APIs, but no.

It's quite fast, relatively easy to develop and it just works.

I'm working on a desktop app that needs a high-perf rust impl, and (for now) flutter looks like a much better choice than tauri.

[-] verstra@programming.dev 73 points 1 month ago

Have you erased the continuation of the message that is saying something about "similar names, but are actually two distinct types"?

It is a common error if you have two dependecies that export the same third dependency and your code makes an assumption that the versions of the third dep match.

All other languages either straight-up don't support multiple versions of the same dep, or throw random errors at runtime. So this message is a consequence of rust supporting things that other langs only dream of.

[-] verstra@programming.dev 58 points 3 months ago

Power corrupts. No single country should be a global superpower

[-] verstra@programming.dev 37 points 5 months ago

My solution: have a single cup that you have to find and clean before you can have a fresh cup of coffee.

Also: don't be hard on yourself because of these things. It's how your brain works, it makes it you.

208

If it compiles it works, right?

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

112
submitted 5 months ago* (last edited 5 months ago) by verstra@programming.dev to c/programming@programming.dev

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

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.

56
491
[-] verstra@programming.dev 41 points 11 months ago

Bees, wasps, ok, got it.

But mosquitoes? I'be yet to find a biologist that would advocate for preservation of mosquitos. Kill them with fire.

[-] verstra@programming.dev 59 points 1 year ago

This is all hard to do because it is hard to determine people's race on lemmy. Some usernames give it away but most don't. And I don't go snooping trough their post history to find that out.

72

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?

[-] verstra@programming.dev 157 points 1 year ago

What i don't understand is how fuel efficiency does not seem to be a concern of an average buyer? It is a large factor for me, and I'm proud to have highly efficient car for its class. Are those large trucks somehow more efficient than older, smaller models? Or are average buyers just not concerned with efficiency?

Well not everyone has seen the light of factorio, so i might be over-fixating on efficiency.

[-] verstra@programming.dev 50 points 1 year ago

What's DRM in this context? Surely linux kernel doesn't do digital rights management?

194
[-] verstra@programming.dev 88 points 1 year ago

Oh it would not be Polexit. There are way better names available than that. Polout, for example.

[-] verstra@programming.dev 68 points 1 year ago

If you feel any better: i think that modern requirements for games are bizarrely too high for relatively small gains over what we had 10 years ago.

80

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?

[-] verstra@programming.dev 81 points 2 years ago

Please, dont joke with things like this. Someone might take you seriously...

[-] verstra@programming.dev 56 points 2 years ago

This is the way.

Almost completely pure way of storing ideas. With this I mean that you don't store unnecessary data such as "background should be white" or "left page margin is 1.3cm". It's just text. What's important is what it says + minimal markup.

Presentation is left to the reader's client. Do you want dark mode? Get a markdown editor/reader that supports it. Do you want serif font? Again, that's client's choice and not part of the document.

I wish browsers would support markdown out of the box, so you could open https://example.com/some-post.md

-16
view more: next ›

verstra

joined 2 years ago