← All posts

All posts tagged "ruby"

From awk to a Dockerized Ruby Script

Taking a script and wrapping it up into a Docker image that can easily run anywhere!

Every if statement is an object waiting to be extracted

Turning control flows into objects is not only possible it is sometimes more expressive and useful.

Running bundle install on rails master

In which I handle bundle install errors for the Rails 6 repo

Connecting Objects with Observable

Using the Observable module from Ruby's standard library

Let's Use Hwacha to Scan URLs

I've written a gem, Hwacha, that wraps Typhoeus for fast, easy, and powerful URL checking.

Customize Your IRB

How to customize your local Ruby REPL to be a more effective tool.

Gem Spotlight: interactive_editor

Taking a look at the interactive_editor gem and its capabilities.

Rails isn't for beginners

In which I attempt to declare that Rails was never meant to just be a beginner'ss introduction to web programming.

How to use bundler instead of rvm gemsets

No need to manage gemset environments per project!

How to write (and test) a gem to serve static files on the Rails asset pipeline

Want to write a gem that adds static assets to Rails such as a JavaScript library? I've figured out some things.

A Taste of Ruby Metaprogramming

Ruby metaprogramming is not only a powerful feature, it's easy to use as well.

Fun with Rock, Paper, Scissors

Writing Ruby programs to play Rock, Paper, Scissors

Let's Write a Gem: Part 2

In which we wrap up writing a gem and in particular delve into ensure our gem is well tested.

Let's Write a Gem: Part 1

Ever wanted to write a Ruby gem? Let's do that!

Increase Rails Performance with Database Indexes

If you need to frequently query a database table by a specific column, you should probably index it.

Parsing Dates and Times from Strings using strptime

Datetime strings are complex. Let's turn them into structured data.

Anonymous blocks as function arguments in Ruby

How you can write your own code to handle blocks passed to Ruby functions