verstra

joined 2 years ago
[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

You, my friend, should try EdgeDB. A database and an ORM in one.

When you change the data model, you can get to 100%, which you say is impossible for ORMs

[–] [email protected] 22 points 2 years ago* (last edited 2 years ago) (1 children)

Barges into a lemmy thread

Gives a strong, but quite abstract opinion criticizing abstractions

Refuses to elaborate further

[–] [email protected] 5 points 2 years ago (2 children)

I have a convention to correlate the size of variable scope with its name length.

If a variable is used all over the program, it will be named "response". If it is <15 lines, then it can be "res". If it is less than 3 lines, it can be only "r".

This makes reading code a bit simpler, because it makes unimportant, local vars short and unnoticeable.

[–] [email protected] 1 points 2 years ago

That's a valid point.

[–] [email protected] 3 points 2 years ago (5 children)

That's cool, but if I'm used to tmux already, what's the benefit of learning how to use zellij?

[–] [email protected] 9 points 2 years ago (1 children)

US states

United states states?

[–] [email protected] 2 points 2 years ago

Aren't java packages strong modules? You can create circular dependencies between packages just fine.

[–] [email protected] 1 points 2 years ago

No biggie, it a nice entry barrier to have, because nowadays, there just too much new frameworks and languages and crypto currencies.

[–] [email protected] 1 points 2 years ago (2 children)

Ah so the library is just made for problems like this. Who would have thought :)

[–] [email protected] 6 points 2 years ago (4 children)

What's the solution in Julia?

[–] [email protected] 2 points 2 years ago

Because when you divide by zero and get a runtime error, the error will point you to location in SQL, not PRQL.

It's like if an error in a C++ program would point you to an offset in a binary and not the location in the source. This has a slight tone of sarcasm, because that's how compiled languages used to work. But after the years, they patched all leaks of their abstraction and now you are dealing just with the new language.

[–] [email protected] 1 points 2 years ago

That's because the tooling is not there quite yet. For what you describe, that would have to be implemented by the compiler bindings for your language. And it's not that hard - basically one function. But yeah, not there yet.

view more: ‹ prev next ›