1. Computing
Send to a Friend via Email
Michael Morin

Updated Articles and Resources

By Michael Morin

    Updated Articles and Resources
    • The JSON Gem Created: Thursday, June 02, 2011 Updated: Tuesday, April 22, 2014
      It's easy to jump into parsing and generating JSON in Ruby with the json gem. It provides an API for parsing JSON from text as well as generating JSON text from arbitrary Ruby objects. It's easil...
    • CSV Example: Parsing CSV Created: Monday, August 22, 2011 Updated: Tuesday, April 22, 2014
      A crash course on what CSV is, what it is used for and how it is parsed. A method for parsing CSV files using only Ruby's built-in string methods is presented and discussed."
    • Is the 'Require' Method Overlooked in Ruby? Created: Tuesday, June 24, 2008 Updated: Friday, April 18, 2014
      The 'require' method is the reusable code mechanism in Ruby. It allows you to import other source files into your programs." itemprop="description">
    • Environment Variables Created: Friday, June 27, 2008 Updated: Friday, April 18, 2014
      Using environment variables in Ruby." itemprop="description">
      1. Computing
      • Share
      Send to a Friend via Email

      Updated Articles and Resources

      By

      Environment variables ar>

      Environment variables...

    • Command-line Arguments in Ruby Created: Wednesday, June 25, 2008 Updated: Thursday, April 17, 2014
      Use command-line arguments to pass parameters to your Ruby scripts from the command line." itemprop="description"> Tuesday, July 14, 2009 Updated: Thursday, April 17, 2014
      How to install gems from git repositories." itemprop="description">
      1. Computing
      • Share
      Send to a Friend via Email

      Updated Articles and Resources

      By

      Many gems are hostxt" -->

      Many gems are h...

    • Net::SSH--The SSH (Secure Shell) Protocol Created: Monday, June 01, 2009 Updated: Thursday, April 17, 2014
      Net::SSH is a way for Ruby to interact with SSH (Secure Shell) protocol. It relies on the OpenSSL library for encryption.
    • Hashes Created: Friday, May 16, 2008 Updated: Tuesday, April 15, 2014
      This article explains and teaches how to use a associative arrays (hashes) as a way to store multiple variables in one data structure." itemprop="description"="description" Thursday, May 08, 2008 Updated: Monday, April 14, 2014
      Learn how to use the command line interface on Windows, Linux and OS X to run Ruby scripts and use the interactive Ruby program." itemprop="description">
    • Mapping Arrays Created: Thursday, August 30, 2012 Updated: Wednesday, April 09, 2014
      Iterating over arrays isn't the only trick up Ruby's sleeve. Having the ability to map arrays (and other enumerable collections) is a powerful feature.
    • Step 3: Authentication with Devise Created: Wednesday, February 13, 2013 Updated: Wednesday, April 09, 2014
      Before we get too invested in our blog, we need to set up some authentication. We'll be using the popular and capable Devise gem to handle authentication.
    • The Final Few Methods Created: Monday, March 31, 2014 Updated: Monday, March 31, 2014
      Now that the core of the game is done, we take a few minutes and look at a few odds and ends. Among those, the code that spawns new tiles and the code that looks for the game over state.
    • The Core Algorithm Created: Monday, March 31, 2014 Updated: Monday, March 31, 2014
      Finally, onto the meat of 2048. We take a look at how the board is rotated and slid to implement the game of 2048.
    • The Board Class Created: Monday, March 31, 2014 Updated: Monday, March 31, 2014
      Before we dive into the heavy stuff, we'll look at the array we use to store the board, as well as how to print the board to the console and a few other things.
    • Rotating a Two Dimensional Array in Ruby Created: Monday, March 31, 2014 Updated: Monday, March 31, 2014
      In order to implement the 2048 algorithm cleanly, we'll need to know how to rotate a 2D array by 90 degrees in Ruby.
    • Two Dimensional Arrays in Ruby Created: Monday, March 31, 2014 Updated: Monday, March 31, 2014
      We'll use a two dimensional array to represent the 2048 game board, but how do we create a 2D array in Ruby?
    • The Algorithm Created: Monday, March 31, 2014 Updated: Monday, March 31, 2014
      Before we start coding, we take some time to look at the game of 2048.
    • Cloning 2048 in Ruby Created: Monday, March 31, 2014 Updated: Monday, March 31, 2014
      In this series of articles, a complete clone of the game 2048 is written from scratch.
    • Ruby on Rails 3 Tutorial Live Lessons Created: Friday, March 11, 2011 Updated: Friday, February 28, 2014
      The Ruby on Rails 3 Tutorial by Michael Hartl is the antithesis of the rapid screencast approach. In the tutorial, the reader is walked through how to use Rails slowly and now with the live lesson...
    • Eloquent Ruby by Russ Olsen Created: Monday, March 07, 2011 Updated: Friday, February 28, 2014
      All spoken languages have idioms, or ways or saying things that don't have a literal meaning, but a meaning everyone understands. The same is true for computer languages, and it's something that m...
    • The Mechanize Agent Created: Wednesday, June 29, 2011 Updated: Friday, February 28, 2014
      When you use a web browser, your browser is said to be the "user agent." In other words, it is a program that acts on your behalf. The Mechanize object is your Ruby program's "agent," and it's th...
    • The Ternary (or "Conditional") Operator Created: Monday, March 14, 2011 Updated: Friday, February 28, 2014
      The ternary (or "conditional") operator will evaluate an expression and return one value if it's true, and another value if it's false. It's a kind of short-hand, compact if statement. It has its...
    • Getting the Domain From a Hostname Created: Tuesday, March 01, 2011 Updated: Friday, February 28, 2014
      The question was asked: "Given a hostname, how do I get the domain?" There are a few simple solutions to this, but they're all wrong." itemprop="description"="description" Monday, September 30, 2013 Updated: Friday, February 28, 2014
      Regular expressions can do more than you think, and I was able to solve a problem in a very novel way.
    • Symbols Created: Saturday, January 07, 2012 Updated: Friday, February 28, 2014
      Symbols are everywhere in Ruby code but, having no analog in other programming languages, they're often misunderstood.
    • Serialization in Ruby: Marshal Created: Tuesday, March 29, 2011 Updated: Friday, February 28, 2014
      Serializing an object is to convert an object to a byte stream and either store that object for future loading, or sending to another program to be loaded there. There are several common ways to se...
    • Building Hashes Created: Wednesday, January 12, 2011 Updated: Friday, February 28, 2014
      A hash is an associative array. Instead of using numerical indexes, any object (but typically symbols) can be used. They can be both a fast way to retrieve an object based on a key, and a convenien...
    • Mouse and Keyboard Input in Gosu Created: Saturday, October 02, 2010 Updated: Friday, February 28, 2014
      Games are, by definition, interactive. Gosu makes this interaction straightforward with a simple interface for detecting and reacting to key and mouse button presses.
    • How Can I Store Key/Value Pairs in Ruby? Created: Thursday, May 07, 2009 Updated: Friday, February 28, 2014
      Storing key/value pairs in Ruby doesn't always need to be accomplished by using a hash. You can also use the Struct and OpenStruct classes.
    • Interface Created: Tuesday, August 23, 2011 Updated: Friday, February 28, 2014
      An interface is a system of interaction between components. It may refer to interaction between program components (an "application programming interface") or between a user and a program (a "grap...
    • Convoluted Constructions: a = 1, b = 2 Created: Tuesday, February 15, 2011 Updated: Friday, February 28, 2014
      Given the expression a = 1, b = 2, what will a and b be equal to? What will their types be? Why?
    • How to Install Git Created: Friday, September 03, 2010 Updated: Friday, February 28, 2014
      How to install Git on Windows, Linux or Mac OS X.

    ©2014 About.com. All rights reserved.