uthredii

joined 1 year ago
MODERATOR OF
[–] [email protected] 7 points 4 days ago

Also you can comb your hair with an electric comb for 10 days

[–] [email protected] 2 points 5 days ago

Yeah I agree, I am sure they are missing some obscure stuff. But in practise it has everything that I use and there has been no need for me to touch flatpak/appimage/snap

[–] [email protected] 3 points 5 days ago* (last edited 5 days ago) (7 children)

object oriented

Python does have OOP but you are not at all forced to use it. You can write code in a functional or even procedural style.

typing

I do hate that python doesent have proper support for typing but I think weakly typed variables will actually help beginners as it is less to think about to start off with.

indentation

I think there are pros and cons here. In other languages it is considered good style to use indentation anyway.

I'm sure it is difficult to teach a large class like that though. It was hard enough for me to learn with a much more favourable teacher to student ratio than you probably have. Sorry but honestly I do sympathise with admin as well.

[–] [email protected] 6 points 6 days ago* (last edited 6 days ago) (3 children)

NixOS:

  • Largest and most up to date package repository (no need for flatpack/appimage/snap ect)
  • Reproducible
  • Declarative
  • Rollbacks you can select at boot time
  • No dependency conflicts

I think it will easily be the number 1 distro if/when they can :

  • the steep learning curve (e.g. have a gui installer EDIT: As in a GUI software centre)
  • documentation
  • have more tools use nixos and have nixos in mind (e.g. there are a couple of tools that didn't work for me because of specific C libraries not beeing present/configured on nixos that are present on other distros. some libraries implicitly expect these to be present).
 

Came out a few days ago, but I thought it was worth posting here =)

[–] [email protected] 9 points 1 week ago* (last edited 1 week 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: [email protected]

[–] [email protected] 5 points 1 month ago (1 children)

How often do you run nixos-rebuild --switch?

If you don't run it regularly then you will likely be waiting for a few different packages to get updates. To fix this you can configure auto upgrades:https://nixos.wiki/wiki/Automatic_system_upgrades

[–] [email protected] 10 points 1 month ago* (last edited 1 month ago)
[–] [email protected] 3 points 1 month ago* (last edited 1 month ago)

I have definitely found it challenging at times to do even simple things. I think it does get easier over time.

I really hope the new user experience will improve. Once the issues with flakes are fixed and they are no longer experimental I would expect flakes to replace the other ways of doing things. This will hopefully make the documentation more concise/focused/better. It might also mean more people start using nix/flakes which will surface more of these problems to be fixed.

I think people need to decide if the benefits they are getting are worth the challenges. I personally really like the reproducibility and the massive amount of packages available from one place. On other distros I have used things have ended up breaking eventually and I have had to re-install things and search for fixes. But on NixOs things keep working.

 

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

Exciting Partnership Announcement: Framework Community & NixOS Communities Join Forces!

 

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

Exciting Partnership Announcement: Framework Community & NixOS Communities Join Forces!

[–] [email protected] 6 points 2 months ago

"I'm playing both sides, so that I always come out on top"

[–] [email protected] 17 points 2 months ago* (last edited 2 months ago) (1 children)

Most is described here (the author probably has some amount of bias but this is the only summary I know of): https://github.com/KFearsoff/nix-drama-explained

Other than that some very active contributors resigned as maintainers in support of the open letters.

And it seems now that the community members in support of the open letters/changes have convinced the board of the foundation to agree on some things.

view more: next ›