TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Rewriting Reddit (2005)

345 pointsby amalantony06over 10 years ago

20 comments

jedbergover 10 years ago
web.py never really worked well, so we ended up rewriting it again. The interesting thing was that Django still wasn&#x27;t up to the task when we did that, mostly because it&#x27;s templating engine was too slow. So we chose Pylons instead.<p>It should be noted that Django has since fixed that issue.
评论 #8516968 未加载
评论 #8516976 未加载
评论 #8516996 未加载
评论 #8519229 未加载
评论 #8517287 未加载
_stemover 10 years ago
For all people still thinking that Django is not &quot;lean&quot; or flexible enough for their next project, let me just leave this here: <a href="https://speakerdeck.com/mstepniowski/django-best-python-micro-web-framework" rel="nofollow">https:&#x2F;&#x2F;speakerdeck.com&#x2F;mstepniowski&#x2F;django-best-python-micr...</a><p>A single-file web application in Django: <a href="https://github.com/mstepniowski/microdjango/blob/master/polls.py" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mstepniowski&#x2F;microdjango&#x2F;blob&#x2F;master&#x2F;poll...</a>
评论 #8517530 未加载
评论 #8520485 未加载
temuzeover 10 years ago
The first Python web framework I used was Django. I&#x27;m really glad I came across it first because I was inexperienced at the time and it forced me to adopt a lot of good practices.<p>However, now that I&#x27;m more experienced, I can relate a little to what Aaron is saying here. Learning all of this boilerplate stuff is annoying! Recently, I started contributing to a friend&#x27;s rails app and I found the process of learning how to use each separate little tool tiresome.<p>This is why I like Pyramid - it starts off dirt simple. Hello World is almost as short in Pyramid as it is in Flask. As you grow, you can start organizing and adding different things as you need them. It has absolutely 0 magic. I find Pyramid to be a happy medium between Flask&#x27;s minimalism and Django&#x27;s extensibility.
评论 #8520007 未加载
评论 #8518693 未加载
coldteaover 10 years ago
&gt;<i>The Lisp newsgroup, comp.lang.lisp, was upset about the switch that they’re currently planning to write a competitor to reddit in Lisp, to show how right they are or something.</i><p>That must have ended as a huge success, because as we all know the important thing behind a website is the backend language...
评论 #8521776 未加载
mikepurvisover 10 years ago
Note that reddit has rewritten at least once since the web.py rewrite. cf. <a href="https://news.ycombinator.com/item?id=51078" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=51078</a><p>I recall reading a more scathing post from spez at one point about frustrations with web.py, but I don&#x27;t seem to see it now. It may have been removed. In any case, Flask seems to be the inheritor of the &quot;write webapps in Python&quot; description.
评论 #8516869 未加载
mox1over 10 years ago
web.py is still my go to for lightweight webapps. I won&#x27;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.<p>The current github page is here: <a href="https://github.com/webpy/webpy" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;webpy&#x2F;webpy</a><p>If you are looking to get up and running quickly, I would recommend forking this skeleton: <a href="https://github.com/jzellman/webpy-skeleton" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jzellman&#x2F;webpy-skeleton</a><p>Finally, the built in database framework is a bit simplistic. I like to pair this with Peewee (included in the webpy-skeleton).
评论 #8517026 未加载
euphemizeover 10 years ago
Used Tornado, django and flask quite a bit, web.py only once. As others have mentioned, it didn&#x27;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.<p>Pretty sure flask is currently the front runner in &quot;python microframeworks&quot;.
评论 #8517358 未加载
评论 #8518457 未加载
linuxydaveover 10 years ago
Whatever happened to that Lisp clone?
评论 #8516972 未加载
评论 #8516862 未加载
评论 #8516835 未加载
评论 #8516959 未加载
closetnerdover 10 years ago
Its incredible how intelligent this kid was.
评论 #8519659 未加载
tim333over 10 years ago
For another take on the Reddit rewrite from Steve Huffman see:<p><a href="http://www.pyvideo.org/video/234/pycon-2009--keynote--reddit--steve-huffman-and-al" rel="nofollow">http:&#x2F;&#x2F;www.pyvideo.org&#x2F;video&#x2F;234&#x2F;pycon-2009--keynote--reddit...</a><p>25m 40s
pshcover 10 years ago
We currently use web.py + gevent to run our API where I work. It&#x27;s really easy to work with since it&#x27;s so tiny and simple, and since we only need JSON in and out for now, it&#x27;s perfectly sufficient.<p>Before 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&#x27;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.<p>RIP aaronsw.
评论 #8519780 未加载
general_failureover 10 years ago
Is reddit that simple to rewrite over the weekend?
评论 #8517296 未加载
rpdillonover 10 years ago
I&#x27;ve used CherryPy on a number of projects, and I really like it, but rarely see it mentioned in discussions of Python web programming. It&#x27;s light and minimal, and seems equally deft for writing APIs as conventional web page driven apps. Flask is mentioned all the time, however. Does anyone have insight into the popularity of Flask vs. CherryPy?
gprasantover 10 years ago
They say hell hath no fury like a lisp fan scorned. I wonder if they hadn&#x27;t been acquired, would they have still used Lisp ?
评论 #8517635 未加载
评论 #8517223 未加载
评论 #8520519 未加载
83457over 10 years ago
Would clojure fare better now?
andyzwebover 10 years ago
RIP Aaron ;_;
joesmoover 10 years ago
I think you can leverage these criticisms at about 90% of the framework software out there written in just about any language. Most developers like to create complex, complicated software mainly to show off their &quot;cleverness&quot; without thinking through the implications for the people that have to use it. It&#x27;s as if they think that by cramming in every design pattern they can think of and using many different libraries together for no perceptible reason makes the software better when they could&#x27;ve achieved the same thing much more simply and cleanly if they had put a little thought into it. Such over-engineering is equally a problem as the spaghetti code of programmers who don&#x27;t know better.
评论 #8517249 未加载
评论 #8518065 未加载
评论 #8517724 未加载
wcummingsover 10 years ago
What Lisp webserver was used, originally? Hunchentoot? What web servers&#x2F;stack are Lispers using these days?
评论 #8519153 未加载
评论 #8517555 未加载
评论 #8519041 未加载
评论 #8518618 未加载
geerlingguyover 10 years ago
Just wondering (as someone who only uses&#x2F;touches Python indirectly, through some projects that use it, but is not currently a &#x27;Python developer&#x27; by any means); was this posted in response to some recent drama in the Django community, or as an argument against Lisp?<p>I&#x27;m just wondering why it seems this story is quickly getting upvoted on the front page of HN, when it seems there are no other frontpage stories remotely related to Django, Reddit, or Lisp?
评论 #8516903 未加载
评论 #8516829 未加载
评论 #8517110 未加载
评论 #8517703 未加载
评论 #8516989 未加载
gcb0over 10 years ago
&gt; &quot;It means readable HTML with the proper HTTP headers.&quot;<p>said all the other frameworks&#x27;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.
评论 #8518422 未加载