News for hackers. Stuff that matters.
Re:Drupal's Golden Handcuffs by jackbravo on Tuesday October 02, 2012 @08:34PM (#4605166)
This is why http://drupal.org/project/features module was born. To allow you to export your functionality to code and have it under version control.

Features and things like http://drupal.org/project/drush_make is what makes a lot of the drupal distributions (http://drupal.org/project/distributions) that keep popping up because sourced controlled, feature driven development is now possible in drupal.

Also the testing part has been improving, and although very few of the contrib modules have tests most of core has automatic testing in place for when you submit a patch as you can see in the issue queues (http://drupal.org/node/466576).

Re:Drupal's Golden Handcuffs by w4y2 on Tuesday October 02, 2012 @08:59PM (#4605242)
Features is good as a concept, but in implementation it fails considerably. Here are a few issues:

- How to deprecate a feature (I created http://drupal.org/node/1400346 to attempt to solve this, but admitedly, it's a very dangerous module) - Ever created a feature with tons of things in it? Hello, 5 minute load times for admin pages! - How do you merge two features together? How do you commit just one feature and not another (say, one you're still working on?)

The CMI initiative will hopefully take care of a lot of the messiness and bugs in Features.

Re:Drupal's Golden Handcuffs by jackbravo on Tuesday October 02, 2012 @10:01PM (#4605440)
Right, features is not perfect. Upgrading a feature from D6 to D7 has been a pain to me.

I've merged features together and it was not as hard, at the end it is all code, you just need to be very careful, but at the same time you have git to revert if something goes wrong.

I don't understand the part about committing just one feature. You can commit just one =P.

Re:Drupal's Golden Handcuffs by exratione on Tuesday October 02, 2012 @10:05PM (#4605451)
Features is indeed the answer, and all of the potential issues are manageable.

I finished up a project earlier this year that has more than 300 modules active in a custom install profile, with 10MB of features modules stuck in there. We committed/contributed to a few fixes in core and Features to speed it up greatly. That's out in the wild on major sites and doing fine.

We didn't have any terrible admin screen issues, or indeed any terrible issues beyond occasional painful version control collisions.

Re:Drupal's Golden Handcuffs by vaporstun on Tuesday October 02, 2012 @09:51PM (#4605405)
The other downside of Features in Drupal is that if we export something as a Feature (say a View) and then our site builders tweak and change that View for our clients and then we update some core element of that View and re-export the Feature, that re-export will overwrite any custom changes that were made to that View, thereby trashing any of the custom changes. This is a real problem with Features to which I'm surprised there has not yet been a good solution.
Re:Drupal's Golden Handcuffs by jackbravo on Tuesday October 02, 2012 @10:03PM (#4605442)
Same problem as other frameworks. You need to know the rules. If you use rails, and the designer changes the CSS without committing the change to git, then next code push will erase his change.