Rake Routes

Rails, Ruby, and other programming.

Solve Online Ruby Puzzles With Rubeque

Ruby programmers no longer need to be envious of CodingBat providing quick, fun, online programming puzzles for Python and Java programmers! The SciMed guys have launched a great Ruby puzzle website called Rubeque.

The puzzles are currently skewed toward easy, but you can submit your own puzzles for inclusion (awesome) so I expect harder puzzles will start popping up as the site grows. There’s still plenty to do now with 91 puzzles to solve.

They start off nicely with The Truth

1
assert_equal true, __

Which of course can be solved with:

1
2
3
4
5
true
# or !false
# or !!0
# or 0.zero?
# etc.

The puzzles are all online, the site is gorgeous, and you can sign-in with your github account. Complete win. After you’ve put in a successful puzzle entry you get to see other solutions that people have come up with; I’ve already learned some interesting techniques like passing an initial argument to inject

1
2
3
4
[].inject(0, :+)
# >> 0
[1].inject(0, :+)
# >> 1

There even already a couple of interesting meta-programming puzzles:

So get on there and have fun!

PhishMe is Hiring!

Want to work from home with me and other awesome Rails devs to solve interesting problems for a fantastic company? A company that believes in investing back into its employees? I'm talking fully paid company trips, Ruby/Rails conferences, an expense account for Internet costs, and access to great online learning resources. Also the best coworkers ever. :-)

Doesn't that sound awesome? If so, we'd like to talk with you!

Comments

Real Time Analytics