by tibastral2 on 11/14/14, 10:32 AM with 36 comments
by valevk on 11/14/14, 12:22 PM
In the long run, when you start a web application using packages like "net/http" and the gorilla toolkit, sooner or later it becomes framework-like, because you start to group your code together, you refactor it and make it easiliy extendable _for the app you are writing_. So, every app becomes a framework on it's own. And what I like about Go is the fact, that building such mini framworks is easy, and does not take much time - but the most important aspect is, that you don't need a huge framework that does all the things.
by TeeWEE on 11/14/14, 12:01 PM
func(http.ResponseWriter, *http.Request)
I started with barebones http, then used gorilla, and later started using negrioni.Any new library with uses this function helps me.
So in the end: you dont need a framework, but libraries are nice.
Note: My api is a simple json based rest service.
by anonfunction on 11/14/14, 11:32 AM
by al2o3cr on 11/14/14, 11:49 AM
It'll make the "should we throw this code out" discussion WAAAAY easier in five years.
by fingerprinter on 11/14/14, 2:40 PM
Put it another way, Django and Rails would never have gotten as popular were it not for their 'batteries included' approach. Sure, Sinatra and Flask came, but they came after.
IMV, Go needs a Django/Rails if it is going to be a webframework. If not, if Go is destined for the API layer, it is probably fine with what it has now.
by pbobak on 11/14/14, 12:51 PM
by vincentriemer on 11/14/14, 1:24 PM
by hanief on 11/14/14, 12:37 PM
by StevePerkins on 11/14/14, 12:51 PM
I'm also surprised to read that Jeremy has written a more idiomatic successor framework... and named it "Negroni" (http://negroni.codegangsta.io). I don't know if I'm being too hyper-sensitive as a contemporary American, but is this just absolutely cringe-worthy to anyone else? I don't think I could evangelize this at work for that simple reason.
"Oh hey, go check out the 'Negro' framework! It's written by the guy who goes by 'Code Gangsta', and you can read about it on his blog in between YouTube clips of him rapping." (yes, seriously)