Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Being helpful to a fault?

by pg (Canon)
on Dec 11, 2003 at 06:51 UTC ( #314000=note: print w/replies, xml ) Need Help??


in reply to Being helpful to a fault?

I have to agree with you. A bad idea is still a bad idea even if you carry it out smartly.

I tell you what I do:

In Java, regardless whether I need all of the classes in a particular package, I can easily import all of them by doing something like:

import java.util.*;

But I never did that, instead I always specify each class I need:

import java.util.Vector; import java.util.Hashtable;

Why? Because I know what I am doing, and want to hold it tightly.

Replies are listed 'Best First'.
Re: Re: Being helpful to a fault?
by halley (Prior) on Dec 11, 2003 at 21:49 UTC
    While everyone's talking about "9 times out of 10," my first guess at reading that other node was that the poster was familiar with the Java idiom, and just wanted to do the same thing in Perl. Of course, a six-line bit of cargo-cult chicanery isn't a useful idiom, but the question was interesting anyway. The "bigger question" here is that idioms are just that: they make sense in one language, but don't translate as well. "You're pulling my leg" means nothing without cultural context. import java.util.*; is similarly bizarre to people wearing Perl-colored glasses.

    --
    [ e d @ h a l l e y . c c ]

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2021-10-20 08:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (79 votes). Check out past polls.

    Notices?