Scoop -- the swiss army chainsaw of content management
Front Page · Everything · News · Code · Help! · Wishlist · Project · Scoop Sites · Dev Notes · Latest CVS changes · Development Activities
Random Scoop Factoids Announcements
By hurstdog , Section Code []
Posted on Fri Dec 14, 2001 at 12:00:00 PM PST

Well, we got to wondering on irc today.. and this is what we came up with. Most of these are simple greps, since its easy :) But here is the list of scoop facts!

  • 21300 total lines of perl and comments
  • 26 forms
  • 1 OUT OF CHEESE ERROR
  • 397 regular expressions
  • one of these:
    $rest =~ /\s*(?:(\S+?)\s*=\s*(?:"+([^"]+)"+|(\S+))|(\S+)(?!=))\s*/g
  • 201 if() constructs
  • 91 unless() constructs
  • 45 hard coded font tags
  • 370 font tag macros (like |norm_font| )
  • 10+ people to have contributed code
  • 2 modules that scare developers
  • 10000 lines of code that any self respecting curator would designate as art
  • 537 functions
  • 10034 brackets
  • 1 bug found while writing this story

Thats about what we came up with in the short time we spent on this. Feel free to post additional tidbits below :-)

Update [2001-12-15 18:33:26 by panner]: Further breaking down the code to its individual parts, courtesy of justinfinity's srccount.pl:

             File Name                   Code     Comments      POD    Lines
----------------------------------------------------------------------------
/www/htdocs/scoop/lib/Scoop.pm            970     245 (10)       92     1682
/www/htdocs/scoop/lib/Bundle/Scoop.pm       5       1 (0)        41       66
/www/htdocs/scoop/lib/Scoop/Admin.pm       79       0 (0)         0       86
/www/htdocs/scoop/lib/Scoop/Ads.pm         30       2 (0)        63      143
/www/htd...lib/Scoop/ApacheHandler.pm     320      47 (21)       42      501
/www/htdocs/scoop/lib/Scoop/Boxes.pm      299      12 (3)         0      394
/www/htdocs/scoop/lib/Scoop/Cache.pm      241      37 (8)         0      363
/www/htdocs/scoop/lib/Scoop/CGI.pm         48       4 (0)         0       66
/www/htd...coop/lib/Scoop/Comments.pm     539      72 (4)         0      755
/www/htd...scoop/lib/Scoop/Cookies.pm      49      22 (0)         0       91
/www/htdocs/scoop/lib/Scoop/Cron.pm       519      20 (8)        62      770
/www/htdocs/scoop/lib/Scoop/DB.pm         174       4 (1)         0      238
/www/htdocs/scoop/lib/Scoop/Debug.pm       32       2 (0)        27       90
/www/htd...op/lib/Scoop/ForumZilla.pm     163      73 (2)        40      361
/www/htd...scoop/lib/Scoop/Hotlist.pm     189       9 (6)         0      240
/www/htd...oop/lib/Scoop/Interface.pm     588      15 (1)         0      694
/www/htdocs/scoop/lib/Scoop/Polls.pm      160      18 (2)        42      307
/www/htdocs/scoop/lib/Scoop/RDF.pm        353      17 (8)        64      536
/www/htdocs/scoop/lib/Scoop/Search.pm     474      14 (1)        43      684
/www/htd.../lib/Scoop/Spellchecker.pm      95       8 (2)        41      198
/www/htd...oop/lib/Scoop/Statement.pm      80       9 (1)         0      119
/www/htdocs/scoop/lib/Scoop/Static.pm     126      13 (0)         0      182
/www/htd...scoop/lib/Scoop/Stories.pm     312       6 (5)         0      389
/www/htd...coop/lib/Scoop/Template.pm     142      11 (0)        40      269
/www/htd...scoop/lib/Scoop/Utility.pm     159      33 (0)        61      383
/www/htd...coop/Admin/AdminStories.pm    1138      61 (9)        43     1552
/www/htd...oop/lib/Scoop/Admin/Ads.pm     288      36 (7)        43      495
/www/htd...b/Scoop/Admin/EditBoxes.pm     235      11 (1)         0      304
/www/htd...ib/Scoop/Admin/EditUser.pm     456      22 (5)         0      583
/www/htd.../lib/Scoop/Admin/Groups.pm     209      17 (3)         0      289
/www/htd...Scoop/Admin/OpTemplates.pm     166       4 (1)         0      208
/www/htd...p/lib/Scoop/Admin/Perms.pm     148      19 (0)        46      288
/www/htd...p/lib/Scoop/Admin/Polls.pm     425      59 (2)        91      777
/www/htd...coop/Admin/PostThrottle.pm     163      30 (0)         0      256
/www/htd...ib/Scoop/Admin/Sections.pm     380      41 (0)         0      536
/www/htd...lib/Scoop/Admin/Special.pm     172       2 (1)         0      204
/www/htd.../lib/Scoop/Admin/Topics.pm     180      17 (0)         0      237
/www/htd...p/lib/Scoop/Admin/Users.pm     526      11 (5)         0      709
/www/htd...op/lib/Scoop/Admin/Vars.pm     627      97 (12)        5      891
/www/htd...b/Scoop/Comments/Format.pm     404      19 (7)         0      519
/www/htd...lib/Scoop/Comments/Mojo.pm      82       1 (0)         0      106
/www/htd...lib/Scoop/Comments/Post.pm     493      49 (16)        0      673
/www/htd...ib/Scoop/Comments/Prefs.pm     251       3 (1)         0      291
/www/htd...lib/Scoop/Comments/Rate.pm     282      19 (0)         0      399
/www/htd.../lib/Scoop/HTML/Checker.pm     239      48 (18)        0      343
/www/htd...p/lib/Scoop/HTML/Parser.pm      83       5 (8)        47      195
/www/htd...p/lib/Scoop/Polls/Forms.pm     157      29 (0)        43      305
/www/htd...p/lib/Scoop/Polls/Utils.pm     271      30 (2)        97      567
/www/htd.../Scoop/Stories/Elements.pm     453      39 (0)         0      605
/www/htd...ib/Scoop/Stories/Submit.pm      76       1 (1)         0       94
/www/htd...lib/Scoop/Stories/Views.pm     210      21 (0)         0      294

----------------------------------------------------------------------------
                Totals                  14260    1385 (182)    1073    21327
< How can I put a "Post A Comment" link on my story summaries? | Scoop as Helpdesk Management System >

Menu
· create account
· faq
· search
· report bugs
· Scoop Administrators Guide
· Scoop Box Exchange

Login
Make a new account
Username:
Password:

Related Links
· Scoop
· justinfini ty's
· srccount.p l
· More on Announcements
· Also by hurstdog

Story Views
  51 Scoop users have viewed this story.

Display: Sort:
Random Scoop Factoids | 0 comments ( topical, 0 hidden)
Display: Sort:

Hosted by ScoopHost.com Powered by Scoop
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest © 1999 The Management

create account | faq | search