DEV Community

Discussion on: How to write IMMUTABLE code and never get stuck debugging again

Collapse
 
dglsparsons profile image
Douglas Parsons

Is that using an ORM?

Collapse
 
vlasales profile image
Vlastimil Pospichal

ORM does not use immutability and that is why there are such problems with it.

Collapse
 
winstonpuckett profile image
Winston Puckett

Hahaha... And there lies the problem with ORMs.

It is often more that database queries are repeated in odd spots when they don't need to be. It is sometimes the ORM's fault, but I like the Linq syntax so much I don't want to blame it all on that

Thread Thread
 
dglsparsons profile image
Douglas Parsons

I've not used Linq much, so I suspect I don't know what I'm missing out on. I'm a big fan of NoSQL though, partially because it doesn't let you query in inefficient ways.

Thread Thread
 
winstonpuckett profile image
Winston Puckett

I didn't know that. That's pretty cool