5 ms·
Then what is the new Rails?
by tboyd47 7y ago
Then what is the new Rails?
- masukomi 7y agothe standard library if you ask most Go developers it seems. It's an old joke that whenever you ask for something like Rails in Go many / most of the devs will tell you to use the standard library. The sad thing is, they actually do that again and again. That being said, someone said "screw that" and built Buffalo https://gobuffalo.io/en https://gobuffalo.io/en which is as close as you can get in Golang at the moment.
- SenHeng 7y agoSomeone should create a Rails-like framework named Go to Gaol.
- throw_m239339 7y agoYou can't have Rails in Go. I mean you can, but "go advocates", would crap on your work with an endless litany of articles about why whatever you wrote shouldn't be used because it's not the "go way". Remember Martini? That's right you don't. Fortunately for Go, the biggest pain in the ass when it comes to web development is kind of a solved problem with the use of JSON support in SQL Dbs. All you have to do then is un-serialize directly from the DB, which helps getting rid of ORM when building object graphs.
- badrequest 7y agoI have no idea where all this salt comes from about go advocates, but there are plenty of Rails-likes in Go that are accepted and used by the community. Buffalo is probably the most Rails-ish (from a glance, I've not use Rails extensively), and it's maintained/advocated for by folks who have long been pillars of the community. Martini was effectively replaced by Gin (https://github.com/gin-gonic/gin https://github.com/gin-gonic/gin), which is still heavily used.
- throw_m239339 7y agoMartini wasn't replaced by Gin, 2 different developers. Buffalo uses code generation sure, but it doesn't make an extensive use of interface {} like Martini did, thus can't really be compared to Rails in terms of polymorphism.