Note that reddit has rewritten at least once since the web.py rewrite. cf. https://news.ycombinator.com/item?id=51078 I recall reading a more scathing post from spez at one point about frustrations with web.py, but I don't seem to see it now. It may have been removed. In any case, Flask seems to be the inheritor of the "write webapps in Python" description.
> In any case, Flask seems to be the inheritor of the "write webapps in Python" description. Flask definitely fills that role for me. It's very simple to get up and going with it, and deploys easily.
Rewriting Reddit (2005)
41–50 of 118 posts
Re: Rewriting Reddit (2005)
#42Before web.py, we were on a scary Tornado implementation. The API was rewritten to web.py in a week with a minimal delta. We won't be on web.py forever, and gevent sometimes kicks up minor fusses, but I think web.py has given us a nice malleable form that helped us get out of a terrible place, and we can easily hop off once we decide where we want to be.
RIP aaronsw.
Re: Rewriting Reddit (2005)
#43Earlier quoted context omitted.
No, the reddit project itself is still based on Pylons. However redditgifts (the reddit marketplace) is based in on Django so reddit does have Django.
Do you guys know what they felt about Flask?
Personally I like flask a lot and it's come a long way. Also, when spez and I moved on to hipmunk we started using tornado.
Re: Rewriting Reddit (2005)
#44Used Tornado, django and flask quite a bit, web.py only once. As others have mentioned, it didn't work that well, and the community around it is smaller than other frameworks. Again today, Django seems a bit cumbersome, Tornado works well but has a very low bus factor. Pretty sure flask is currently the front runner in "python microframeworks".
Flask has my preference 2. I was wondering what was reddit's folks opinion for flask.
Re: Rewriting Reddit (2005)
#45http://www.pyvideo.org/video/234/pycon-2009--keynote--reddit...
25m 40s
Re: Rewriting Reddit (2005)
#46web.py never really worked well, so we ended up rewriting it again. The interesting thing was that Django still wasn't up to the task when we did that, mostly because it's templating engine was too slow. So we chose Pylons instead. It should be noted that Django has since fixed that issue.
Do you recall what didn't work? So far web.py looks like a really nice rest-ful api backed framework. I rather like it. http://webpy.org/
At the time (and I have to admit my memory is a little foggy as it was 7 years ago), I believe we mostly switched away from it for maintainability reasons. It wasn't under active development, and we were in the middle of a complete MVC rewrite to impose some order on some otherwise organically grown code.
Re: Rewriting Reddit (2005)
#47web.py is still my go to for lightweight webapps. I won't start a big discourse on the pros and cons vs. other technologies, but I will say it is incredibly easy to setup and use. The current github page is here: https://github.com/webpy/webpy If you are looking to get up and running quickly, I would recommend forking this skeleton: https://github.com/jzellman/webpy-skeleton Finally, the built in database framework i…
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)
#48said all the other frameworks's authors a few months before him that are now churning out deprecated headers just like that one will in a couple months, while gallantly trying to protect the user from handling headers.
Re: Rewriting Reddit (2005)
#49For all people still thinking that Django is not "lean" or flexible enough for their next project, let me just leave this here: https://speakerdeck.com/mstepniowski/django-best-python-micr... A single-file web application in Django: https://github.com/mstepniowski/microdjango/blob/master/poll...
Django has definitely come a long way!
Re: Rewriting Reddit (2005)
#50Earlier quoted context omitted.
That version of web.py has little relation to the one that Aaron wrote. The current version looks pretty good but I have no idea what it's scalability and modularity story is.
As a slight aside, what do you usually do to stress test a new framework to see if it's scalable?
That's a little glib, but basically I ask other people with experience. You can throw as much fake traffic as you want at a framework but there is nothing like a real world test.