r/programming • • Jan 05 '11

Drupal 7 released.

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

259 comments sorted by

View all comments

Show parent comments

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

5

u/davereid20 Jan 06 '11

Steven, we appreciate your early work to Drupal which helped shape the community and software. But this just comes off as bitter remarks from someone who is no longer involved rather than an honest critical review. Step up and help us fix things we can fix. File issues. Come to DrupalCon Chicago and hash it out with us.

1

u/UnConeD Jan 06 '11

I have only listed real world issues that I encounter daily in my job. And like the Drupal community always does, the only reply you'll get if you point out structural problems is "well, we fixed that one minor thing, so your entire criticism is invalid".

The state of Drupal today is a logical consequence of the core reviewing process: it is always easier to lazily argue for the status quo than for a change. Unfortunately, people assume there is some inherent value in the way things work today, without actually caring what the original assumptions were or if they are still valid. There is also an inherent flaw in the reviewing process, which, in the long term, favors badly written contributions (which cause lots of discussion and review, hence awareness) over solid ones (which get committed and then forgotten about). People are happy if their contribution makes it in at all, and then wash their hands of it out of frustration. Rinse and repeat for 7 years, and you have a hundred reasons not to come to DrupalCon.

3

u/Crell Jan 06 '11

Steven,

You're absolutely right in much of your criticism. The way nodes save is utterly broken, and has been for at least 5 years. The user module is a laughing stock, and has been for at least 5 years. Hooks are good for what they're useful for, but they are NOT a plugin mechanism by any stretch of the imagination. They're an extension mechanism only. We utterly lack a plugin mechanism in core; instead we have about 8 that are all slightly different.

All of those pieces of code have been in Drupal for years, dating back to the early days of Drupal before most current core contributors were even in the project. That is from the era when you were an active core committer.

Your issues with the review process (in the immediate parent to this comment) are also largely valid. Even as a subsystem maintainer I can't get a straight answer on if I have any more influence on a patch than someone else, and I've been asking for 3 years. We actively recruit the "casual weekend hacker" type contributor and mindset and coding style, thereby alienating professional software engineers every way we can. It also alienates designers and other non-hackers: http://www.disambiguity.com/drupal-7-and-beyond

This is a review process that evolved in Drupal's first half of life, back when you were an active core committer.

I want to see these issues addressed. It will be hard, very hard, but there's a growing number of people who disagree with the status quo of "quantity over quality" and "enough eyes are a substitute for good planning and expertise". People who want to see the node save system not suck, and having a real plugin system that's not just a mis-used language hack.

These wheels are moving. Slowly, but they are. It is not easy at all. But there are hundreds of people who are desperate for the kind of changes you're talking about, and to address the shortcomings you point out. And having a formerly active core committer involved would help immensely in making those kind of changes happen.

And that is a hundred reasons that people SHOULD come to DrupalCon...