Hey, if you're coming at 8pm (instead of being fashionably late) to the (e:strip) party and want to carve pumpkins with Matthew and I, bring one if you can, but if not let me know and I'll snag a few extra that night otherwise.
I'll pick up some lights to use in them, so don't worry about candles or the like.
Jim's Journal
My Podcast Link
10/25/2007 15:11 #41798
HAAALLLOWWEEENCategory: estrip
10/23/2007 19:44 #41766
40,000 ViewsCategory: me
Do I get balloons?
10/22/2007 23:48 #41757
RSpec with AutotestCategory: programming
(You can totally skip reading this journal, I am writing this for me and my happiness.)
This is the best thing ever. I am so glad that I took the time to look at this a few weeks ago after sort of putting it off for the last six months. I won't bore you all with the details (that's what (e:james) is around for), but I found a super awesome new tool for testing programs, I can't believe I didn't check it out six months ago when I first heard about it. (rspec)
Basically, instead of unit tests you write a live spec, that is continuously run as you code that notifies you of the status of all your tests open each save of a file. So now I don't even have to run my tests anymore, the freakin computer does it for me, and pops up a discrete message in the corner of the screen letting me know what's going on.
Happy tests:
Sad tests:
And writing tests with the new tool is also so much cleaner and nicer.
Old way (just random made up examples):
New way:
But, that is a bad example because it doesn't show all the mocking, like:
So that you can completely decouple all your tested classes from each other and external output, thus only testing very specific pieces of logic, and making testing ten times easier because you never have to set up infrastructure for it to work.
You can also just have empty tests, which act like a todo list - they show up when the tests run as pending, so it also acts like a roadmap.
This is the best thing ever. I am so glad that I took the time to look at this a few weeks ago after sort of putting it off for the last six months. I won't bore you all with the details (that's what (e:james) is around for), but I found a super awesome new tool for testing programs, I can't believe I didn't check it out six months ago when I first heard about it. (rspec)
Basically, instead of unit tests you write a live spec, that is continuously run as you code that notifies you of the status of all your tests open each save of a file. So now I don't even have to run my tests anymore, the freakin computer does it for me, and pops up a discrete message in the corner of the screen letting me know what's going on.
Happy tests:
Sad tests:
And writing tests with the new tool is also so much cleaner and nicer.
Old way (just random made up examples):
def test_something File.open("/tmp/file", 'W') do |f| f << test_data end assert_equal "/tmp/file", Retrieve.file, "Should have found it!" end
New way:
it "should find file path" do Retrieve.file.should equal("/tmp/file") end
But, that is a bad example because it doesn't show all the mocking, like:
Retrieve.file("config") # => can not find Retrieve.stub!(:file).expects("config").and_returns("/tmp/file") Retrieve.file("config") # => "/tmp/file"
So that you can completely decouple all your tested classes from each other and external output, thus only testing very specific pieces of logic, and making testing ten times easier because you never have to set up infrastructure for it to work.
You can also just have empty tests, which act like a todo list - they show up when the tests run as pending, so it also acts like a roadmap.
tinypliny - 10/23/07 03:01
The inane commenter is baaaaaa ack.
Actually, for a change, I think I just might understand your happiness at finding this autocheck tool. It's somewhat like writing a lengthy SAS/R code and finding out several lines later that the resultant analysis isn't what you wanted because of some stupid error in the code.
How nifty to have some program run chunks of your saved code in the background, as you write *and* let you know how you are doing. That totally rocks! Congrats on the find!
The inane commenter is baaaaaa ack.
Actually, for a change, I think I just might understand your happiness at finding this autocheck tool. It's somewhat like writing a lengthy SAS/R code and finding out several lines later that the resultant analysis isn't what you wanted because of some stupid error in the code.
How nifty to have some program run chunks of your saved code in the background, as you write *and* let you know how you are doing. That totally rocks! Congrats on the find!
10/21/2007 20:41 #41739
PumpkinsCategory: halloween
I love Halloween, mostly for the pumpkins, the pumkin carving, and the pumpkin-seed eating. (e:James) and I went and bought pumpkins today, yay!!!
Also I think I will be dressing up for the Halloween party as either a leopard (in honor of Mac OS X 10.5 Leopard) or else Speed Racer. I'll have to see which I can scramble to put together this week.
Finding a blue helmet might be harder then finding spots.
Also I think I will be dressing up for the Halloween party as either a leopard (in honor of Mac OS X 10.5 Leopard) or else Speed Racer. I'll have to see which I can scramble to put together this week.
Finding a blue helmet might be harder then finding spots.
jim - 10/23/07 00:03
We went to a nursery, I got 3 big ones for a total of $25.
There are a couple really large pumpkin farms around that I'm definitely going to go back to next year, it's too expensive otherwise.
We went to a nursery, I got 3 big ones for a total of $25.
There are a couple really large pumpkin farms around that I'm definitely going to go back to next year, it's too expensive otherwise.
jbeatty - 10/21/07 23:19
I almost bought one today but they are kinda expensive at Wegmans. I need to find a farm that sells them for a dollar.
I almost bought one today but they are kinda expensive at Wegmans. I need to find a farm that sells them for a dollar.
10/19/2007 22:10 #41719
My Fellow AmericansCategory: cars
Our odometer hit 8888.
I'm just saying.
I'm just saying.
fellyconnelly - 10/20/07 10:41
ahhh a car that has less than 40,000 on it... how quaint...
ahhh a car that has less than 40,000 on it... how quaint...
kookcity2000 - 10/20/07 01:02
god-bless your sweet numerically palindromic soul
god-bless your sweet numerically palindromic soul
tinypliny - 10/19/07 22:27
To be overtly ostentatious, Kilometres.
To be overtly ostentatious, Kilometres.
tinypliny - 10/19/07 22:25
Let me make haste and say Kilometers, not your crazy imperial measurements...
Let me make haste and say Kilometers, not your crazy imperial measurements...
tinypliny - 10/19/07 22:24
Oh my god!!!! I never thought I would meet another member of the eagle-eyes-for-significant-odometer-readings club! I actually celebrated my odometer hitting 6666 :)
Oh my god!!!! I never thought I would meet another member of the eagle-eyes-for-significant-odometer-readings club! I actually celebrated my odometer hitting 6666 :)
james - 10/19/07 22:15
I blame Bill O'Reily!
I blame Bill O'Reily!
Here's one from me! Congrats!
,~-.
( ' )-. ,~'`-.
,~' ` ' ) ) _( _) )
( ( .--.===.--. ( ` ' )
`.%%.;: |888.#`. `-'`~~=~'
/%%/::: |8888\##\
|%%/:::: |88888\##|
|%%|:::: |88888|##|.,-.
\%%|:::: |88888|##/ )_
\%\:::: |88888/#/ ( `' )
\%\::: |8888/#/( , -'`-.
,~-. `%\:: |888/#'( ( ') )
( ) )_ `\__|__/' `~-~=--~~='
( ` ') ) [VVVVV]
(_(_.~~~' \|_|/
[XXX]
`"""'##A##
H
u
r
r
a
y
J
i
m
!
Maybe at 50K :)