Re: cpan you have to see

2012-12-15 Thread Abigail
On Wed, Dec 12, 2012 at 09:45:25PM +, DAVID HODGKINSON wrote: Would hurling a PBP test at the whole of CPAN to get a metric be of any benefit? That would violate the spirit of the PBP, which clearly states that its rules shall not be taken as gospel, but as starting points to make up

Re: cpan you have to see

2012-12-15 Thread Abigail
On Sat, Dec 15, 2012 at 12:23:29AM +, David Cantrell wrote: On Wed, Dec 12, 2012 at 05:23:23PM +, Edmund von der Burg wrote: Each language has its own idioms and ways to do things. In shell scripting the while true ... done loop is one of them. In Perl the equivalent would be

Re: cpan you have to see

2012-12-15 Thread DAVID HODGKINSON
On 15 Dec 2012, at 08:40, Abigail abig...@abigail.be wrote: On Wed, Dec 12, 2012 at 09:45:25PM +, DAVID HODGKINSON wrote: Would hurling a PBP test at the whole of CPAN to get a metric be of any benefit? That would violate the spirit of the PBP, which clearly states that its

Re: cpan you have to see

2012-12-15 Thread Daniel de Oliveira Mantovani
It should be fake, is impossible someone be so idiot. On 12 December 2012 05:29, Uri Guttman u...@stemsystems.com wrote: i can't say much about this but you have to look at the code here. https://metacpan.org/author/PERLOOK/ in particular the boolean stuff is amazing and the print stuff

Re: cpan you have to see

2012-12-15 Thread Daniel de Oliveira Mantovani
sorry I realize this is not a joke and this is a newbie code. I truly believe we should support newbie people, sorry again. (I read just the first email) On 15 December 2012 15:01, Daniel de Oliveira Mantovani daniel.oliveira.mantov...@gmail.com wrote: It should be fake, is impossible someone be

Re: cpan you have to see

2012-12-14 Thread David Cantrell
On Wed, Dec 12, 2012 at 05:23:23PM +, Edmund von der Burg wrote: Each language has its own idioms and ways to do things. In shell scripting the while true ... done loop is one of them. In Perl the equivalent would be while (1) { } Although true is 0 in the shell ... $ true;echo $?

Re: cpan you have to see

2012-12-14 Thread David Cantrell
On Wed, Dec 12, 2012 at 09:45:25PM +, DAVID HODGKINSON wrote: Would hurling a PBP test at the whole of CPAN to get a metric be of any benefit? It would certainly be interesting. -- David Cantrell | even more awesome than a panda-fur coat NANOG makes me want to unplug everything and

Re: cpan you have to see

2012-12-14 Thread Paul Makepeace
On Fri, Dec 14, 2012 at 4:23 PM, David Cantrell da...@cantrell.org.uk wrote: $ true echo it was true This makes sense. Think of true as thing that succeeded rather than OMG it's 0 so must be false!!1! Ruby treats everything as true unless it's nil or false (so yes, 0 and '' are true). Bit

Re: cpan you have to see

2012-12-13 Thread Mallory van Achterberg
Ug, what I get for sending a mail while still browsing it :P -Mallory

Re: cpan you have to see

2012-12-13 Thread Andrew Beverley
On Wed, 2012-12-12 at 17:45 +, Gareth Harper wrote: Without commenting on the function of the modules (I personally wouldn't use them, but I can see what you're trying to accomplish). Style/function/speed wise there certainly are a few areas which you may want to address. I'll explain

Re: cpan you have to see

2012-12-13 Thread Aaron Trevena
On 12 December 2012 21:45, DAVID HODGKINSON daveh...@gmail.com wrote: Do we still have automated kwalitee on CPAN? There is CPANTS (http://cpants.charsbar.org/index.html) which checks Kwalitee Would hurling a PBP test at the whole of CPAN to get a metric be of any benefit? As already

Re: cpan you have to see

2012-12-12 Thread Anthony Lucas
: London.pm Perl M\[ou\]ngers Subject: cpan you have to see Sent: 12 Dec 2012 07:29 i can't say much about this but you have to look at the code here. https://metacpan.org/author/PERLOOK/ in particular the boolean stuff is amazing and the print stuff isn't far behind. uri

Re: cpan you have to see

2012-12-12 Thread Zbigniew Łukasiak
-- From: Uri Guttman Sender: london.pm-boun...@london.pm.org To: london.pm@london.pm.org ReplyTo: London.pm Perl M\[ou\]ngers Subject: cpan you have to see Sent: 12 Dec 2012 07:29 i can't say much about this but you have to look at the code here. https://metacpan.org/author/PERLOOK

Re: cpan you have to see

2012-12-12 Thread Ian Docherty
Wow, I have learned so much from reading that code! (nothing about Perl however). On 12 December 2012 07:29, Uri Guttman u...@stemsystems.com wrote: i can't say much about this but you have to look at the code here.

Re: cpan you have to see

2012-12-12 Thread Peter Sergeant
On Wed, Dec 12, 2012 at 8:54 AM, Anthony Lucas anthonyjlu...@gmail.comwrote: Flexible::Output::Printer To be honest, it's not too different in intent from several other CPAN modules - aliasing features to be more like other languages... I am pretty curious about the return values, though:

Re: cpan you have to see

2012-12-12 Thread Anthony Lucas
I wouldn't really say mean… The examples themselves trigger the module's own ridiculous failure conditions. I have a hard time believing these aren't joke modules. The interesting conversation here is about CPAN moderation and where people stand on it. I know it tends to be extremely liberal,

Re: cpan you have to see

2012-12-12 Thread Avishalom Shalit
no, this http://perl.plover.com/IAQ/IAQlist.html#how_can_i_find_the_creation_date_of_a_file is mean. :-) -- vish On 12 December 2012 09:35, Anthony Lucas anthonyjlu...@gmail.com wrote: I wouldn't really say mean… The examples themselves trigger the module's own ridiculous failure

Re: cpan you have to see

2012-12-12 Thread Spiros Denaxas
That is plain immature. On Wed, Dec 12, 2012 at 9:57 AM, Avishalom Shalit avisha...@gmail.comwrote: no, this http://perl.plover.com/IAQ/IAQlist.html#how_can_i_find_the_creation_date_of_a_file is mean. :-) -- vish On 12 December 2012 09:35, Anthony Lucas anthonyjlu...@gmail.com

Re: cpan you have to see

2012-12-12 Thread Avishalom Shalit
well, it is a page full of jokes. read it in context. some of them are actually funny, (in an Asperger's humor sort of funny. ) let me kill the frog* How do I sort an array in reverse? @sorted = sort reverse @array; I really like how the perl mirrors the english, this is exactly sorting

Re: cpan you have to see

2012-12-12 Thread Mark Overmeer
* Avishalom Shalit (avisha...@gmail.com) [121212 10:02]: this http://perl.plover.com/IAQ/IAQlist.html#how_can_i_find_the_creation_date_of_a_file is mean. :-) hah funny! In so many ways broken and so dangerous! I think the problem of the document is that is survives on internet, while it

Re: cpan you have to see

2012-12-12 Thread Richard Foley
Perl M\[ou\]ngers Subject: cpan you have to see Sent: 12 Dec 2012 07:29 i can't say much about this but you have to look at the code here. https://metacpan.org/author/PERLOOK/ in particular the boolean stuff is amazing and the print stuff isn't far behind. uri

Re: cpan you have to see

2012-12-12 Thread Mark Overmeer
* Avishalom Shalit (avisha...@gmail.com) [121212 11:01]: How do I sort an array in reverse? @sorted = sort reverse @array; I do understand the jokes, because I have sufficient knowledge of Perl. Horrible things get used. Now guess: is the following a joke or in production code?

Re: cpan you have to see

2012-12-12 Thread Pedro Figueiredo
On 12 Dec 2012, at 12:12, Leon Brocard a...@astray.com wrote: On Wed, Dec 12, 2012 at 02:29:24AM -0500, Uri Guttman wrote: i can't say much about this but you have to look at the code here. https://metacpan.org/author/PERLOOK/ I congratulate Alexej on joining the CPAN authors club.

Re: cpan you have to see

2012-12-12 Thread Schmoo
On 12 December 2012 12:19, Pedro Figueiredo m...@pedrofigueiredo.org wrote: On 12 Dec 2012, at 12:12, Leon Brocard a...@astray.com wrote: On Wed, Dec 12, 2012 at 02:29:24AM -0500, Uri Guttman wrote: i can't say much about this but you have to look at the code here.

Re: cpan you have to see

2012-12-12 Thread Anthony Lucas
On 12 Dec 2012, at 12:12, Leon Brocard a...@astray.com wrote: I congratulate Alexej on joining the CPAN authors club. Instead of making fun of him on a mailing list why not engage with him and help him improve? No one is really making fun of him. I just don't see the point in pretending not

Re: cpan you have to see

2012-12-12 Thread Richard Foley
I'm sure Uri's point was meant in jovial (xmas?) spirit, and who's to say it's not a joke, and how serious do we take all of this, in any case ?-) On the topic of a CPAN filter: Quis custodiet ipsos custodes? And, finally, that's a good suggestion, Anthony. I've Cc'd him, (perlook), here,

Re: cpan you have to see

2012-12-12 Thread Joseph Werner
On Wed, Dec 12, 2012 at 9:17 AM, Joel Bernstein j...@fysh.org wrote: I'm more concerned about who keeps the monkeys in their cages from flinging their faeces around. Custodiendam simia cacas! -- Best Regards, [Joseph] Christian Werner Sr C 360.920.7183 H 757.304.0502 Txt 757.304.0502

Re: cpan you have to see

2012-12-12 Thread Uri Guttman
On 12/12/2012 07:12 AM, Leon Brocard wrote: On Wed, Dec 12, 2012 at 02:29:24AM -0500, Uri Guttman wrote: i can't say much about this but you have to look at the code here. https://metacpan.org/author/PERLOOK/ I congratulate Alexej on joining the CPAN authors club. Instead of making fun of

Re: cpan you have to see

2012-12-12 Thread James Laver
On 12 Dec 2012, at 15:57, Uri Guttman u...@stemsystems.com wrote: On 12/12/2012 07:12 AM, Leon Brocard wrote: he still thinks his code is doing something useful It is. I had to write something similar to his Boolean module when I inherited a fucked up database that had different standards for

cpan you have to see

2012-12-12 Thread Alexej Magura
Okay, allow me to clarify what the TrueFalse module that I wrote is trying to emulate. It's trying to emulate the 'true' and 'false' user commands available under Linux. Haven't you ever done something like this in Unix Shell? while true; do ls /var/log/; sleep 5s; clear; done The statment

Re: cpan you have to see

2012-12-12 Thread Alexej Magura
As for my rt replies, what did you expect I was gonna say: 'Oh, my bad I wrote the worst module in the world and you're the king of all; here let me just remove it real quick.'? Think again. *When I call `true()` I get `undef` back (or empty list in list context). It should return `i should stop

Re: cpan you have to see

2012-12-12 Thread Edmund von der Burg
On 12 December 2012 17:05, Alexej Magura perl...@cpan.org wrote: Okay, allow me to clarify what the TrueFalse module that I wrote is trying to emulate. It's trying to emulate the 'true' and 'false' user commands available under Linux. Haven't you ever done something like this in Unix Shell?

Re: cpan you have to see

2012-12-12 Thread ian docherty
Alexej I was going to ask just one question 'why?', but then I thought back to my dim and distant past and I remembered doing something very similar. I was learning programming language 'B' after being fairly proficient (as I thought at the time) in language 'A'. I started writing macros and

Re: cpan you have to see

2012-12-12 Thread Anthony Lucas
-To: London.pm Perl M\[ou\]ngers london.pm@london.pm.org Subject: Re: cpan you have to see As for my rt replies, what did you expect I was gonna say: 'Oh, my bad I wrote the worst module in the world and you're the king of all; here let me just remove it real quick.'? Think again. *When I call `true

Re: cpan you have to see

2012-12-12 Thread Guinevere Nell
I disagree - using $TRUE is fine! Perl was my first language and it makes perfect sense to me. More importantly: it seems the Perl community has lost it's warmth and communal, welcoming, nature - maybe since it's a falling empire, people have gotten rude and boorish? I don't know, but I am

Re: cpan you have to see

2012-12-12 Thread Mark Fowler
On Wednesday, 12 December 2012 at 12:21, Alexej Magura wrote: Since I joined Cpan, I've only received one bug ticket that was actually helpful, and I've received four total, to my knowledge. Alexj, I am sorry to hear that. I just wanted to say, on behalf of the often silent majority, we

Re: cpan you have to see

2012-12-12 Thread Gareth Harper
On 12 December 2012 17:05, Alexej Magura perl...@cpan.org wrote: Okay, allow me to clarify what the TrueFalse module that I wrote is trying to emulate. It's trying to emulate the 'true' and 'false' user commands available under Linux. Haven't you ever done something like this in Unix Shell?

Re: cpan you have to see

2012-12-12 Thread Gareth Harper
On 12 December 2012 17:57, Joseph Werner telco...@gmail.com wrote: On Wed, Dec 12, 2012 at 12:45 PM, Gareth Harper spansh+lon...@gmail.com wrote: PBP and I disagree with you on this one, Gareth. When a sub does a return 0; to a list context, that is interpreted as true. A bare return; is

Re: cpan you have to see

2012-12-12 Thread Schmoo
On 12 December 2012 15:57, Uri Guttman u...@stemsystems.com wrote: On 12/12/2012 07:12 AM, Leon Brocard wrote: On Wed, Dec 12, 2012 at 02:29:24AM -0500, Uri Guttman wrote: i can't say much about this but you have to look at the code here. https://metacpan.org/author/PERLOOK/ I

Re: cpan you have to see

2012-12-12 Thread Yitzchak Scott-Thoennes
On Wed, Dec 12, 2012 at 9:23 AM, Edmund von der Burg e...@ecclestoad.co.uk wrote: Each language has its own idioms and ways to do things. In shell scripting the while true ... done loop is one of them. In Perl the equivalent would be while (1) { } Actually, it's: while () { ... } But

Re: cpan you have to see

2012-12-12 Thread Abigail
On Wed, Dec 12, 2012 at 10:57:39AM -0500, Uri Guttman wrote: On 12/12/2012 07:12 AM, Leon Brocard wrote: On Wed, Dec 12, 2012 at 02:29:24AM -0500, Uri Guttman wrote: i can't say much about this but you have to look at the code here. https://metacpan.org/author/PERLOOK/ I congratulate Alexej

Re: cpan you have to see

2012-12-12 Thread Peter Sergeant
On Wed, Dec 12, 2012 at 6:14 PM, Gareth Harper spansh+lon...@gmail.comwrote: On 12 December 2012 17:57, Joseph Werner telco...@gmail.com wrote: On Wed, Dec 12, 2012 at 12:45 PM, Gareth Harper spansh+lon...@gmail.com wrote: PBP and I disagree with you on this one, Gareth. When a sub does a

Re: cpan you have to see

2012-12-12 Thread Hakim Cassimally
Hi Alex, I'm sorry that you've had a bad initial experience of CPAN and now of this mailing list. On 12 December 2012 17:21, Alexej Magura perl...@cpan.org wrote: As for my rt replies, what did you expect I was gonna say: 'Oh, my bad I wrote the worst module in the world and you're the king of

Re: cpan you have to see

2012-12-12 Thread Lyle
It seems this guy is sticking up for himself following the regular LPM taunts. Shouldn't most of you now follow up with more nastiness, some insults in ASCII art, then when he gives anything back kick him from the list? As far as I've experienced, this is how you do things. After all, only

Re: cpan you have to see

2012-12-12 Thread Tom Hukins
On Wed, Dec 12, 2012 at 08:02:28PM +, Lyle wrote: It seems this guy is sticking up for himself following the regular LPM taunts. Shouldn't most of you now follow up with more nastiness, some insults in ASCII art, then when he gives anything back kick him from the list? As far as I've

Re: cpan you have to see

2012-12-12 Thread Uri Guttman
On 12/12/2012 11:46 AM, James Laver wrote: On 12 Dec 2012, at 15:57, Uri Guttman u...@stemsystems.com wrote: On 12/12/2012 07:12 AM, Leon Brocard wrote: he still thinks his code is doing something useful It is. I had to write something similar to his Boolean module when I inherited a fucked

boolean return (was Re: cpan you have to see)

2012-12-12 Thread Uri Guttman
On 12/12/2012 12:57 PM, Joseph Werner wrote: On Wed, Dec 12, 2012 at 12:45 PM, Gareth Harper spansh+lon...@gmail.com wrote: PBP and I disagree with you on this one, Gareth. When a sub does a return 0; to a list context, that is interpreted as true. A bare return; is best practice. and i

Re: cpan you have to see

2012-12-12 Thread Tom Hukins
On Wed, Dec 12, 2012 at 04:05:58PM -0500, Uri Guttman wrote: On 12/12/2012 11:46 AM, James Laver wrote: Just because you get to work with all of the nice clean code in the world doesn't mean some people aren't stuck with the mistakes of others. Then again, my primary income stream is

Re: cpan you have to see

2012-12-12 Thread Aaron Crane
Peter Sergeant p...@clueball.com wrote: the idea that you should always use a bare *return()* is far from universally accepted - you can bite yourself just as easily in reverse by using bare return, and getting an empty list where you expected a false or undefined value: I agree. The talk I

Re: boolean return (was Re: cpan you have to see)

2012-12-12 Thread Abigail
On Wed, Dec 12, 2012 at 04:17:28PM -0500, Uri Guttman wrote: On 12/12/2012 12:57 PM, Joseph Werner wrote: On Wed, Dec 12, 2012 at 12:45 PM, Gareth Harper spansh+lon...@gmail.com wrote: PBP and I disagree with you on this one, Gareth. When a sub does a return 0; to a list context, that is

Re: boolean return (was Re: cpan you have to see)

2012-12-12 Thread Peter Sergeant
On Wed, Dec 12, 2012 at 9:17 PM, Uri Guttman u...@stemsystems.com wrote: then the caller can't ever use the sub in a list context expecting an empty list ... so? True or false are reasonable things to expect a subroutine to return. A list is a reasonable thing to expect a subroutine to

Re: boolean return (was Re: cpan you have to see)

2012-12-12 Thread DAVID HODGKINSON
On 12 Dec 2012, at 21:17, Uri Guttman u...@stemsystems.com wrote: On 12/12/2012 12:57 PM, Joseph Werner wrote: On Wed, Dec 12, 2012 at 12:45 PM, Gareth Harper spansh+lon...@gmail.com wrote: PBP and I disagree with you on this one, Gareth. When a sub does a return 0; to a list context,

Re: cpan you have to see

2012-12-12 Thread Peter Sergeant
On Wed, Dec 12, 2012 at 9:31 PM, Aaron Crane p...@aaroncrane.co.uk wrote: I agree. The talk I did at LPW and YAPC::EU this year covers this and some related issues Thanks Aaron. Someone told me about your talk, and it got me thinking about it in-depth a little while ago. Shame I missed it

Re: cpan you have to see

2012-12-12 Thread DAVID HODGKINSON
On 12 Dec 2012, at 18:35, Abigail abig...@abigail.be wrote: On Wed, Dec 12, 2012 at 10:57:39AM -0500, Uri Guttman wrote: On 12/12/2012 07:12 AM, Leon Brocard wrote: On Wed, Dec 12, 2012 at 02:29:24AM -0500, Uri Guttman wrote: i can't say much about this but you have to look at the code here.

Re: boolean return (was Re: cpan you have to see)

2012-12-12 Thread Mark Overmeer
* Abigail (abig...@abigail.be) [121212 21:38]: The flip side of this dogma is, you end up with code like: sub foo { ... return unless $result; return $result; } sub foo { ... $result || (); # $result // (); }

Re: cpan you have to see

2012-12-12 Thread Peter Sergeant
On Wednesday, December 12, 2012, DAVID HODGKINSON wrote: Would hurling a PBP test at the whole of CPAN to get a metric be of any benefit? Probably not. perl critic, which sounds like what you're thinking about, is a useful tool for catching silly mistakes you might have made, but if you know

Re: cpan you have to see

2012-12-12 Thread Mark Keating
On 12/12/2012 21:42, Peter Sergeant wrote: On Wed, Dec 12, 2012 at 9:31 PM, Aaron Crane p...@aaroncrane.co.uk wrote: I agree. The talk I did at LPW and YAPC::EU this year covers this and some related issues Thanks Aaron. Someone told me about your talk, and it got me thinking about it

cpan you have to see

2012-12-11 Thread Uri Guttman
i can't say much about this but you have to look at the code here. https://metacpan.org/author/PERLOOK/ in particular the boolean stuff is amazing and the print stuff isn't far behind. uri