Helping Less... er... Able... Programmers

2001-03-27 Thread Dave Cross


I've developed this weird habit of hanging around places where less
able Perl programmers congregate and trying to distribute clues.

The latest place I've found is the BBS for readers of Liz Castro's
book. It certainly gives you some perspective[1] on her target
audience.

Here's an example response to a question (the question used 
for (;;;) loops:

=

Erm, My eyes keep darting to your FOR loops. For is mainly used in javascript, and 
perl doesnt handle them, mainly because of the semicolons used to split the 
operations. Instead of for, use foreach, because thats close to the perl equivalent of 
for. I'm not sure exactly what that would translate to into perl, but if you want to 
do something in a foreach loop, it would look like 

foreach $ArrayItemYouNeedToChange (@TheArray) { 
#do this 
} 

Remember, for loops are for JS, not perl. You cant use semicolons in perl, unless 
theyre before a carriage return. 

=

I particularly like the last bit about where it's legal to use
semicolons in Perl.

When the original poster pointed out that there were for loops in
Castro's book, he got the response:

=

Hrm. I Dont really know. Email xxx@xxx Thats VulKen's email. He's the only one on this 
board thats better than me, except Liz. 

=

A couple of days ago I suggested that the CGI::param function was
better than someone's homegrown CGI parser (radical notion, I know!)
and got this response:

=

Problem with the param() is securityusers can enter malicious things that'll cause 
havoc...which isnt very good at all really :) 

=

I've asked for further clarification, but none has been forthcoming.

Anyway, I didn't want to keep this delight to myself. If anyone wants
to join in my fun, the board is at:

http://www.cookwood.com/cgi-bin/lcastro/perlbbs.pl

Share  Enjoy,

Dave...

[1] "Yeah, too _much_ fuckin' perspective" - name that film.



Re: Helping Less... er... Able... Programmers

2001-03-27 Thread Matthew Byng-Maddick

On Tue, 27 Mar 2001, Dave Cross wrote:
 I've developed this weird habit of hanging around places where less
 able Perl programmers congregate and trying to distribute clues.

You've also developed the bad habit of referring to them as "programmers".

 The latest place I've found is the BBS for readers of Liz Castro's
 book. It certainly gives you some perspective[1] on her target
 audience.

Yeah /me read it and now wants to run away fast, though it is quite
amusing...

 Anyway, I didn't want to keep this delight to myself. If anyone wants
 to join in my fun, the board is at:
 http://www.cookwood.com/cgi-bin/lcastro/perlbbs.pl

Haven't got the time to do my standard flamey stuff, and my asbestos suit
is looking a little worn at the moment... :)

MBM

-- 
Matthew Byng-Maddick   Home: [EMAIL PROTECTED]  +44 20  8980 5714  (Home)
http://colondot.net/   Work: [EMAIL PROTECTED] +44 7956 613942  (Mobile)
Knebel's Law: It is now proved beyond doubt that smoking is one of the
  leading causes of statistics.




Re: Helping Less... er... Able... Programmers

2001-03-27 Thread Jonathan Stowe

On Tue, 27 Mar 2001, Dave Cross wrote:
 Anyway, I didn't want to keep this delight to myself. If anyone wants
 to join in my fun, the board is at:

 http://www.cookwood.com/cgi-bin/lcastro/perlbbs.pl

 Share  Enjoy,


Must .. Control .. The .. Keyboard .. Of .. Fire 

/J\