38 karma · joined Feb 26, 2009 (17y ago) · 29 submissions
comment 16y ago · link · parent
Otherwise it's crippled in comparison to Jinja or Mako - with large amounts of un-Pythonic boilerplate if you want to write template tags.
To an extent you can replace it but again you will have trouble with those "reusable" apps.
comment 16y ago · link · parent
comment 16y ago · link · parent
Personally, I find generic views to be useless for anything but the simplest of prototyping. Making them functions rather than callable classes was a big mistake IMHO. I very rarely use them in a serious project.
Another pet hate is UserProfiles - you have to use a separate model if you want any custom fields for your users which entails a join whenever you want to use it. It's been a ticket for years but nobody seems willing to fix it.
I agree with you 200% on templates and am in a very similar situation. Having to write convoluted code in template tags for the simplest of things is frustrating, when you can have simple function calls and template macros in Mako and Jinja2.
I'm not hugely fussed about AJAX myself - I tend to keep things simple in the views and just pass JSON back and forth and jQuery does most of the front-end work. I disliked the Rails way of binding everything to a particular JS library, not sure if it's still done that way any more.
Django is OK for certain projects. What annoys me though is that like Rails, it has gotten such mindshare in certain companies that they call themselves "Django shops" and want to use it for everything, without considering alternatives. Personally I stay well clear of it for my own projects - Pylons, Werkzeug, SQLAlchemy et al are a lot more fun to work with.
comment 16y ago · link · parent
Of course your advice might be overruled for perfectly valid technical or non-technical reasons. But by keeping silent and not suggesting alternatives you are doing yourself and your employer a disservice.
comment 16y ago · link · parent
No need to market it as just for rural locations. In the UK we have Gumtree for example, which is a serious competitor to Craigslist. While I agree to some extent with the idea of Craigslist's simplicity, I think it is becoming long in the tooth and unwilling to consider new ideas, and it's time for a decent, usable replacement.
Some IP-based geolocation would be nice. And some localization: "yard sale" and "apartment" for example are US terms. But that's nitpicking, which is a good sign :-)
comment 16y ago · link · parent
Another factor is culture - America is more "welcoming" to ethnic minorities, and is built more or less on top of recent immigrants. European nations have a stronger ethnic identity which is less able or willing to accept new groups.
Really though you can't compare America to Europe in a single generalization - Poland, UK and Spain, to name a few, are completely different places, more so than, say, California and West Virginia. It will be impossible (and undesirable) to achieve the same kind of unity America has, not in this century anyway.
comment 16y ago · link · parent
And what was with the weird YouTube video with the wedding song ?
A name change is a good idea - there was too much confusion between Zope 3 and Zope 2 - but they should have spent a little more time on thinking up the new name.
14.
Zope3 renamed BlueBream(pypi.python.org ↗)
2 points · by kaveri · 16y ago · 2 comments
comment 16y ago · link · parent
If all you have is a "me-too"|yet-another-Twitter-client that appeals only to the geek crowd, and has no viable business model, Silicon Valley is the place to be. Especially if you want to burn through early capital living in one of the most expensive locations in North America.
comment 16y ago · link · parent
The advantage is that validation is decoupled from models. Often you need to handle validation which doesn't directly involve a single model - for example sending an email, or handling updates to a number of models. This saves you having to litter your controller/views with validation code.
comment 17y ago · link · parent
For example, in order to support a large number of template engines, Pylons uses Buffet, another library which provides a common interface for these engines. Typically, however, you will only use a single template engine in your project and it only needs a few lines of code to set an engine up.
Although I do most of my web development in Django, when I do need more control or something a bit simpler I go with a Werkzeug + SQLAlchemy + Jinja stack (plus WTForms, similar to Django forms but in a standalone package). The code needed to get up and running isn't that much more than Pylons (and paster generates a whole lot of code anyway) and I can count the dependencies on one hand. That makes deployment a lot faster and easier, and it's just as easy to swap out these dependencies as with Pylons.
comment 17y ago · link · parent
Why not try dumping this silly, dated "rock star programmer" attitude and start discussing the strengths and weaknesses of your preferred technology like an adult ?
comment 17y ago · link · parent
Developers assume that just because "it works" then non-code issues are irrelevant.
In truth, people choose frameworks and languages not just because of the code and career opportunities but also because of the community. This goes for developers and management.
There is nothing wrong with that - software development is as social as any other human activity. A good community is helpful, welcoming and tolerant. Compare for example the Lisp and Python communities - Lisp has definitely been hurt by an elitist, unwelcoming community, whatever its technical merits.
After this presentation and related comments across the blogs, the Ruby/Rails community comes across as arrogant, sexist and immature (as do its leaders). This does a completely unnecessary disservice to the technology.
comment 17y ago · link · parent
End-users who happen to be employees don't get to choose the software - just like developers who are forced to use Java at work but code at home in Haskell or Python, they are forced to use a system decreed by management and therefore will often have a negative bias to start with - "the new system" being both a focus of complaints in the coffee room and a catch all excuse to tell customers.