NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Calm down dear, it's only programming (Score:1)
Nor do I understand the style that has them use
do ... endstyle blocks to wrap code that, at it's best looks declarative. It's not impossible to write:describe SomeClass {
it "should be instantiable" {
SomeClass.new.should_not be_nil
}
}
which seems a good deal cleaner. Many ruby programmers appear to be blind to ugliness of
do declaration endthough.As for _why's stuff - I think he used to be a Perl hacker and hasn't forgotten the good bits.
Reply to This
Or to put it another way (Score:1)
do. If only the language would let me declare things so I could write:describe Something
it "should do stuff"
do_stuff_with_it
end
end
I'd be a good deal happier. Yes, I could write a source filter type thing in the runner, but I don't want the pain of having to parse the whole of the rest of bloody ruby just to get rid of that stupid
doBut, hey, ruby pays my mortgage and I'll swap the aesthetic pain
Re: (Score:1)
Re: (Score:1)
I'm holding out for malleable syntax, real objects, proper garbage collection and decent function/method prototypes.
And a fanatical devotion to the Pope.
It's more likely to be things like DateTime that lure me back - Ruby's date handling is woeful.
Re: (Score:2)
Re: (Score:1)
1.month.from_nowby inventing/rediscovering the Duration class.http://www.perl.com/pub/a/2003/03/13/datetime.html [perl.com] is a good read too, in which Dave Rolsky explains the issues with the ad hoc nature of most Perl calendrical modules before the DateTime better
Re: (Score:1)
Have you seen Devel::Declare? It’ll provide half a macro system – for Perl 5.
Re: (Score:1)
Goes with the territory. Lisp programmers don’t even see the parentheses any more, nor do XML people consciously notice all the angle brackets. I used to be blind to the iffiness of Perl’s deref syntax.
Re: (Score:2)
tr -d '()'makes most lisp a lot more readable.:-).Re: (Score:1)
Let me guess: for Perl that would be
tr -cd '[:alnum:]'?Re: (Score:1)
I quite agree about Ruby's Test::Unit being barely functional. I very nearly ported Test::Builder and Test::Class to Ruby a year and a half ago, when I was doing more Ruby hacking. Then I realized that instead of spending the next several months reinventing all of the tools I like and use, I could spend the next several months building useful things that don't already exist, and stopped writing Ruby code.
Re: (Score:1)
This is what grates me. It's clear that RSpec is a tremendous boon to Ruby testing. I'm all for that! I just wish that this goodness weren't couched in such tiresome wankery over decades-old concepts repackaged bizarrely.
There's no shame in borrowing good ideas! Just please stop renaming them, explaining them badly, slapping bright yellow racing fins on them, and pretending that they're completely new and different. Th
Re: (Score:1)
Re: (Score:1)
I care, if it confuses the innocent. Count the number of people who say "We use BDD and TDD" or "I'm learning BDD and TDD". The number is non-trivial.
Agreed. Also, I prefer the term Test-Driven Design, but
Re: (Score:2)