why I gave up -w and "use strict"

  • Thread starter newyork799-miscperl
  • Start date
N

newyork799-miscperl

Well, using warnings were never really a help to begin with. I can
always trigger them with a switch if I want.

Not using strict leads at first to some funny, funny bugs...but it
makes you a stronger programmer...writing short programs you don't need
to declare each variable and if it gets longer or you add mods, just
start adding "my" in the subs and mods.
 
J

James E Keenan

Tim said:
Tim Hammerquist said:
(e-mail address removed) wrote:
[ stuff ]


Apologies to the group for reacting to such an obvious troll.

I'm reminded of Uri's railing against the techniques described
in "Advanced Perl Programming."

It should be noted that that thread was discussing the *first* edition
of Advanced Perl Programming, not the *second* edition: a completely
different book by Simon Cozens.

Of course, it would be interesting to hear what Uri has to say about
*that* edition as well!

jimk
 
N

newyork799-miscperl

Tim said:
Tim Hammerquist said:
(e-mail address removed) wrote:
[ stuff ]

Apologies to the group for reacting to such an obvious troll.

oh, oh, oh...why a troll...I am serious...when I was learning Perl to
just recently I always used the -w and "use strict" nonsense on even
the shortest programs...

#!/usr/bin/perl -w
use strict

print "hello world\n";

haha...so it is kind of nice to give that shit up when you don't need
it ;-)
 
N

newyork799-miscperl

hey, but also thank you for the reply and the link ;-)

I read through it
 
M

Matt Garrish

Tim said:
Tim Hammerquist said:
(e-mail address removed) wrote:
[ stuff ]

Apologies to the group for reacting to such an obvious troll.

oh, oh, oh...why a troll...I am serious...when I was learning Perl to
just recently I always used the -w and "use strict" nonsense on even
the shortest programs...

haha...so it is kind of nice to give that shit up when you don't need
it ;-)

Only children feel the need to swear when they post.

Matt
 
A

axel

Well, using warnings were never really a help to begin with. I can
always trigger them with a switch if I want.
makes you a stronger programmer...writing short programs you don't need
to declare each variable and if it gets longer or you add mods, just
start adding "my" in the subs and mods.

All of which goes to show that you can quite happily programme away
on your own... but no matter how good a programmer you are does
not prevent typos and using 'my' in subs with warnings and strict
switched off does nothing to prevent it.

No serious programmer would dream of omitting a basic step
which might otherwise cause a long time spent in debugging [1] or
an error which would show up in production code.

To even suggest such a thing automatically rules you as either a troll
or an idiot, probably both.

[1] Unless he was being paid by the hour and under an incompetent
manager.

Axel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top