On Monday, September 11, 2017 at 12:56:40 PM UTC+12, Florin Pățan wrote: > > Given your list of choices, I would go for Buffalo as it's probably the > closest you can get to an idiomatic Go code base while not having magic in > the code and still be able to understand what's happening when things go > wrong. > > As others have recommended, also try writing your code without the use of > a framework, just so that you understand the trade-offs you are doing vs > using a framework. > Go is rather enjoyable to use without any framework and far to often I see > people having: "I'm new to Go, I don't know how to program in this thing. > Btw, I'm using X framework" when in fact their question is not even > remotely related to the framework (and sometimes Go itself). > > >> I understand the sentiment but I am really confused by this advice. Are you saying I should write everything myself? My own CSRF implementation, my own authentication scheme, my own rate limiter, my own jwt implementation, my own logger etc? If that's the case I'll be honest and say I won't build this thing in go.
If that's not the case and it is OK to go to github, do some research, read all the readmes, and then try and assemble a pack of libs written by other people into my own framework well that too seems a little unreasonable to me. Surely somebody has done the work and already put together a solid stack which is known to be of decent quality and works well together. One last point. When you assemble parts together yourself the thing that is most likely to be painful is getting help. Many of the projects on github don't have mailing lists so you have to communicate via tickets which I find to be cumbersome. Some very popular projects I have looked at have over 100 open tickets most of which don't even have acknowledgements that the author read the thing. If you ask for help the answer will probably turn into a finger pointing exercise because the author may think it's some other part of the stack that's causing a problem. With a framework you only have one place to ask for help. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.