Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
"be consistent"
 
PerlMonks  

Re: Being helpful to a fault?

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 16: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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.