This guide walks through how to build out the common Ruby coding interview question: how to build out an ATM dispensing method.
This guide walks through how to work with a mapping application and apply graph traversal techniques to find the distance for each weight in a graph.
In this guide you'll learn how to build a method that returns the potential number of combinations associated with building a lock picking method, including both how to count the number of permutations and generating the full set of options.
This guide examines how to find the range of values in an integer based array by returning an array that contains the high and low values.
In this guide you'll walk through how to leverage symbols in Ruby in order to duplicate objects, including how they can share an object_id.
This guide walks through how to integrate Ruby modules in order to add custom helper methods to a class.
This guide walks through how to implement a progress tracking class in Ruby that can update a user's progress and dynamically update the overall percent completed.
This guide examines how to streamline a class definition in Ruby by using the attr_extras Ruby gem. This gem allows you to remove unnecessary boilerplate code when you define attributes in Ruby.
Working with phone numbers, especially for International applications, can be a challenging task. In this guide we're going to walk through how to implement the popular Phone RubyGem in order to create, format, and work with phone numbers in a Ruby program.
There are a number of ways to implement the decorator design pattern in Ruby. In this guide we're going to examine how we can leverage the SimpleDelegator tool in Ruby to add additional functionality to a class.
Ruby offers a wide variety of solutions for many tasks. In this guide we're going to explore a more expressive process for querying hashes by leveraging the fetch method.
Working with dates in web applications can pose a unique challenge, especially when working with multiple date formats. This guide focuses on how to convert string based strings in a specific format into a Ruby date object so that you can utilize it in your own program.
This guide examines a seemingly simple program, however in order to properly implement the solution you will be required to use a number of key Ruby programming techniques. In this exercise you'll build out a scoreboard program that generates an inning by inning score for a baseball team along with a dynamic total.
Working with multiline strings in Ruby used to result in very odd looking code because heredocs required that you shift all of the string code so it was flush against the left hand side of the file. However, with modern versions of Ruby you are now able to utilize the squiggly heredoc syntax, which allows you to indent multiline strings in a file.
When working with large data sets, you'll discover that there are many times where your collections have anomalies that need to be removed. In this guide we'll walk through how to easily remove any values lower or higher than a range of values.
Parsing file types can be a complex process. However, by leveraging the grep method you can leverage regular expressions to quickly return a full list of all of the file types that you're searching for.
Whether it's a complex coding interview question or algorithm implementation, there are many times where you will be asked to combine a large number of processes into a single feature. In this guide we'll examine how to build a non-trivial program that takes in an array of file names and generates a hash collection where each file type is the key and the value is an array of their respective file names.
Working with infinity can be a unique challenge in many different programming languages. Thankfully Ruby offers a helpful library that allows you to implement infinity into programs, and that's what this guide focuses on.
When building scripts, it's a common requirement to remove and update multiple items in a collection of strings. In this guide we're going to mimic the process needed to take a list of require statements and generate a list of file names.
When it comes to working with APIs, two of the most common tools that you will use are JSON and XML. In this guide we'll walk through a challenging task in which we ingest the full play of Shakespeare's Macbeth in XML and convert it into a hash that sums the total number of lines for each character in the play.
devCamp does not support ancient browsers.
Install a modern version for best experience.