[-] uthredii@programming.dev 9 points 1 week ago

You should check out zig, its compiler can even be used for c/c++. If you have time to listen to an interview, this developer voices interview on zig explains some of the advantages of this: https://www.youtube.com/watch?v=5_oqWE9otaE&t=3970s

[-] uthredii@programming.dev 8 points 1 month ago

Early on uv was only trying to replace pip. This latest update is a big step towards becoming a poetry (and pyenv/pipx) replacement too.

94

TL;DR: uv is an extremely fast Python package manager, written in Rust.

-7
submitted 2 months ago by uthredii@programming.dev to c/gaming@lemmy.ml

cross-posted from: https://programming.dev/post/17763625

Datamining youtuber found some stuff.

[-] uthredii@programming.dev 9 points 3 months ago* (last edited 3 months ago)

One thing I haven't seen mentioned is that not moving between mouse and keyboard so much reduces the risk of getting an RSI. So even if it didn't make you faster it would still probably be worth it to find a keyboard based workflow.

I use Helix and would suggest you try it (at least to start off with) as it is easier to learn than vim and does not require plugins or a complex config. To answer your question I will go from the less to more advanced/complex:

  1. Move a line to a new position in the file/another file (takes a couple of seconds)
    1. x then d to select a line (pressing N times will select N lines) and delete it (delete will also copy to the clipboard)
    2. navigate the cursor to the new location
    3. p to paste in a new
  2. Navigating around a file:
    1. jumping to a function/class definition by pressing g then d when on a function/class usage.
    2. getting a list and navigating to class/function calls when the cursor is on a class/function definition by pressing g then r.
  3. Multi cursor editing - I use this to make edits to multiple places at once. I most recently used this to extract the names of 30 tables that are used in a SQL file. This probably took ~5 seconds and I barely thought about it. To do this I used:
    1. % to select the entire files contents
    2. s to search
    3. typed "FROM "
    4. pressed enter to create cursor at all locations matching the search
    5. v then g then l to select the rest of the line
    6. space+y to copy to the system clipboard.
    7. paste into a document where I needed to list the tables
  4. Using a terminal workspace manager (zellij) with helix and a git tui app (gitui) so that I can easily make code changes, commit, push, ,run tests, move to a new repo and more without leaving the keyboard.

There is actually a helix community on programming.dev: helix@programming.dev

33
[-] uthredii@programming.dev 10 points 7 months ago* (last edited 7 months ago)

Its really hard to day without more information. You should talk to a doctor. Some other things that could be causing this that noone else has mentioned yet(I can't tell if this applies for you or not based on your post):

  • not enough exercise
  • vitamin d/c deficiencies (you can take supplements of vitamin d in winter time)
  • bad gut microbiome. Try to eat a variety of vegtables as well as prebiotics (fibre, oats) and probiotics (yogurt, kefir,, sourdough ect).
  • try to get regular sleep. I know this is your problem but there may be some things you can do like have a set bedtime, no screens for a while before bed.

Remember that many people have had similar problems and overcome them. You will just need to work out what works for you. Good luck.

61
44
[-] uthredii@programming.dev 11 points 8 months ago* (last edited 8 months ago)

This actually sounds really promising!

  • They are teaming up with an existing python package manger written in rust.
  • These are the people who make/made ruff, probably the most useful and fast python linter.
  • you basically get pip from a single binary.
  • they plan to have cargo/poetry like functionality in the future.

Edit: here is a blog post from the creator of rye talking about rye and UV: https://lucumr.pocoo.org/2024/2/15/rye-grows-with-uv/

[-] uthredii@programming.dev 10 points 8 months ago

Thank you Ategon and all the other admins for the work you are doing to make this place great.

[-] uthredii@programming.dev 46 points 8 months ago

In this regard, AI-generated code resembles an itinerant contributor, prone to violate the DRY-ness [don't repeat yourself] of the repos visited.

So I guess previously people might first look inside their repo's for examples of code they want to make, if they find and example they might import it instead of copy and pasting.

When using LLM generated code they (and the LLM) won't be checking their repo for existing code so it ends up being a copy pasta soup.

[-] uthredii@programming.dev 7 points 9 months ago

Yep, Patagonia have a repair it for life guarantee.

[-] uthredii@programming.dev 40 points 9 months ago* (last edited 9 months ago)

Doc martens are not so great quality now. The general consensus is that Solovair are the spiritual successor (in terms of quality) to what Dr Martens were. This video has more info: https://youtu.be/vkhCcvfVHRs?si=21bH9fSvkNgmjwm1

For laptops O would recommend framework laptops. The idea is that they have upgradable and repairable.modules. You can follow them on mastodon too: @frameworkcomputer@fosstodon.org And we have a Lemmy community too: !framework@lemmy.ml

1107
14
[-] uthredii@programming.dev 8 points 10 months ago* (last edited 10 months ago)

You could also consider: https://helix-editor.com/

It does more than vim out if the box and it has similar but different key bindings. The key bindings are more intuitive and easier to learn in my opinion.

It is missing a few features still (e.g.plugins) but I have been using helix for a while and it is really fun.

[-] uthredii@programming.dev 17 points 10 months ago

Discourse and Lemmy are both based around topics/communities so hopefully there will be better federation here. E.g. being able to follow a discourse topic from lemmy would be really cool.

Hopefully they have done this in a way where Lemmy can federate with then easily.

35
To catch a catfish (www.newstatesman.com)
39
submitted 10 months ago by uthredii@programming.dev to c/gaming@lemmy.ml
123
submitted 10 months ago by uthredii@programming.dev to c/gaming@beehaw.org
20
submitted 11 months ago* (last edited 11 months ago) by uthredii@programming.dev to c/programming@programming.dev
[-] uthredii@programming.dev 8 points 11 months ago

Have you set android autofill framework to use bitwarden?

0
view more: next ›

uthredii

joined 1 year ago