Ben Griswold on July 30th, 2010

In my attempt to learn Ruby out in the open, here’s my solution for Project Euler Problem 28.  Armed with paper and pencil, the spiral number pattern quickly becomes apparent. As you will see, I didn’t do anything fancy but the brute force solution completes in no time. As always, any feedback is welcome. # Euler 28 [...]

Continue reading about Project Euler 28: Ruby

Ben Griswold on July 30th, 2010

In my attempt to learn Ruby out in the open, here’s my solution for Project Euler Problem 27.  Maybe you noticed, but I needed a little break after solving Euler problem 26. Man, I’m still frustrated by that problem. But we had our language club meeting yesterday and I’m continually impressed with everyone else’s progress so I’ve [...]

Continue reading about Project Euler 27: Ruby

Ben Griswold on July 23rd, 2010

What’s up with Ben? All he’s been writing about lately is Ruby, Ruby, Ruby. Doesn’t he work with ASP.NET MVC anymore? Let me assure you that I do – just about every single day and it’s been for quite a while now. Sure, I have been spending time learning Ruby but I’m also constantly developing [...]

Continue reading about Professional ASP.NET MVC 2 Review

Ben Griswold on July 21st, 2010

In my attempt to learn Ruby out in the open, here’s my solution for Project Euler Problem 26.  The Project Euler site acknowledges solving the first 25 problems as a bit of a milestone. Not to spoil the surprise, but there’s a congratulatory page and there’s statistics that states just how few folks make it that far. [...]

Continue reading about Project Euler 26: Ruby

Ben Griswold on July 19th, 2010

In my attempt to learn Ruby out in the open, here’s my solution for Project Euler Problem 25.  I can’t say this problem lent itself to learning anything new about Ruby. This is the second problem in a row that took about five minutes to solve. Is there something I should have noticed and learned along the [...]

Continue reading about Project Euler 25: Ruby

Ben Griswold on July 19th, 2010

In my attempt to learn Ruby out in the open, here’s my solution for Project Euler Problem 24.  Thanks to what I learned when solving Project Euler Problem 23 in Ruby, this problem took just a few minutes. Is there anything I could have done to improve this routine? As always, any feedback is welcome. # Euler [...]

Continue reading about Project Euler 24: Ruby

Ben Griswold on July 19th, 2010

In my attempt to learn Ruby out in the open, here’s my solution for Project Euler Problem 23.  It took me a while to solve this problem. As you can see in the comments, I went down a number of paths. I think each approach is valid but the performance varied considerably. In fact, most of the [...]

Continue reading about Project Euler 23: Ruby

Ben Griswold on July 18th, 2010

In my attempt to learn Ruby out in the open, here’s my solution for Project Euler Problem 22.  This was a fairly simple problem. Actually really simple after I found this Ruby tutorial on Enumerators which clued me into methods like #each_byte and #each_with_index. How convenient! Using enumerators as proxies for “each” is really neat but I [...]

Continue reading about Project Euler 22: Ruby