Re: Speed v Version

2011-06-07 Thread Matt Sergeant

Dave Hodgkinson wrote:

My BBC sandbox is sane at least:

$ uname -p
x86_64
   


Shouldn't a BBC report 6502? ;-)

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


Re: Someone needs to take jwz aside...

2011-06-07 Thread Matt Sergeant

Simon Cozens wrote:

On 02/06/2011 21:50, gvim wrote:
   

  Considering the amount of development you've done on Perl web frameworks over
  the years isn't this tantamount to having given up on Perl, at least for web
  development?
 


Yes and no. I've moved from being more of a developer to being more of a user.
Perl is a fantastic language for developers. It has a great culture for
developers. We're all brilliant at producing tools which other developers can
pick up and do really great stuff with. Perl is wonderful if I want to write
my own web framework, or construct my own CMS on top of one of the hundreds of
Perl web frameworks which already exist.
   


As someone else who has written a bunch of popular perl stuff over the 
years, I'll chime in here too - I write a lot less open source stuff 
these days, but when I do I'm looking much more to JavaScript. The 
language is actually about as good as Perl (some areas better, some 
worse), but the implementation, the interpreters, are just WAY faster.


https://github.com/baudehlo/Haraka

Matt.


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


Re: Free beer, and some computery/programmery stuff too.

2011-06-07 Thread Martin A. Brooks


- Original Message -
 From: Martin A. Brooks mar...@antibodymx.net
 To: London.pm Perl M[ou]ngers london.pm@london.pm.org
 Sent: Friday, 3 June, 2011 3:24:15 PM
 Subject: Free beer, and some computery/programmery stuff too.
 
 The Guardian are doing two events this month, one of which features
 free beer afterwards.  I know you are collectively very good at
 mopping up excess bar tabs.

The beer part of this is at The Fellow, Kings Cross, 1900 We've had slightly 
fewer people turning up than expected so we're opening up the invitee list a 
little.

-- 
Martin A. Brooks
http://antibodymx.net/ - antispam  antivirus email filtering.


Re: Cool/useful short examples of Perl?

2011-06-07 Thread David Matthewman

On 31 May 2011, at 15:02, David Cantrell wrote:

 On Mon, May 30, 2011 at 04:27:30PM +0100, Denny wrote:
 On Mon, 2011-05-30 at 15:36 +0100, David Precious wrote:
 if (! Email::Valid-address($email_address) ) {
 Something wrong with 'unless'?
 
 Yes.  Most of the time you'll either have an 'else' or want to add it
 later, and unless ... else is Just Wrong.

Well, in that case, it should be:

  if (Email::Valid-address($email_address) ) {
# Code for if the e-mail address is valid.
...
  }
  else {
# Code you were going to write in the block above.

  }

Otherwise your 'else' block is basically a double negative, and (IMAO) just as 
confusing for an 'else' block for an 'unless'.

OK, I admit, I've found myself wanting to add an 'else' block to an 'unless' 
statement. And it's awkward, but only for the short period of time it takes for 
me to rewrite it as an 'if' with the original code in the new 'else' block.

-- 
David Matthewman




Re: Cool/useful short examples of Perl?

2011-06-07 Thread Richard Foley
I've found a lot of German programmers very uncomfortable with the unless 
keyword, (or maybe it's just c programmers).  They appear to very often prefer 
to use a construct of the form:

if ( !something ) { ...

Even worse is:

unless ( !something ) { ...

The brain just into tailspin goes.

Where 

Ciao

Richard
--
Richard Foley
Ciao - shorter than AufWiederSehen! 
http://www.rfi.net/books.html


 On 31 May 2011, at 15:02, David Cantrell wrote:
  On Mon, May 30, 2011 at 04:27:30PM +0100, Denny wrote:
  On Mon, 2011-05-30 at 15:36 +0100, David Precious wrote:
  if (! Email::Valid-address($email_address) ) {
  
  Something wrong with 'unless'?
  
  Yes.  Most of the time you'll either have an 'else' or want to add it
  later, and unless ... else is Just Wrong.
 
 Well, in that case, it should be:
 
   if (Email::Valid-address($email_address) ) {
 # Code for if the e-mail address is valid.
 ...
   }
   else {
 # Code you were going to write in the block above.
 
   }
 
 Otherwise your 'else' block is basically a double negative, and (IMAO) just
 as confusing for an 'else' block for an 'unless'.
 
 OK, I admit, I've found myself wanting to add an 'else' block to an
 'unless' statement. And it's awkward, but only for the short period of
 time it takes for me to rewrite it as an 'if' with the original code in
 the new 'else' block.