Live data from Hacker News

Thoughts on Martini – Introducing Negroni

codegangsta.io

21–27 of 27 posts

Re: Thoughts on Martini – Introducing Negroni

#21

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.

I was going to say, seems very classy, but what do you expect from someone that calls their framework martini. :)

Re: Thoughts on Martini – Introducing Negroni

#23
post #20

Why 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.

[deleted]

Re: Thoughts on Martini – Introducing Negroni

#24
post #20

Why 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.

sigh we keep re-inventing the wheel instead of optimizing a solution that people are relying on.

Re: Thoughts on Martini – Introducing Negroni

#25
post #20

Earlier 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.

You misunderstand. There is no optimizing, he built a non-idiomatic library that people love. It has pros and cons -- he is going to maintain it. There is no "fixing" it -- what makes people love it is it being NON-IDIOMATIC.

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

#26

I 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…

Thanks for the link to Gocraft, cool stuff.

Re: Thoughts on Martini – Introducing Negroni

#27

I 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 second this. The people I met at GopherCon were among the top group for any community built around a language.

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.

Post reply on HN