Better HN
topnewbestaskshowjobs
Log inSign up

mmatczuk

5 karma · joined Aug 25, 2017 (9y ago) · 4 submissions

Submissions

comment 6y ago · link · parent

Not all ORMs are like hibernate and gorm. I'm author of a lightweight ORM for Go and Scylla / Cassandra [1] so I may be biased. In my view use of a good ORM makes your code more resilient to change, refactorings are simple and stupid mistakes largely eliminated. A benchmark of usefulness of an ORM can be how many lines need to be changed to add a new field to a struct / class. In a good ORM this should be about 1, it should still work be ~1 if you use a hand crafted SQL / CQL.

The worst thing that ORMs try to do is handling relations (eager / lazy loading) and handling sessions / object lifetime. This is mainly because it's impossible to have one-fit-all solution for all usecases even in one application.

[1] https://github.com/scylladb/gocqlx

comment 7y ago · link · parent

I'm working at ScyllaDB we have observed that long time ago and even blogged about it back in 2017 https://www.scylladb.com/2017/07/31/database-caches-not-good...

3.

Go HTTP tunnel the fastest growing Golang project golanglibs.com(twitter.com ↗)

1 points · by mmatczuk · 9y ago · discuss

4.

Secure tunnels to localhost – open source ngrok alternative(github.com ↗)

8 points · by mmatczuk · 9y ago · 1 comment