Never liked Martini, but hats off to the library author on taking criticism so well and changing directions. High quality person he is, to take things this way, and not be defensive. I'm looking forward to his future work.
Thoughts on Martini – Introducing Negroni
21–27 of 27 posts
Re: Thoughts on Martini – Introducing Negroni
#22The Go community overall has made me a better developer, and I'm so excited to see where the community takes the language in the next couple years!
Re: Thoughts on Martini – Introducing Negroni
#23Why not change up the Martini core instead of creating yet another lib for people to learn, write code for, and maintain?
Because the things he changed were fundamental to Martini core. Changing it would require a re write of any code which touched Martini's API. Because people use that project it's better to start a new one with a different philosophy.
Re: Thoughts on Martini – Introducing Negroni
#24Why not change up the Martini core instead of creating yet another lib for people to learn, write code for, and maintain?
Because the things he changed were fundamental to Martini core. Changing it would require a re write of any code which touched Martini's API. Because people use that project it's better to start a new one with a different philosophy.
Re: Thoughts on Martini – Introducing Negroni
#25Earlier quoted context omitted.
Because the things he changed were fundamental to Martini core. Changing it would require a re write of any code which touched Martini's API. Because people use that project it's better to start a new one with a different philosophy.
sigh we keep re-inventing the wheel instead of optimizing a solution that people are relying on.
ADDITIONALLY -- he has built something that is idiomatic and looks to solve the same problem set as the original tool. This is a "have your cake and eat it too" situation.
Re: Thoughts on Martini – Introducing Negroni
#26I have been using Martini for over a year and we use it on our frontend API which has a non trivial number of endpoints, that contain a lot of code that has little to do with http routing (like I imagine most products do). Yes, Martini is non-idiomatic magic. Specifically codegangsta's 200-line inject ( https://github.com/codegangsta/inject ) library is most of Martini's magic. I think inject is rather clever (I've b…
Re: Thoughts on Martini – Introducing Negroni
#27I love this post, I was at Gophercon and met several gophers. This post shows how the Go community is made and how we're going forward. Thank you @codegangasta.
I spoke at length with someone there about Martini, and had pretty much the same take on it as Jeremy now professes. The stuff he did with the dependency injection was really solid, but as he admits, it is not very idiomatic. I applaud his new effort while maintaining the existing project that so many are using.