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

8

u/ShrimpCrackers Jan 05 '11 edited Jan 05 '11

I think Joomla and Drupal are too bloated and when you're on a shared host and both often break.

Most sites in my experience do well with Wordpress. I know I know, it's "just a blog platform" but seriously... most sites don't need that much complexity for the user. Besides, Wordpress has stable plugins that can handle many authors with multiple permissions. As for hits, wp-cache and others do a wonderful job. Wordpress has a lot of great qualities while Joomla and Drupal just brings optional quantity.

21

u/skeww Jan 05 '11 edited Jan 05 '11

Wordpress isn't a lightweight compared to Drupal.

X:\wordpress-3.0.4>cloc *
     565 text files.
     563 unique files.
       7 files ignored.

http://cloc.sourceforge.net v 1.53  T=9.0 s (61.8 files/s, 23006.2 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
PHP                            291          20399          41225          97013
Javascript                     159           4159           2619          22097
CSS                             88           2381            479          14448
HTML                            17            258              7           1927
XML                              1              7              0             37
-------------------------------------------------------------------------------
SUM:                           556          27204          44330         135522
-------------------------------------------------------------------------------


X:\drupal-7.0>cloc --force-lang="PHP",module --force-lang="PHP",install --force-lang="PHP",inc --force-lang="PHP",engine *
     852 text files.
     847 unique files.
     221 files ignored.

http://cloc.sourceforge.net v 1.53  T=10.0 s (62.9 files/s, 22984.2 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
PHP                            404          14828          66433         127260
CSS                            116            810           1098           8909
Javascript                      84            815           2808           5085
Bourne Shell                     8            172              3           1060
XML                             12              3              0            441
HTML                             3              4              0             69
ASP.Net                          1              3              0             40
SQL                              1              0              0              1
-------------------------------------------------------------------------------
SUM:                           629          16635          70342         142865
-------------------------------------------------------------------------------

As you can see, Wordpress isn't significantly smaller. Wordpress is merely ~24% less code (with ~38% less comments).

Edit: I didn't include the "test" files, since these are unit tests and the code is never executed on a regular website.

-1

u/ShrimpCrackers Jan 05 '11 edited Jan 05 '11

As you wrote; 24% less code is actually very significant considering Wordpress does pretty well with very few plugins (since a big chunk of that extra code is to make things incredibly easy for the user to configure and edit while Drupal requires a lot more work to streamline since the framework itself isn't enough and is much easier to break.

As for the comments, it's dubious to compare them directly without ratio. By ratio of comments to code, Wordpress scores about 4/10 while Drupal is 5/10. That said, I think Wordpress documentation and support is leagues better than Drupal regardless of numerics.

At the end of the day, it's a lot easier to train users to use Wordpress over Drupal, Drupal breaks more easily, Wordpress is a lot faster to deploy. So Wordpress wins for many smaller sites and can be used even for large scale websites depending on what you want to do.

5

u/CritterM72800 Jan 05 '11

is much easier to break

I disagree with pretty much your whole comment but that part in particular is incredibly subjective and shouldn't be passed off as fact. I've broken WP far more often than Drupal.