[-] fourwd@programming.dev 18 points 1 month ago

I've never understood why GNU/Linux actually needs swap. Okay, I created a 4G partition for it, having 32G of RAM. I never used all that RAM, but even so, stuff regularly ends up in swap. Why does the OS waste write cycles on my SSD if it doesn't have to?

However, if I artificially fill up all 32G of RAM, the system almost completely freezes faster than switching to using swap as a "lifeline". And it only comes back to life when OOM Killer finally remembers its existence and kills some f__ing important process.

[-] fourwd@programming.dev 51 points 1 month ago

Have you tried Debian?

[-] fourwd@programming.dev 16 points 2 months ago

You can use tools like spotdl and yt-dlp to download songs from YouTube music and Spotify

To get quality like this https://youtu.be/cX4KA-AFS9M ? Nah thanks.

[-] fourwd@programming.dev 18 points 2 months ago

In Elixir, we mark statuses by using a question mark at the end of the variable name. Something like this:

authorized? = user |> get_something() |> ensure_authorized?()

I like this better than the is_ prefix

[-] fourwd@programming.dev 11 points 2 months ago

console.log() is really easy to learn, but what happens after that is a complete "wtf"

[-] fourwd@programming.dev 41 points 2 months ago* (last edited 2 months ago)

The language idea is good, but: THREE.WebGLRenderer: A WebGL context could not be created. Reason: WebGL is currently disabled.

Seriously? Why do I need WebGL to read TEXT in docs? :/

[-] fourwd@programming.dev 5 points 3 months ago

Some "pro" guys on YT will probably point you to https://github.com/codecrafters-io/build-your-own-x and https://github.com/practical-tutorials/project-based-learning. But...

I don't recommend reinventing the wheel if you want to gain REAL development skills. Development is really about achieving your goal using existing (and preferably popular) solutions.

It makes no sense to write any system-level projects from scratch in 2024 if projects with a similar purpose already exist. Try using them as a regular user. Maybe you will find features that you would like to fix or add.

[-] fourwd@programming.dev 9 points 4 months ago

Try not to work in pitch darkness :)

[-] fourwd@programming.dev 4 points 4 months ago* (last edited 4 months ago)

Used dark (not black) themes everywhere for 8 years. My eyesight is still good according to my annual physical, but recently I've noticed that I have a hard time reading text written on a dark background. It is slightly blurred, especially when there is no light in the room.

Somewhere I still use dark themes, but I always try to switch to light mode if things look okay with code highlighting or smth.

[-] fourwd@programming.dev 7 points 4 months ago

Just build the app on very old distros like Ubuntu 16.04 if possible. But in general, packaging should be handled by the maintainer. If you want to be both a developer and maintainer, packaging problems will take up 75% of your time.

It's not really hard for us users to follow your README and just copy the built binary to ~/.local/bin.

[-] fourwd@programming.dev 4 points 4 months ago

It's very similar to FreeTube, which looks really cool.

view more: next ›

fourwd

joined 4 months ago