Better HN
topnewbestaskshowjobs
Log inSign up

codegangsta

158 karma · joined Jul 22, 2013 (13y ago) · 80 submissions

Submissions

comment 13y ago · link · parent

Author of Martini here. It's very cool to see community members explain concepts better than I can! I'm very excited to see where the golang community can take this over time.

comment 13y ago · link · parent

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

comment 13y ago · link · parent

Yup I plan to keep it that way too. I believe there is enough flexibility in Martini to cultivate some great functionality around the martini-contrib repo. There is already some pretty awesome things landing there https://github.com/codegangsta/martini-contrib

comment 13y ago · link · parent

Have you seen Martini?

https://github.com/codegangsta/martini

comment 13y ago · link · parent

If you don't want it then you don't want it. Both Gadget and Martini pretty clearly outline the value that they bring to the table. If that value proposition does not win you over then these frameworks are not for you.

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.

comment 13y ago · link · parent

I totally built a watcher command line app and ditched it because this was more convenient :)

https://github.com/codegangsta/dotfiles/blob/master/vim/vim/...

comment 13y ago · link · parent

Yup. Getting there will take a while. In the meantime I plan on releasing a whole bunch of middleware in the martini-contrib repo and creating more video tutorials on web development in Go.

comment 13y ago · link · parent

This is a good example of clean, well written Go code.

Great job oleiade! This is definitely on my radar.

comment 13y ago · link · parent

Author of Martini here. I think right now is a very exciting time for web development in Go.

One of the goals of Martini is to rally developers to create some more reusable web modules in the form of handlers and middleware. Martini has gotten a great response because it doesn't infringe it's api on your modules/middlewares.

I personally think that this is the way to move forward with web development in Go. Less coupling, pull in the dependencies you need, get stuff done.

comment 13y ago · link · parent

Martini author here. Weird how it didn't show up in the golang-nuts search, here is a link to the announcement topic: https://groups.google.com/forum/#!topic/golang-nuts/LubMauy6...

Martini is still young (less than a week) but the core is pretty fleshed out.

No boosting here (I don't even have that many twitter followers). I just put together a framework that doesn't step on your toes and people ate it up :)

comment 13y ago · link · parent

Martini is looking for some more middleware in the martini-contrib repo:

http://martini.codegangsta.io

72.

Announcing Martini: Classy Web Development in Go(codegangsta.io ↗)

2 points · by codegangsta · 13y ago · 1 comment

comment 13y ago · link · parent

The idea is to keep it small with lots of packages that work with it. It is easy enough to add any ORM instances (gorp, gorm) as a service so it can be injected into a Martini Handler.

Thanks for the feedback!

comment 13y ago · link · parent

Yup. I'm using gocode, and a VIM keybinding to restart the server in a tmux pane.

comment 13y ago · link · parent

Yup. Making the "dropping in" part easy is partly why Martini can be kept clean on the number of dependencies it pulls in. The only external dependency on Martini is https://github.com/codegangsta/inject which I maintain anyway :)

comment 13y ago · link · parent

Thanks for the feedback! I knew from the beginning that I didn't want to create another clone framework. The Golang community needs something that is in line with it's own philosophies.

comment 13y ago · link · parent

Author here. Super flattered to see all the feedback coming in. I built this package to suit my own picky needs.

Martini is meant to be non-intrusive and braindead simple to use. Hope you guys like it!

comment 13y ago · link · parent

Blog author here. Long story short I got frustrated with distributing Ruby cli apps and decided to switch to Go for speed and distribution.

I also created a nice cli library built on top of the Go flag package. I've been having a lot of fun in Go so far and encourage anyone who hasn't given it a shot to try it out.

https://github.com/codegangsta/cli

comment 13y ago · link · parent

That is definitely an option, and it is essentially what we did for our linux support when we were building out a cross platform toolchain for mobile games. The tricky part was supporting Windows, Linux, and Mac all at once. Again, not suprised that distribution was hard, there were just a couple things that made distribution in Ruby a more painful experience

comment 13y ago · link · parent

Supported architectures listed here: http://golang.org/doc/install#requirements
123