Category: Ruby
-

Procs, lambdas, and performance
Benchmarking blocks, procs, and lambdas in Ruby: blocks lose to method-call overhead, and procs and lambdas stay consistently faster.
-

99 bottles – go and ruby
Writing “99 Bottles of Beer” in Go and Ruby, and what the exercise actually teaches about looping and string building.
-

Selenium in Rails
Setting up Selenium in a Rails app: a contact form with two tests, one for successful submission and one for email validation.
-

Ruby vs Python – Speed Comparison
Implementing the Sieve of Eratosthenes in both Ruby and Python to see which one actually runs faster. Python wins.
-

Classes in C#
Building the same simple Person class in Ruby and C#, and what that comparison shows about each language’s syntax.
-

Dynamic vs Static
Ruby is dynamic and interpreted, C# is static and compiled. What that difference means for catching errors and picking the right tool.
-

Method/Function in Ruby and C#
Comparing how Ruby and C# handle the same two methods, addition and odd-number checking, and what each language’s syntax trades off.
-

C# and Ruby
Notes on the similarities between C# and Ruby, written while onboarding into a new study group.
-

Linked List
I have pretty much covered the linked list, at least for now. I know there is more stuff to add. This was interesting to revisit, and I started at the beginning of mod3 and am finishing it in mod4. Going through this, there are some things I would definitely change, but this is an interesting…
-

Includes & Find
These are the last two methods I’ll probably write about in this linked list series. You know the drill by now, so here are the tests (I’m giving you all of them at once, apologies for the big code block) Alright, so there are quite a few edge cases for find, so we will start…