kSPvhmTOlwvMd7Y7E

joined 1 year ago
[–] kSPvhmTOlwvMd7Y7E@programming.dev 22 points 2 weeks ago (1 children)

I would not recommend using parquet instead of csv. Indeed, parquet is a type of wooden flooring, while csv is a human readable file format. As you can see, it is not wise to replace one with the other. Don't hesitate about asking more questions regarding your home design!

I would be lying if I said that I was a professional Ocaml developer.

I do definitely think the Jane's library is very hard to read... But that might be my inexperience

I personally think regular, procedural code is much easier to read ¯_(ツ)_/¯

[–] kSPvhmTOlwvMd7Y7E@programming.dev 1 points 7 months 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

[–] kSPvhmTOlwvMd7Y7E@programming.dev -4 points 7 months 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

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

React +python + postgres/sqlite

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

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

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

[–] kSPvhmTOlwvMd7Y7E@programming.dev 2 points 1 year ago (2 children)

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

[–] kSPvhmTOlwvMd7Y7E@programming.dev 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
view more: ‹ prev next ›