top | item 41919110

(no title)

metadaemon | 1 year ago

Not needing an ORM made me laugh

discuss

order

rad_gruchalski|1 year ago

Orms in go make little to no sense. As soon as one has a little bit more complex scenario, one ends up in the raw sql string mode anyway…

Like, try to build dynamic nested ands with ors using jsonb with gorm. Maybe there are two people on this planet who would like “aha, I know”. Just use your standard sql strings with prepared statements.

sunrunner|1 year ago

Why is that?

stickfigure|1 year ago

Your programming language has objects. Your database has relational tables. By definition, you need to map between the two.

You can write your own or you can use someone else's. Those are the two choices.

metadaemon|1 year ago

Why did it make me laugh? I thought the delivery was funny is all.