r/programming • • Jan 05 '11

Drupal 7 released.

http://drupal.org/drupal-7.0
222 Upvotes

259 comments sorted by

View all comments

0

u/midri Jan 05 '11

I really feel like drupal is a great example of the average php programmers way of thinking... Why has no one built a robust cms ontop of cakephp that's gotten popular? Cakephp is the closest you can get to developing on rails for PHP (which is a good thing) It's always on my list of things to do but I get sidetracked with shit that makes me $...

3

u/CritterM72800 Jan 05 '11

drupal is a great example of the average php programmers way of thinking

Would like to see examples so that we can refute them.

25

u/UnConeD Jan 05 '11 edited Jan 06 '11
  • Despite being a "content management framework", the core doesn't actually save you from writing code. You still have to write CRUD code, still have to manage validation, still have to define your own themables. That is, unless you use CCK/Views, which is pretty much developer-hostile lasagna and slow to boot. And it'll look like ass, unless you have an ubertalented designer who also knows PHP (i.e. a "themer", a role which doesn't exist elsewhere). And the one part that you would actually want to contextualize, i.e. the content UI, is shoehorned into the node/edit form with zero choice.

  • Despite the promises of the hook system, Drupal lacks the ability to swap out components. If you wish to leverage part of the page generation process for another purpose, you have to reimplement everything that comes after. Alter hooks are terrible tools for building reliable behavior, since they require you to actively fight against other parts of the system instead of just turning them off. If you don't share Drupal's assumptions about user accounts, you're fucked, unless you feel like trapping and erasing UI messages is a productive use of your time. And don't even try to maintain the resulting code.

  • Despite being billed as having a "solid core", Drupal's irreplaceable innards are actually pretty fragile. Form API is near impossible to debug and fails silently at the drop of a hat. The node system doesn't even let you reliably do programmatic saves. The user system is a terrible misdesign that mixes front-end presentation details ($category) with low level data manipulation. The global $user object is actually a useless fake, waiting to trip you up.

  • Entire portions of Drupal were created in a theoretical vacuum and released without any serious working implementations. For example, install profiles: they are executed in an incomplete pseudo-Drupal environment where it's actually impossible to do certain simple things due to static caches and dysfunctional APIs. Another example: Form API process functions with complex datatypes and dynamic AJAX manipulation. Theoretically possible, practically a nightmare.

The problem can be summarized quite effectively: out of the box, it is impossible to make a slick, modern website with Drupal, i.e. something that looks and feels like 2011 rather than 2001. It's only useful if you're already planning to write a lot of custom PHP/HTML/CSS. Otherwise you have to be happy with terribly designed contrib components that are insecure, don't scale and have bad usability. This is not surprising since Drupal has been in incremental-improvements-mode since 2002 (i.e. Drupal 4.0) and the few architectural improvements made since then were designed with only one purpose in mind: to support what Drupal already does, rather than being solid components of a CMF.

Doing Drupal will stunt you as a developer, overburden you as a designer and frustrate you as a user.

waves

1

u/chu Jan 07 '11 edited Jan 07 '11

Disagree with your summary, having been involved in modern big sites with near zero code required. (Though obviously you are going to write full HTML/CSS on any serious site, otherwise there's WP.)

You have clearly identified in detail coding/design issues that you find problematic on a project where you were a major contributor. Have you moved onto a different framework that you think is better and somebody had already done this work? And why not tell us about this better alternative instead of just 'Drupal sucks'? The issue list you have compiled is clearly useful for anyone working on Drupal 8 architecture in particular, but I'm sure you're aware that it's not usually a problem to find a contributor to talk about why any framework x sucks (though maybe not so much in a public forum) as they are intimately familiar with all the expediencies and inconsistencies that were required to create useful software in a useful timeframe. I've heard similar tales of WTF-ness (albeit it lower level like those frameworks) from Zend and Rails camps for example. (I've also seen Drupal do far more complex integrations far more easily than other frameworks.)

2

u/UnConeD Jan 07 '11

Why speak up? Because people should know what they're getting into. If Drupal works for you, great. But Drupal folks need to realize they are at the center of a giant reality distortion field that conveniently papers over its flaws in favor of an almost cultish feel-good vibe. It's a huge community, arguably the biggest OS community in the world, and what comes out is a product that is meh and doesn't look like anything that is exciting on the web today.

There's also the fact that I've observed these processes at work up close, for years, and don't believe Drupal will change any time soon.

But it's not like I'm on some crusade to discredit Drupal. I've barely written anything about it since I left. I merely saw an opportunity to speak up and did so. Given the response, it seems like it was a good idea.

2

u/chu Jan 07 '11 edited Jan 07 '11

Drupal folks need to realize they are at the center of a giant reality distortion field that conveniently papers over its flaws

I think it's unfair to say that Drupal papers over its flaws. The issue queues and IRC are full of contributors quite vocally recognising and working on these issues. Patches are picked over in detail from the POV of code and design quality. Of course there are still design issues and bugs, some persistent - just like any other large software project. This is all in public and available for anyone to see - how could it be 'papered over'?

Yes, the community markets Drupal, on the implicit understanding that widespread implementation is the path to long-term software survival and improvement - again like any other software project.

And if you want to talk about reality distortion fields, where to begin? Maybe first take a look at Rails or Agile (or the enterprise Java world for that matter). Regardless of any hype, there are still functional sites written in Rails, and Agile continues to usefully break barriers between business and dev. Applying Occam's razor, could it not be that people gush about Drupal because it actually solves their problems? Despite its reputation for weak usability, I've repeatedly had excellent feedback from business users who don' care what the underlying technology is.

what comes out is a product that is meh and doesn't look like anything that is exciting on the web today

You haven't offered a better alternative - what do you think is exciting on the web today? You've just said that the Drupal community is unable to produce quality software and held up some design imperfections as evidence. From a business perspective, Drupal leads the field in its class and is a no-brainer for many commercial websites both small and at scale. That is one definition of quality software. And then there's the more technically exciting stuff - MongoDB support, RDFa, OAuth and services, an ECA Rules engine, fieldable entities, pluggable auth and caching, l10n/i18n, external services piped through Views. (You say you tried the last and found it painful to get working, me too - but I believe that's completely expected for any cutting edge development, particularly AOP-based. And to be fair Views 3 has only recently gone into alpha.)

You say you want to warn people - then surely give a balanced view and also consider the strengths and weaknesses of the alternatives.