kSPvhmTOlwvMd7Y7E

joined 2 years 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

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

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

[–] kSPvhmTOlwvMd7Y7E@programming.dev 54 points 2 years 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
[–] kSPvhmTOlwvMd7Y7E@programming.dev 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

[–] kSPvhmTOlwvMd7Y7E@programming.dev 1 points 2 years ago* (last edited 2 years ago)

Unfortunately sometimes the code base is fuckd up beyond repair, it can't even be tested. that's why i submitted 3000 line PR ☠️

All IO related stuff should be a replaceable dependency

But this is very readable tho

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

Aw, of course, go ahead Microsoft's OCaml, we ll definitely visit you

[–] kSPvhmTOlwvMd7Y7E@programming.dev 1 points 2 years ago* (last edited 2 years ago) (1 children)

It's not "every system" which proves all truth is inconsistent right? Propositional logic, and first order logics are both sound, and complete. The article talks about propositional logic, so in my understanding, it should be complete and sound too.

[–] kSPvhmTOlwvMd7Y7E@programming.dev -1 points 2 years ago* (last edited 2 years ago)

Why every class creates its own logger? That might make sense, but looks suspicious

Use global imported variables for configs.

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

it's «la torture» tho …

view more: ‹ prev next ›