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

Re^4: I hate the leading underscores.

by seattlejohn (Deacon)
on Feb 17, 2005 at 02:24 UTC ( #431818=note: print w/replies, xml ) Need Help??


in reply to Re^3: I hate the leading underscores.
in thread I hate the leading underscores.

Private methods/variables should have no reason to be called outside a class.

How about whitebox unit testing? I do this all the time.

        $perlmonks{seattlejohn} = 'John Clyman';

Replies are listed 'Best First'.
Re^5: I hate the leading underscores.
by RazorbladeBidet (Friar) on Feb 17, 2005 at 15:21 UTC
    Good point - looks like that comes up in JUnit testing as well:

    JUnit

    How do they solve it? Reflection :) Pretty much a hack around it, I suppose.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2023-02-04 21:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (31 votes). Check out past polls.

    Notices?