fourwd

joined 7 months ago
[–] fourwd@programming.dev 18 points 5 months ago (5 children)

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 2 points 5 months ago (2 children)

so not sure why you think one or the other is less complicated

Because of this:

And some note by the author of the scheme:

Unfortunately, the operation of bash startup scripts is dependent on patches added by OS distributions

Why should I guess at the tea leaves instead of just using deterministic zsh?

[–] fourwd@programming.dev 9 points 5 months ago (1 children)

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

[–] fourwd@programming.dev 2 points 5 months ago* (last edited 5 months ago) (5 children)

Bash has a very strange sequence of sourcing scripts like .bash_profile and others, and the type of shell (interactive or not) adds fuel to the fire. There is no chance to sort through this bunch of init files in order to correctly and conveniently set up environment variables. In zsh, only 3 files are needed for proper configuration; it couldn’t be easier.

[–] fourwd@programming.dev 2 points 5 months ago

Why don't you just remove all plugins and use standard zsh? All sorts of oh-my-soy are not really needed.

[–] fourwd@programming.dev 41 points 6 months ago* (last edited 6 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 3 points 6 months ago

I used DuckDuckGo a couple of years ago, but they added their own blacklist of sites (pretty stupid), and for my language it started returning crappy generated spam sites instead of relevant results. They shouted at the top of their lungs that for my language they simply index the results from Yandex, but this is a lie, they are different.

StartPage gave the best results, but they introduced a captcha that I got every damn request.

I'm currently using SearXNG, which collects results from Google. And these are damn normal results, unlike other search engines that consider themselves the smartest and edit the results.

[–] fourwd@programming.dev 2 points 6 months ago (1 children)

EndeavorOS offers a choice of systemd-boot and GRUB. So, if you don't have GRUB, you probably have systemd-boot.

[–] fourwd@programming.dev 5 points 6 months ago (2 children)

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 1 points 6 months ago

This way we will have multiple sudo-tools on one system without the ability to remove all but one. Like now with all this crap like systemd-resolved, systemd-networkd, systemd-anothershitd and a bunch of tools that do the same thing, but are all required.

[–] fourwd@programming.dev -2 points 6 months ago (1 children)

The main problem with sudo and doas is that they are not developed by Lennart. Seriously.

view more: ‹ prev next ›