Tutorials






Mastering data structures in Ruby — Circular linked lists
The defining factor for circular linked lists is that they allow us to traverse them infinitely. Since they had no tail, whenever a list reaches its “end” it wraps around and restarts from its head over and over again.Circular lists can be singly ...

Faking Method Inputs with OpenStruct feat. Kerri Miller
During my RubyTapas script review with upcoming guest chef Kerri Miller, we spent some time refactoring a method toward lower complexity. In the process we needed to isolate it from its dependencies, and we used Ruby's OpenStruct library to quickl...

Replace chromedriver-helper with webdrivers (a public service announcement)
As the message suggests, if you need to test JavaScript within the confines of a Rails app, then webdrivers is how you’ll want to manage Selenium drivers. If you’ve purchased my Rails testing book, Everyday Rails Testing with RSpec, you can downlo...

My First Taste of Ruby Task Automation in 22 Lines
The few people who know my code know I'm focused mainly on the front-end: HTML, CSS, JavaScript (sadly), accessibility, and whatever else that bothers my coworkers. Virtually every time I went to a back-end language like Ruby, it was directly or i...