Comments of Drupal Code in a Cloud

The comments in the Linux Kernel are known to have lots of swear words in them, as the "count the F word" page and the other page demonstrate.

So I looked in to the comments of Drupal and sure enough, it was clean; no bad language there. So to practice some of my grep | sed | awk | cut | sort | uniq skills, I made a small script to get the comments out of the source code and sort them. Below you can find the top 100 words used (minus some noise words) in the 5.2 version of Drupal in a cloud. Useful? Not all all. But funny to see IMHO.

access   action   add   any   arguments   array   available   been   book   cache   callback   can   check   code   comment   containing   content   count   create   current   data   database   default   display   dries   drupal   each   element   error   example   false   field   file   files   filter   first   format   forum   from   function   functions   get   given   has   have   hook   id   implementation   information   into   item   key   language   link   links   list   mail   menu   message   module   modules   more   name   need   new   node   number   object   one   only   order   output   page   path   process   profile   query   result   results   return   schema   search   see   select   set   settings   should   site   so   status   string   system   table   text   theme   there   title   translation   true   type   update   use   used   user   users   using   value   values   variable   variables   version   we   when   where   which   will   with   you   your  

note: if you are reading this article via a RSS reader, you will most likely not see the FONT tag. Go to the full article to see the posting as it was meant

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Idea

Would this script work on contrib too?

we

It's nice to see the word "we" score so high Smiling

Small wonder

How does it come that "array" comes out so big

It's not as if Drupal used lots of arrays... Smiling

"We"

Funny to see the "we" so often. "//Next, we will look at the array and see if it contains Foo" is a popular way of commenting. In Drupal. Smiling

Funny you say that

Funny you say that it's good to see 'We' score so high. I try to avoid using 'we' in comments as I find it can be ambiguous and confusing. Also it's a rather personal aproach to something very unpersonal -- but that could be argued the other way easily too! Smiling

Does anyone else think so, or is it just me?

ok, so contrib has the

ok, so contrib has the following modules with the "f" word in them:

availability
import_html
jstools
liquid
task
webmedia

and a few more thanks to Michael Jervis's email address Smiling

That sounds great!!! need to

That sounds great!!! need to work around on the drupal cloud

oops

need to say this since you quoted Practice... sed is a good thing to play with while using php

Post new comment

*
*
The content of this field is kept private and will not be shown publicly.


*

  • You may link to images on this site using a special syntax
  • Textual smileys will be replaced with graphical ones.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Voting controls can be added to this post.
  • Lines and paragraphs break automatically.
  • Easily link to terms in various wikis. For help, see interwiki.
  • Allowed HTML tags: <A><I><LI><OL><U><UL><img><p><tt><table><hr><small><div><br><strike><b><pre><li><ul><td><tr><blockquote>
  • Insert Google Map macro. Create a macro