this post was submitted on 09 Aug 2024
602 points (98.2% liked)

Programmer Humor

31997 readers
716 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

Those who know, know.

you are viewing a single comment's thread
view the rest of the comments
[–] Waldowal@lemmy.world 27 points 1 month ago (7 children)

The consultancy I used to work for in the late 90s would have crucified any developer that didn't write "a data abstraction layer that allows you to pop off the original db and substitute a different one later".

How many times in my 25 year career have I swapped out the database (and been thankful for such an abstraction layer)? 0 times.

[–] evatronic@lemm.ee 5 points 1 month ago (4 children)

I am literally in the middle of swapping DynamoDB for a RDBMS.

The idea that you can abstract away such fundamentally different data stores is silly. While I hate doing it now, reworking the code to use relational models properly makes for a better product later.

[–] Tja@programming.dev 2 points 1 month ago (2 children)

It's literally what an orm does, and it's good enough for 80% of apps out there. Using it for the wrong purpose is what's silly.

[–] evatronic@lemm.ee 1 points 1 month ago* (last edited 1 month ago) (1 children)

I see. It seems like you may be one of the people that try to coerce relational models into nosql stores like Dynamo.

Or course it's possible. They even trick you into thinking it's a good pattern by naming things "tables".

But if you're using Dynamo to its fullest an ORM is not going to be able to replicate that into a relational store without some fundamental changes.

[–] Tja@programming.dev 1 points 1 month ago

Hence 80%.

Most apps out there are a CRUD with a thin layer of logic.

If you are in the 20% that needs real performance, an ORM is not gonna cut it, no matter what DB you have.

load more comments (1 replies)
load more comments (3 replies)