Gadget: A smallish web framework for Go
redneckbeard.github.io
Gadget: A smallish web framework for Go
1–10 of 52 posts
Re: Gadget: A smallish web framework for Go
#2Re: Gadget: A smallish web framework for Go
#3Looks smart! Curiously, any reason you chose not to use Revel?
1) I didn't want routes in a text file. This is whiny, I know. Just a personal preference. 2) Go is the only programming language that has held my attention long enough to actually finish a fairly usable framework. Writing a framework is a good exercise in software design, so I felt like I had to use the opportunity.
Re: Gadget: A smallish web framework for Go
#4Looks smart! Curiously, any reason you chose not to use Revel?
Re: Gadget: A smallish web framework for Go
#5Re: Gadget: A smallish web framework for Go
#6Re: Gadget: A smallish web framework for Go
#7Looks smart! Curiously, any reason you chose not to use Revel?
Two reasons: 1) I didn't want routes in a text file. This is whiny, I know. Just a personal preference. 2) Go is the only programming language that has held my attention long enough to actually finish a fairly usable framework. Writing a framework is a good exercise in software design, so I felt like I had to use the opportunity.
I ask because I am looking to put my weight behind a framework and am undecided, but not at all attracted to Revel...
Re: Gadget: A smallish web framework for Go
#8Re: Gadget: A smallish web framework for Go
#9Earlier quoted context omitted.
Two reasons: 1) I didn't want routes in a text file. This is whiny, I know. Just a personal preference. 2) Go is the only programming language that has held my attention long enough to actually finish a fairly usable framework. Writing a framework is a good exercise in software design, so I felt like I had to use the opportunity.
I totally agree with you on routes in a text file. Are you gonna go 'batteries included' with Gadget, or keep aiming for that middle ground? I ask because I am looking to put my weight behind a framework and am undecided, but not at all attracted to Revel...
I've started writing subpackages as they become important to me. The most useful thus far is probably gadget/forms, which is very much inspired by Django forms. I prefer a data validation layer that is independent from or at least very loosely coupled to a model layer.
Re: Gadget: A smallish web framework for Go
#10Unlike Revel, you don't seem to have watch setup for .go files, which make sense since you want to keep it smallish. Curious on how other gopher trigger app restart from their editor of choice. Anyone have insight for setting up VIM+Tmux for Golang development that enable app restart from single key press? Sample .vimrc will be great.
[1] http://gruntjs.com/ [2] https://github.com/gruntjs/grunt-contrib-watch