Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Are prototypes evil?

by tadman (Prior)
on Sep 03, 2002 at 07:11 UTC ( #194696=note: print w/ replies, xml ) Need Help??


in reply to Are prototypes evil?

When I see prototypes, I hear a little voice in my head, like I was James Woods in Videodrome: "Kill them. Kill them all. Kill your prototypes." I even have a script that strips them out. The number of occasions where I've had to use a prototype is less than a few dozen, and even then, it was mostly bad Laziness. Most of the ones I see are pointless, such as prototypes on object methods.

The whole automatic scalar conversion thing really burns me. Or at least cramps my style. They don't even work properly, either, so at best, they're broken, at worst, dangerous.

Now as for lvalue subroutines...

Replies are listed 'Best First'.
Re: Re: Are prototypes evil?
by demerphq (Chancellor) on Sep 03, 2002 at 17:30 UTC
    Hear hear!

    Can I have a copy of the script you mention?

    Yves / DeMerphq
    ---
    Software Engineering is Programming when you can't. -- E. W. Dijkstra (RIP)

      It's just a simple snippet, really. Not 100% effective, but good enough for what I needed.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2016-08-28 18:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (394 votes). Check out past polls.