Live data from Hacker News

Macaron: a high productive and modular web framework in Go

go-macaron.com

21–30 of 52 posts

Re: Macaron: a high productive and modular web framework in Go

#21
post #20
post #2

I quickly looked this over. Does Golang have some hidden ORM like feature that makes complex persistence easy? I spent the last three months working on a storage mechanism that controls all of CRUD at the document level across what is essentially Google Groups (each op is allowed to multiple groups). This is where web work is complex.

I'm learning Django after playing with Go and webapps just to see how much easier can some things be...

Are they easier on django compared to go+framework ?

Re: Macaron: a high productive and modular web framework in Go

#22
post #20

Earlier quoted context omitted.

I'm learning Django after playing with Go and webapps just to see how much easier can some things be...

Are they easier on django compared to go+framework ?

Djangos ORM is really really good. Plus it's integration with RabbitMQ through Celery, and so on. Django is kind of the golden standard of web frameworks. (Not having tried rails)

Re: Macaron: a high productive and modular web framework in Go

#23
post #2

I quickly looked this over. Does Golang have some hidden ORM like feature that makes complex persistence easy? I spent the last three months working on a storage mechanism that controls all of CRUD at the document level across what is essentially Google Groups (each op is allowed to multiple groups). This is where web work is complex.

Take a look at Gorm:

http://jinzhu.me/gorm/

Re: Macaron: a high productive and modular web framework in Go

#24
post #2

I quickly looked this over. Does Golang have some hidden ORM like feature that makes complex persistence easy? I spent the last three months working on a storage mechanism that controls all of CRUD at the document level across what is essentially Google Groups (each op is allowed to multiple groups). This is where web work is complex.

[deleted]

Re: Macaron: a high productive and modular web framework in Go

#27
post #13
post #10

Earlier quoted context omitted.

Did you had a look at sqlx? [1] Granted, it won't generate the queries for you - but parsing into structs works 95% of time without additional mapping for me. Coming from other languages I also found the amount of necessary typing a bit disturbing first. But then you can actually read code instead of orm framework documentation, issue trackers and workarounds. [1] http://jmoiron.github.io/sqlx/

sqlx didn't work in my case last time i tried (don't remember why exactly), but it's still far from any standard like sqlalchemy (python), hibernate (java) , active records (ruby),entity framework (.net), doctrine (php) or bookshelf (js). Writing every select for every entity, with all the variations depending on whether you want to inner join with 1-n relationships (and which ones) is really tedious when you've got…

We use SQLalchemy at work and I would rather write queries by hand. A lot of that is because the documentation is a huge pain, but also because the object composition isn't intuitive. I've built a profile query builder in Go and it was pretty straight forward; I'm confident I could build an ORM in a couple of weeks.

Re: Macaron: a high productive and modular web framework in Go

#29
post #20

Earlier quoted context omitted.

I'm learning Django after playing with Go and webapps just to see how much easier can some things be...

Are they easier on django compared to go+framework ?

Golang is quite strict about unused variables and imports (the last one is fixed by an external tool). This IMO makes it a little bit rigid for prototyping web apps.
Post reply on HN