Re:Gadget: A smallish web framework for Go
by voidlogic on Tuesday November 26, 2013 @11:05AM
(#6802100)
I'm glad you like these frameworks, and I not telling anyone not to use them. Like I said, I was just interested in hearing why I would want something like these frameworks which focus on server side templating, over a HTML/JS frontend + webservice approach. If you are just writing a webservice I think using Gorilla in addition to net/http is pretty much perfect.
Re:Gadget: A smallish web framework for Go
by codegangsta on Tuesday November 26, 2013 @11:28AM
(#6802283)
shameless plug. Martini doesn't even have html template rendering out of the box. I originally built it because I wanted a better experience building webservices for Angular frontends :)
https://github.com/codegangsta/martini
You and I sir, are on the same wavelength
Re:Gadget: A smallish web framework for Go
by voidlogic on Tuesday November 26, 2013 @11:41AM
(#6802379)
Interesting, I'll have to play with it. Thanks for sharing.
You should consider adding benchmarks to that it is easy to compare martini to net/http. This will let you keep an eye on performance as you work on it and accept pulls.
I personally have seen a great improvement in code simplicity, readability, and overall DRYness when projects are written using Martini.
Choosing a framework isn't about following some sort of socially acceptable way to build your web apps. Just build them! If a framework solves a problem for you then use it, otherwise keep using net/http handlers.