News for hackers. Stuff that matters.
Re:Ask HN: Modern stacks and frameworks for fast web app dev... by buro9 on Sunday May 05, 2013 @10:59AM (#5658496)
Go with Gorilla Mux.

I use a Rails-ish directory structure {controllers,models,helpers,server,views} and can be knocking out the first skeleton pages and APIs in minutes.

I don't think Go needs a framework to be a really good fast web app language/environment.

If anyone is interested in a sample app I might knock one up just so that people can clone it and get started. There wouldn't be much to it, as I'm consumed by other work, but maybe people want such an example.

Re:Ask HN: Modern stacks and frameworks for fast web app dev... by obviouslygreen on Sunday May 05, 2013 @11:20AM (#5658554)
While I don't see myself switching any time soon, I think this kind of example is excellent for anyone looking to get a feel for how an unfamiliar language would actually be used in a semi-realistic situation (without having to dig through massive real-world projects with complexity that's normal for experienced devs but unintelligible to the uninitiated).
Re:Ask HN: Modern stacks and frameworks for fast web app dev... by buro9 on Monday May 06, 2013 @03:00AM (#5661218)
Cool, in that case I'll knock something up.

I'll try and make it realistic from the point of view of including many tasks that people generally want to do.

So I'll have it serve static files, read and write to a database, read a local config, cache stuff in memory, do something on a scheduled task basis, render templates.

Anything else anyone would like to see?

Not sure what I'll make that will require all of that, and I would like to keep it enough of a stub that people could rip out the example and quickly butcher it into whatever they wanted to prototype.

Maybe a code snippets site. I'm off out for the day, my first day off in 60 days, so I'll look at this tomorrow.

Re:Ask HN: Modern stacks and frameworks for fast web app dev... by Keats on Monday May 06, 2013 @03:34PM (#5664270)
That much should be enough I think. Are you using the default templates ? I've seen that mustache has been ported to go.
Re:Ask HN: Modern stacks and frameworks for fast web app dev... by buro9 on Monday May 06, 2013 @04:17PM (#5664507)
Just got back from a long day away from the desk, will look at this tomorrow.

I'm thinking a good default would use the default templates (as they are good), memcached, PostgreSQL, have a config file in /etc (because no-one should be hard-coding their app, even if it's a quick thing) and I'll make some excuse to include the scheduled tasks as there is always an edge case need for them. I won't try and solve user login, I'll just use Persona.

It will be basic, but have a lot of simple components that people can delete out or extend depending on what they want to do.

Re:Ask HN: Modern stacks and frameworks for fast web app dev... by Keats on Tuesday May 07, 2013 @10:00AM (#5668143)
Do you do i18n ? Other than that, seems to cover everything ! Cheers
Re:Ask HN: Modern stacks and frameworks for fast web app dev... by buro9 on Tuesday May 07, 2013 @10:41AM (#5668361)
Hah, not yet... this is really quick prototyping through to deployable something.

Once I've put it up, I'll accept pull requests... I'm sure there's enough people with small reqs that it could be knocked into shape enough to show how to do most things.

Re:Ask HN: Modern stacks and frameworks for fast web app dev... by Keats on Sunday May 12, 2013 @07:23AM (#5693886)
Sure, let me know when you put it on github. thanks !
Re:Ask HN: Modern stacks and frameworks for fast web app dev... by orangethirty on Sunday May 05, 2013 @12:04PM (#5658751)
Completely agree. Im using Go a lot an its just a very nice language for the web (wonder why). I also use web.go. Which for me is very like flask/bottle. Ive found that a web app in go is very simple, fast and downright easy to build. Note that i currenly use webfaction to deploy Go apps. It works very well. If anyone wants to knkw more, just shoot me an email. Ill introducd you
Re:Ask HN: Modern stacks and frameworks for fast web app dev... by Keats on Sunday May 05, 2013 @11:47AM (#5658660)
Interested in the sample app as well since I was looking for examples like this.
Re:Ask HN: Modern stacks and frameworks for fast web app dev... by kornnflake on Sunday May 05, 2013 @11:25AM (#5658571)
Would love get my hands on your sample app :)
Re:Ask HN: Modern stacks and frameworks for fast web app dev... by clubhi on Sunday May 05, 2013 @12:36PM (#5658880)
knocking one up is the best way to clone
Re:Ask HN: Modern stacks and frameworks for fast web app dev... by mmvvaa on Sunday May 05, 2013 @12:00PM (#5658725)
Yes, please.