Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: The 'eval "require $module; 1"' idiom (one character cargo cult)

by tobyink (Canon)
on Apr 19, 2014 at 09:38 UTC ( [id://1082883]=note: print w/replies, xml ) Need Help??


in reply to Re^2: The 'eval "require $module; 1"' idiom (one character cargo cult)
in thread The 'eval "require $module; 1"' idiom

As per your own link, cargo cult programming is the ritual inclusion of code or program structures that serve no real purpose. This is code that serves no real purpose. I don't have a character threshold. If it were possible to include code or program structures using zero characters, and that code or structure served no purpose, then I'd argue that to be cargo cult too.

This kind of thing is what gives newcomers to Perl the impression that it's full of magical incantations, and they'd be better off using Python. (I grant you that this is a very minor and seemingly insignificant example, but it does all add up!)

use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name

Replies are listed 'Best First'.
Re^4: The 'eval "require $module; 1"' idiom (one character cargo cult)
by Anonymous Monk on Apr 19, 2014 at 09:48 UTC

    As per your own link, ...omit the essence that is ritual inclusion without understanding../

    Cute:)

    How is one character a ritual? How is using it inclusion without understanding?

      ; 1 is more than one character and stupid c&p b/c "many others did before" is cargo cult.

      Cheers Rolf

      ( addicted to the Perl Programming Language)

        ; 1 is more than one character and stupid c&p b/c "many others did before" is cargo cult.

        Hmm, how do you other peoples motives? How do you know that it is stupid c&p b/c "many others did before"? How do you know the person who typed that did not do so thoughtfully?

        Also, one character is one character; you add "1" to "foo();" you don't add ";1" to "foo()"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1082883]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-03-19 09:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found