For some reason writing unit tests in Perl feels really weird. I feel like Perl code is simply not supposed to be OO in the same way as Python and Java are. OO...
... For practical reasons, we manage all data through classes. This simplifies the calling convention (we always use -> when calling an API). Classes can...
Hey Rob, ... What do you mean by "declarative tests"? Could you give an example? Asim __________________________________________________ Do You Yahoo!? Yahoo!...
... A declarative language allows you to specify your intent and the interpreter executes the program in whatever order it sees fit. SQL is a declarative...
I'm trying to get an idea what people consider useful refactorings. The following refactoring is a very simple one, but I consider it useful to demonstrate how...
... RN> [..snip..] RN> TITLE: Replace Conditional with Modifier RN> SYNOPSIS RN> You have an if statement with a one-line then clause. RN> Use a Perl statement...
Cool! I didn't know this trick. Hmmm, now I have one more reason I can give my coworker to use emacs instead of vi. ;-) Thanks Ilya! Since you seem to be the...
... DT> Cool! I didn't know this trick. Hmmm, now I have one more reason I DT> can give my coworker to use emacs instead of vi. ;-) Thanks Ilya! DT> Since you...
42
Ged Haywood
ged@...
Jul 29, 2002 6:52 pm
Hi there, ... Very simple ones. ... I suppose it's my age. I HATE Perl's statement modifiers. And I REALLY REALLY HATE "unless". ... Like I said. ... ...
... Every refactoring can be implemented in reverse. This is an important part of design by refactoring. This is the "art" of refactoring imo. The goal is...
... I like this one, especially if you demonstrate that it's reversable. I only have one nitpick. ... if 'undef39; is intended to return a demonstrably false...
... I hope to avoid showing the reverse of every refactoring. It maybe makes sense to show one or two explicitly. ... No, you need to check if it is undef....
... That's fine. It's important to demonstrate that you don't always go in one direction. ... The bare return operator respects the calling context: sub false...
I've got a few refactorings on my Perlmonks homenode: http://www.perlmonks.org/index.pl?node_id=2329 There are also references to other refactorings there. I'd...
... [snip] Okay... here's one. (I don't have my Fowler to hand, so please excuse me if I wander off the "standard" format :-) ... TITLE: HashBecomesObject ...
Dear members, I am doing research (ph.d ) in pondicherry university india. In the field of extreme programming. I am collecting data from the completed...
I have a problem with a TCP Client I am working with. It works fine if the data on the server that is being sent to the socket has a '\r92;n' at the end of the...
... This isn't the right list for this type of question, but I'll respond anyway: while (sysread($socket, $element, 8192)) { print STDOUT $element; } The...
Rob, Thanks, I tried this but it still doesn't work. Diarmuid...
56
Tom Brown
tbrown@...
Dec 23, 2002 7:03 pm
I think Rob's answer was backwards... e.g. the read side of things, not the write (print) side of things, but it isn't very clear where the problem lies. His...
[Note: this is a slightly different message from my mod_perl post, so skip to the end if you've read that one and want to hear a bit about the book status. --...
I finally got enough time to put my book online: www.extremeperl.org The book is evolving. I hope to finish the continuous design chapter fairly soon....
I'm looking for a perl programming partner in the Boulder area to bop over to my home office for 10 hours a week and pair program with with me. I've been...
Rob, What would be the best way of providing you with direct feedback? I'm enjoying the book tremendously so far and would like to offer a couple of...
... Well, we're not exactly flooded with msgs on this list, and I enjoy the kind of feedback public discussion provides. Why not try sending a point or two to...
After reviewing the list of things I marked, there is only one which would qualify as 'constructive.' In Chapter 2, the last sentence in the Feedback section...