kSPvhmTOlwvMd7Y7E

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

If you want to read some monads in the wild, go check the code for Jane's Street "core_unix.command_unix"

Otherwise, GADT, but they are used sparingly because they make type inference undecidable

[–] [email protected] -4 points 1 year ago (1 children)

Sorry to that guy, but Python is a terrible choice for GUI. It simply doesn't even exist in the wild, except in newbies' minds. You should pick something that allows you to* easily & immediately* reload your GUI in progress without restarting the program; AND also maybe think about how to distribute your GUI on other computers without requiring them to duplicate your python setup

[–] [email protected] 0 points 1 year ago

Meh. He s wrong and he knows it. Computer science is definitely about efficient use of computational resources and memory.

[–] [email protected] 5 points 1 year ago

So they posted that screenshot before even trying to run it on some useless file to see it works.. Internet points are surely a drug

[–] [email protected] 3 points 1 year ago

React +python + postgres/sqlite

[–] [email protected] 7 points 1 year ago

We have a solution

[–] [email protected] 13 points 1 year ago

Did they pay every news outlet out there to publish stupid titles? That's not a fucking apology. Stop pretending

[–] [email protected] 4 points 1 year ago

Your last question is equivalent to : why there so many math theories? Can't we just reuse the old ones?

New language appear as a natural product from research in type theory for ex

[–] [email protected] 4 points 1 year ago

Even something as ubiquitous as JSON is not handled in the same way in different databases, same goes for Dates, and UUID. I am not even mentioning migrations scripts. As soon as you start writing raw SQL, I pretty sure you will hit a compatibility issue.

I was specifically talking about python, can't argue with golang. OK you have a valid point for performance, gotta keep an eye on that. However, I am satisfied for our CRUD api

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

and how you run your tests? Do you spawn a DB backend for test purposes?

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

You don't even mention the 2 main advantages:

  • ORM lets you to use plain objects over untyped strings. I take typed anything over untyped anything, everyday
  • ORM lets you to use multiple database backends. For ex, you don't need to spawn a local postgres server, then clean/migrate it after each test suit, you can just use in-memory sqlite for that. OK this has some gotchas, but that's a massive improvement in productivity
[–] [email protected] 14 points 2 years ago (3 children)

Advertisement is a fucking syphilis, a cancer and a gangrene combined. Don't tell me what to watch what to visit

view more: ‹ prev next ›