News for hackers. Stuff that matters.
Re:Rewriting Reddit (2005) by rdtsc on Monday October 27, 2014 @01:56PM (#8517026)
Yeah same here. It has the cleanest mapping from REST resources to Python class + method. It just made sense to me:

The router block at the top plus:

    class MyResource:

       def GET(self,...): ...

       def POST(self,...): ...

       def PUT(self,...): ...

       def DELETE(self,...): ...
Looks really nice. Haven't tried serving or rendering templates from it, so never tested that code.
Re:Rewriting Reddit (2005) by tiglionabbit on Monday October 27, 2014 @03:17PM (#8517521)
Check out Flask's MethodView
Re:Rewriting Reddit (2005) by rdtsc on Monday October 27, 2014 @06:03PM (#8518442)
Oh Cool. Hadn't seen that before. I like MethodView dispatch pattern.
Re:Rewriting Reddit (2005) by euphemize on Monday October 27, 2014 @04:28PM (#8517974)
FWIW, many other python web frameworks use the very same pattern.