expr

joined 2 years ago
[–] expr@programming.dev 3 points 1 day ago

vim is definitely cooler than neovim.

[–] expr@programming.dev 19 points 4 days ago* (last edited 4 days ago) (1 children)

cat file.txt | grep foo is unnecessary and a bit less efficient, because you can do grep foo file.txt instead. More generally, using cat into a pipe is less efficient than redirecting the file into stdin with <, like grep foo < file.txt.

[–] expr@programming.dev 1 points 6 days ago

I mean, among people that use terminals, it's very normal. Commonplace, even.

[–] expr@programming.dev 12 points 6 days ago (3 children)

Because that's a perfectly normal and reasonable thing to do?

[–] expr@programming.dev 18 points 1 week ago (3 children)

Wtf are you talking about? It doesn't have a fucked up name origin at all. It was named "master" as in "master recording", like in music production. Proof: https://x.com/xpasky/status/1271477451756056577.

Master/slave concepts were never a thing in git. The whole renaming thing was really fucking stupid. Caused plenty of breakage of scripts and tools for absolutely no good reason whatsoever.

[–] expr@programming.dev 7 points 1 week ago

It's great for non-HTML markup, like https://hyperview.org/.

A lot of the hate is undeserved. It has had awful paradigms built around it (like SOAP), but that doesn't make XML inherently bad by any means.

[–] expr@programming.dev 29 points 1 week ago (3 children)

Yeah but honestly, this dwarfs that. It's not even close.

[–] expr@programming.dev 19 points 2 weeks ago (1 children)

Parents aren't doing this. It's purely a move by the elite to tighten the grip of the surveillance state, using the guise of "protecting the children" to absolve themselves of any scrutiny.

[–] expr@programming.dev 22 points 2 weeks ago

Yup. It's insanity that this is not immediately obvious to every software engineer. I think we have some implicit tendency to assume we can make any tool work for us, no matter how bad.

Sometimes, the tool is simply bad and not worth using.

[–] expr@programming.dev 4 points 2 weeks ago (2 children)

Admittedly I'm not sure if it works for Japanese, but English has online tools you can use to print out a sheet to write out every character and scan to turn into a font file. Would be surprising if it didn't exist for Japanese.

So ultimately you probably just need someone with neat handwriting.

[–] expr@programming.dev 9 points 3 weeks ago

Naturally, vim is still acceptable.

[–] expr@programming.dev 3 points 3 weeks ago

Except it's not seamless, and never has been. ORMs of all kinds routinely end up with N+1 queries littered all over the place, and developers using ORMs do not understand the queries being performed nor what the optimal indexing strategy is. And even if they did know what the performance issue is, they can't even fix it!

Beyond that, because of the fundamental mismatch between the relational model and the data model of application programming languages, you necessarily induce a lot of unneeded complexity with the ORM trying to overcome this impedance mismatch.

A much better way is to simply write SQL queries (sanitizing inputs, ofc), and for each query you write, deserialize the result into whatever data type you want to use in the programming language. It is not difficult, and greatly reduces complexity by allowing you to write queries suited to the task at hand. But developers seemingly want to do everything in their power to avoid properly learning SQL, resulting in a huge mess as the abstractions of the ORM inevitably fall apart.

view more: next ›