kSPvhmTOlwvMd7Y7E

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

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 ¯_(ツ)_/¯

[–] [email protected] 1 points 4 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

[–] [email protected] -5 points 5 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

[–] [email protected] 0 points 9 months 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 9 months 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] 4 points 9 months ago

React +python + postgres/sqlite

[–] [email protected] 7 points 9 months ago

We have a solution

[–] [email protected] 13 points 9 months 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 9 months 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 9 months ago (2 children)

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

[–] [email protected] 56 points 9 months 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 11 months ago (3 children)

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

 

Are you doing data science? Statistics? No?

Then for god's sake don't use pandas, you just look dumb af when you pull several MB of a package just to load csv. If you find yourself doing that, just stop programming and look for another job

Thanks for attention

view more: next ›