Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Counting lines of C code

by BrowserUk (Pope)
on Jul 26, 2002 at 23:04 UTC ( #185689=note: print w/replies, xml ) Need Help??

in reply to Counting lines of C code

Not that the point really needs reenforcing any, but the story might amuse.

A few (more..) years ago whilst contracting at a large azure company, a bean counter somewhere started recording "kloc metrics". Through an accident of mixed up mailing lists, one of 'us' became aware what some of 'them' were doing, and for some strange reason, a relatively small group of 'us' starting harmonising our comment block style on the rather obscure

/*;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; This bit should be reasonably self explanitory ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;*/

which was nice, but soon became passť...and had to become

//;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; // this bits quite important //;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

but again this went out of vogue as the fashion police became cleverer at detecting fakes so

{;};{;};{;};{;};{;};{;};{;};{;};{;};{;};{;};{;};{;};{;}; // Not sure about this bit {;};{;};{;};{;};{;};{;};{;};{;};{;};{;};{;};{;};{;};{;};

This cycle-of-fashion ran on for a while until the edict came down from on high

Thou shalt not use extranious semi-colons in C code

The challenge then for the top couturiers was to see who could write the longest single, valid, line of c code.

Of course, the comma operator came into its own for this.

Interestingly, my very first sight of a Perl program (deftly moving the subject back on-topic:), was a 300+ line Perl/CGI script of which about 200 lines was a single, poetry-mode, print statement producing a (near) static table in html.

I knew then that I was going to like Perl...albeit that it was one ugly piece of code.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://185689]
[Discipulus]: good morning community!
[Corion]: Good morning Discipulus!

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2018-06-19 07:08 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (111 votes). Check out past polls.