Since each described class has different properties and executable code, they need to be stored somewhere. Where does Ruby store data? That’s right, in the objects.
I recently found myself needing to return early from a block passed into a method in Ruby. The way to do this is fairly simple and obvious in hindsight.
In Ruby, errors and failures are typically implemented with exceptions. In some situations, however, exceptions may not be the best choice. This article covers some of the problems with exceptions, and introduces a functional, alternative approach to error handling
Rails 5.1 introduces system tests for simulating browser interactions with their applications. In this post, we explore the new addition and see how you can apply it in your own projects.
When I left Microsoft in October 2016 after almost 21 years there and almost 35 years in the industry, I took some time to reflect on what I had learned over all those years. This is a lightly edited version of that post. Pardon the length!
Mordor sucks, and it's certainly more physically taxing to dig a tunnel than poke at a keyboard unless you're an ant. But, for the sake of the argument, can we agree that stress and insanity are bad things? Awesome. Welcome to programming.