10 ms·
Gongular – A new web framework for Go
- paki123 10y agohorrible name
- _ttg 10y agohaha...that name is hideous
- hitekker 10y agoBetter than Testacular: https://testing.googleblog.com/2012/11/testacular-spectacular-test-runner-for.html https://testing.googleblog.com/2012/11/testacular-spectacula... https://github.com/karma-runner/karma/issues/376 https://github.com/karma-runner/karma/issues/376
- joeblau 10y agoHoly crap I can't. stop. laughing.
- komali2 10y agoPeople in that thread are arguing about exclusion, sexism, etc, but a simple enough reason to change the name is "I can't say I'm using this library in front of the investors and keep a straight face."
- deleted 10y ago[deleted]
- neveroffensive 10y agoLaughing and crying. It's sad that people in the community feel alienated in response to something so simple and off the cuff.
- bcook 10y agoAt least when I Google it I get relevant results. It's even worse to have some generic name like "footpath" or "cake".
- CSDude 10y agoI am really not good at coming up with names.
- jayd3e 10y agoMy thoughts exactly.
- jrs95 10y ago>features Angular-like (or Spring like) dependency injection closes tab
- UseYrIllusion11 10y agoin b4 stdlib is better than this framework.
- jrs95 10y agostdlib is better than this framework.
- zalmoxes 10y agoI'm sorry, but does anyone even glance at the source of these frameworks before they're upvoted?
- cyri 10y agoI've withdrawn my upvote after I saw this in the code: type Injector struct { values map[reflect.Type]interface{} customProviders map[reflect.Type]CustomProvideFunction }
- komali2 10y agoI don't understand, what's wrong with that? I've never used Go so I'm asking out of ignorance.
- CSDude 10y agoIt is not type safe and relies on runtime reflection based checks to make it work correctly, it can crash easily. However, I believe I made all the checks correctly and it should work as intended, but of course it is only 600 LOC, there can arise some issues.
- bigblind 10y agoComments like this could be extremely helpful to the author if you explain more clearly what you mean. Is it because they're using reflection so much? Or is it because a CustomProvideFunction could also be stored as interface{} or something completely different? I'm fairly new to Go as well, so I'm curious.
- khazhou 10y agoERROR 732: Intent unclear. Please elaborate to proceed with discussion. (refcode 567a8-732).
- alistproducer2 10y agoI've said the exact thing on multiple occasions. For example, https://news.ycombinator.com/item?id=12892550 https://news.ycombinator.com/item?id=12892550. this dude created something that opened a port and listened for commands that would control your OS. He hadn't spent 5 minutes making even some basic form of authentication and came straight to HN for the high 5's. People tried to flame me for pointing out that it seemed irresponsible to be promoting software in such a state.
- yumaikas 10y agoGodoc link for those who want to look closer at it: https://godoc.org/github.com/mustafaakin/gongular https://godoc.org/github.com/mustafaakin/gongular
- yumaikas 10y agoLooking at this, it looks like a very minimal, reflection heavy framework. While that's not necessarily the wrong set of choices to make, trying to turn Go into a DSL-type language always feels a little strange. Still, kudos to the authors for putting up something nifty in under 1kLoc (excluding tests).
- the_duke 10y agoReflection is also notoriously slow in Go.
- choward 10y agoHow is this even remotely related to Angular?
- d0lph 10y ago"It is like Gin Gonic, but it features Angular-like (or Spring like) dependency injection and better input handling."
- sickbeard 10y agoplease.. make it stop..
- neom 10y agoRelated: https://github.com/go-martini/martini https://github.com/go-martini/martini (NOTE: The martini framework is no longer maintained.)
- _ttg 10y agoalso related - https://codegangsta.io/blog/2014/05/19/my-thoughts-on-martini/ https://codegangsta.io/blog/2014/05/19/my-thoughts-on-martin... Martini also relied heavily on DI and reflection for convenience and the author basically conceded that this was not idiomatic.
- camus2 10y ago> Martini also relied heavily on DI and reflection for convenience and the author basically conceded that this was not idiomatic. More like he was bullied into conceding that.
- nemothekid 10y agoThis feels very similar to Martini (https://github.com/go-martini/martini https://github.com/go-martini/martini). Martini had a similar sort of design (and IMO a cleaner source code), but the author decided that reflection and non-idoimatic design was too much of a cost for the HTTP framework in Go. I think 2 years ago when Martini was released people were more open to reflection, but now I'm interested/doubtful if something like this can be accepted. Funnily enough, I think Gin-Gonic was inspired by Martini, but Gin-Gonic eschewed reflection in favor of performance/idiomatic design. The fact that this project considers Gin Gonic an inspiration is funny.
- camus2 10y ago> haha...that name is hideous > please.. make it stop.. > closes tab Look at this sorry thread, the usual open source project bashing going on in the Go community, pathetic, but business as usual in the Go community. The Go community is truly irredeemable and one of the most mean spirited and hateful programming community out there.
- nonsince 10y agoCome on man, at least have the remotest sense of irony.
- jrs95 10y agoBecause calling an entire programming language's community irredeemable, mean spirited, and hateful is reasonable. There's a reason for the negative comments, and it's that the paradigm of this framework runs against what would be considered idiomatic Go. Spring/Angular style DI is one of the things people use Go to avoid. This is like someone making a library to do goto statements in Java (not as bad of course, just pointing out the conflicting paradigms).
- nonsince 10y agoThis thread is very negative, and I personally dislike runtime reflection so I wouldn't use this framework in its current design, but don't let the commentors get you down. I assume that you want to just show off something interesting you made, whereas they are looking for something high-enough quality to use in their next project - and a brand-new framework is never going to be that. It's just a mismatch in aims. Keep up the good work, I can appreciate that writing the kind of dependency injection framework often seen in large systems in such a small amount of code is an admirable feat.
- CSDude 10y agoThank you, my thoughts precisely. It was just to show another approach.