Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: use strict and warnings for newbes

by bladx (Chaplain)
on Aug 24, 2001 at 08:22 UTC ( #107612=note: print w/replies, xml ) Need Help??

in reply to use strict and warnings for newbes

While this may be a good idea, John_M._Dlugosz, it may get tiresome to each particular anonymous monk that posts each and every time they post.

I am not trying to sound rude, but what if that person (he or she,) is actually very skilled in the language, and already know to use strict, and -w in their snippets or code? It might just make them consider just a place where they think new people don't know anything about the language.

I think it's just fine to leave it the way it is, since newbies generally learn quite quickly that they should use strict, and -w... at least I did, and I know of many others :-).

That's just my quarter for this subject ;-).

Andy Summers

Replies are listed 'Best First'.
Re: Re: use strict and warnings for newbes
by damian1301 (Curate) on Aug 24, 2001 at 08:42 UTC
    Well...most new people don't now much about anything that they are new to.

    I think that it is just a kind reminder to first stop and consider that you are asking other people's help and assistance with nothing to give them in return. So, you might as well help them out as much as you can by first checking your code and making sure that there are no simple variable misspelling or a dinky mistake.

    All in all, it sounds like a good idea to me. A slight reminder here and there will never hurt anyone.

    $_.=($=+(6<<1));print(chr(my$a=$_));$^H=$_+$_;$_=$^H; print chr($_-39); # Easy but its ok.
Re: Re: use strict and warnings for newbes
by demerphq (Chancellor) on Aug 31, 2001 at 06:02 UTC
    To be honest I dont buy this skilled person argument. I do a lot of perl. Occassionally I leave it out of my code and then get bitten. Every time. When I have strange results its the first thing I check.

    I personally would have no problem if the input boxes came preloaded with the code block AND a nice

    use warnings; use strict;

    Honestly I think I agree with the perldocs that it is a bug that perl does not have these set by default, as you can always negate them as in the infamous

    no strict 'refs';

    Even the old hands from what Ive seen in the modules work under strict and warnings, and probably wouldnt mind much at all if they were present.

Re: Re: use strict and warnings for newbes
by John M. Dlugosz (Monsignor) on Aug 24, 2001 at 08:46 UTC
    Why would someone who posts enough to find it annoying still be Anonymous?!
      There are plenty of people who are in the business world or school, for instance, and they don't really have time to create a new account, and have to worry about if they ask a stupid question or two, or three.

      Being anonymous for some people,
      1. Saves people precious time (a minute or two of logging in/out
      2. Shield people from being the laughing stock of the day in the monastery

      I have an account myself (obviously,) but some people have those ways of thinking about getting an account...

      Andy Summers

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://107612]
What's the matter? Cat got your tongue?...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2018-05-27 12:33 GMT
Find Nodes?
    Voting Booth?