write less drupal code
TRANSCRIPT
Let’s write less Drupal code.
Alex Barth (alex_b)
Much of the code we are maintaining
isn’t actually Drupal-specific.
jquery.js
aggregator.parser.inc
valid_url()
filter_xss()
check_plain()drupal_parse_info_format()
jquery.once.js
drupal_http_request()
drupal_depth_first_search()
password.inc
Some of these don’t seem to be a big deal:
check_plain()
Others do:
openid.inc (609 lines)
PubsubHubbub
If I had had
check_plain() drupal_http_request()valid_url()
my code would be shorter now and I could have written it in less time.
RSS/Atom parserRDF parserOAuthActivity StreamsSamanPub/subEver more jQuery for UI
Some existing challenges that will benefit form good external library support:
1.Allow modules to share external libraries by adding them to the
search path: sites/all/libraries (Libraries module)
2.Move non-Drupal-specific code into a separate include file(s) - make
them externally available?
3.Use drush_make to package modules with external libraries.
(Some) solutions