Journaling on estrip is easy and free. sign up here

Jim's Journal

jim
My Podcast Link

10/25/2007 16:57 #41800

WNY Ruby User Group
Category: ruby
So, I've agreed to help plan the WNY Ruby meet-ups. This will be in addition to the monthly estrip night outs that I've been setting up, and the monthly photo meet-ups that I run.

I just need to find a way to either: combine them all into one event, or start a social event planning business :)

Anyone out there who's interested in Ruby let me know if you want to join up with the user group.

carolinian - 10/26/07 12:01
I've had a really ugly time learning Ruby on Rails, so it would be nice to find a place with wi-fi so someone could sit down with me and show me what I'm doing wrong.

zobar - 10/26/07 10:57
Whatever! Gimme a call when you want to upgrade. We got a zero-click installer and tutorials that won't fill your inbox with spam.

Humble suggestions: change 'User Group' to 'Gang.' Get a rival gang, too: Haskell? Lisp? Doesn't matter. Get jackets and patches and secret handshakes. Schedule your meetings for the same place and same time. Get into fights and thrown out of bars. Do this up right, right?

- Z
jim - 10/25/07 23:06
First you can get the one-click windows installer:
:::link:::

And a 20 minute tutorial after that, via the interactive ruby shell:
:::link:::
jim - 10/25/07 23:03
For a good quick intro there's Try Ruby: :::link::: which is an interactive tutorial in a web browser.

There's also a free book :::link::: but you have to create an account at InfoQ to download it.
mrdeadlier - 10/25/07 22:56
Where's a good "from the ground up" tutorial on Ruby that you would recommend?
jim - 10/25/07 20:16
As if!
zobar - 10/25/07 18:37
Python?

- Z

10/25/2007 15:11 #41798

HAAALLLOWWEEEN
Category: estrip
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.

10/23/2007 19:44 #41766

40,000 Views
Category: me
Do I get balloons?
tinypliny - 10/24/07 21:44
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
!


jim - 10/23/07 19:55
Maybe at 50K :)

10/22/2007 23:48 #41757

RSpec with Autotest
Category: 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:
image

Sad tests:
image

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.

image

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!

10/21/2007 20:41 #41739

Pumpkins
Category: 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.
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.
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.