Live data from Hacker News

Poll: Pythonic startups: what web framework do you use?

news.ycombinator.com

51–60 of 76 posts

Re: Poll: Pythonic startups: what web framework do you use?

#52
post #46

Earlier quoted context omitted.

Caching != Scaling

So what does exactly equal scaling then? I'm not disagreeing that scaling isn't only caching, but it's often a component just like anything else. Caching often helps scaling, as do multiple databases, working out bottlenecks in code...whatever else.

Scaling = Increasing capacity indefinitely by adding more nodes.

Caching is not scaling because by definition, it depends on a backend to provide it data.

If the backend is a database then sure, you can increase capacity by ~10x (assuming a ~90% cache hit rate), but after that, throwing more caching nodes at the problem won't do a thing if your database itself isn't scalable.

All a cache does is increase speed at decreased costs, but it is not in itself a scaling solution.

Re: Poll: Pythonic startups: what web framework do you use?

#53

Tipjoy is my first web project, actually. I started knowing python. I tried frameworks, and quit when something failed. Django was the first to go from start to live test site touch using a DB without a hiccup. I think that means something for both the quality of the documentation and the framework. TurboGears, web.py, and Pylons failed the test. The Python community would benefit from more people switching to Django…

Out of curiosity, what individual problems did you run into with TurboGears, web.py, and Pylons that caused them to "fail the test?"

Re: Poll: Pythonic startups: what web framework do you use?

#54
post #4

I am interested what the HN group's opinion is on Grok. It sounds interesting, but I'm not advanced enough to make proper comparisons.

Grok's main value, to me, is to interact with larger Zope applications without having to deal with all of the mental overhead that Zope entails. You can also reap the great benefits of the ZODB very easily with Grok alone. Grok is very easy to learn, and was designed by people that really know what they are doing with regard to Python web app development.

Thanks, I've heard Zope is huge and that must be the mental overhead you were referring to. I take this to mean that it was at once a large project, but jusdging be the 124 to django and 4 for Zope + Grok I take it that it has fallen out of favor. Why? Does it make anything too difficult? Is it too closely married to ZODB, ie. are there problems with ZODB?

Re: Poll: Pythonic startups: what web framework do you use?

#55
post #40
post #9

For anyone who considered Django and discarded it (especially recently since it's been 1.0), could you maybe explain the decision behind that? I'm curious as a relatively recent Django convert.

I want to preface this by saying that Django isn't bad. It's really good. However, there are some maddening things. For example: In Rails, you can say Article.find(:all, :include => :comments) and that will get you the articles with their comments. In Django, you can say for a in Article.objects.all(): a.comments #hits the database again! argh! Before you say, "Django has select_related() which does the same thing as…

Your first issue is incorrect. You can easily accomplish the query with one sql hit. The extra() command would work if your foreignkey was defined in the comments model.

Re: Poll: Pythonic startups: what web framework do you use?

#56
post #39
post #22

Earlier quoted context omitted.

As I see it, if we get enough traffic to be worried about scaling issues we'll deal with it then. Django isn't terribly designed and going in and hacking multi-db and sharding in should take less than a week from a competent developer. Discussing this before starting a startup sort of feels like trying to figure out how to do salary for hundreds of employees before getting your first one.

I think it's worth discussing these things in depth. Choosing a web framework for your web company is a serious commitment, isn't it?

[deleted]

Re: Poll: Pythonic startups: what web framework do you use?

#57

Tipjoy is my first web project, actually. I started knowing python. I tried frameworks, and quit when something failed. Django was the first to go from start to live test site touch using a DB without a hiccup. I think that means something for both the quality of the documentation and the framework. TurboGears, web.py, and Pylons failed the test. The Python community would benefit from more people switching to Django…

Out of curiosity, what individual problems did you run into with TurboGears, web.py, and Pylons that caused them to "fail the test?"

Shit didn't work. Often something in the DB layer, sometimes just getting a "hello world" in a browser.

Re: Poll: Pythonic startups: what web framework do you use?

#58
post #39
post #22

Earlier quoted context omitted.

As I see it, if we get enough traffic to be worried about scaling issues we'll deal with it then. Django isn't terribly designed and going in and hacking multi-db and sharding in should take less than a week from a competent developer. Discussing this before starting a startup sort of feels like trying to figure out how to do salary for hundreds of employees before getting your first one.

I think it's worth discussing these things in depth. Choosing a web framework for your web company is a serious commitment, isn't it?

I agree it's worth discussing (especially if you're unsure about future malleability of the web framework to your needs), and I apologize if I was excessively curt.

Re: Poll: Pythonic startups: what web framework do you use?

#59

Earlier quoted context omitted.

Out of curiosity, what individual problems did you run into with TurboGears, web.py, and Pylons that caused them to "fail the test?"

Shit didn't work. Often something in the DB layer, sometimes just getting a "hello world" in a browser.

FWIW, that isn't a fault of the framework per se; I have had no problems with Pylons doing something it shouldn't have done. You have to understand what the code is doing, and each framework has a different learning curve, but in my experience Pylons is as usable, expressive, and understandable as Django.
Post reply on HN