Home > Articles > Programming > Ruby

Ruby

52 Items

Sort by Date | Title

Video: Effective Ruby: Consider Using a Default Hash Value
Dec 3, 2015
In this excerpt from Effective Ruby LiveLessons (Video Training), learn why you should consider using a default hash value in Ruby.
Video: Effective Ruby: Prefer Lambda Instead of Proc
Dec 1, 2015
In Ruby, there are a number of ways to create anonymous pieces of code that we can move throughout our application. Proc is one such was to create an anonymous callable. However, in this excerpt from Effective Ruby LiveLessons (Video Training), learn why you should prefer lambda instead of proc.
Video: Effective Ruby: Use the === Protocol for Matching Tasks
Nov 27, 2015
In this excerpt from Effective Ruby LiveLessons (Video Training), learn about the === protocol built into Ruby, which is the universal match protocol for all objects in the Ruby system.
Ruby on Rails Tutorial: A Toy App
Jun 8, 2015
In this chapter from Ruby on Rails Tutorial: Learn Web Development with Rails, 3rd Edition, Michael Hartl develops a toy demo application to show off some of the power of Rails. The purpose is to get a high-level overview of Ruby on Rails programming (and web development in general) by rapidly generating an application using scaffold generators, which create a large amount of functionality automatically.
Ruby: The Last Eight Years
Apr 29, 2015
Hal Fulton, author of The Ruby Way, points out some of the extensive changes Ruby has experienced in less than a decade. By paying attention to why and how programming languages evolve, we can learn from experience and past mistakes, deliberately changing the language (and especially our usage of it) for a better future.
Working with Strings in Ruby
Mar 16, 2015
A string is simply a sequence of characters. Like most entities in Ruby, strings are first-class objects. In everyday programming, we need to manipulate strings in many ways. We want to concatenate strings, tokenize them, analyze them, perform searches and substitutions, and more. In this chapter from The Ruby Way: Solutions and Techniques in Ruby Programming, 3rd Edition, Hal Fulton and André Arko show you how Ruby makes most of these tasks easy.
Learn Ruby the Hard Way: A Good First Program
Dec 23, 2014
In this excerpt from Learn Ruby the Hard Way: A Simple and Idiomatic Introduction to the Imaginative World Of Computational Thinking with Code, 3rd Edition, Zed Shaw walks you through writing your first Ruby program, and gives you some study drills to help you practice your skills.
Learn Ruby the Hard Way: Comments and Pound Characters
Dec 23, 2014
Comments are very important in your programs. They are used to tell you what something does in English, and they are used to disable parts of your program if you need to remove them temporarily. Zed Shaw shows you how you use comments in Ruby, in this chapter from Learn Ruby the Hard Way: A Simple and Idiomatic Introduction to the Imaginative World Of Computational Thinking with Code, 3rd Edition.
Learn Ruby the Hard Way: Comments and Pound Characters
Sep 8, 2014
Comments are very important in your programs. They are used to tell you what something does in English, and they are used to disable parts of your program if you need to remove them temporarily. Zed Shaw shows you how to use them in Ruby, in this excerpt from Learn Ruby the Hard Way: A Simple and Idiomatic Introduction To The Imaginative World Of Computational Thinking With Code, 3rd Edition.
My Life in Tech: Q&A with Software Architect Sandi Metz
Jun 5, 2013
Sandi Metz, author of Practical Object-Oriented Design in Ruby: An Agile Primer, talks about where she learned to program, why she considers herself a reluctant author, and advice for those just getting started in programming
Practical Object-Oriented Design in Ruby: Managing Dependencies
Sep 18, 2012
Because well designed objects have a single responsibility, their very nature requires that they collaborate to accomplish complex tasks. This collaboration is powerful and perilous. To collaborate, an object must know something know about others. Knowing creates a dependency. If not managed carefully, these dependencies will strangle your application.
Ruby on Rails Tutorial: From Zero to Deploy
Aug 15, 2012
In this first chapter, Michael Hartl shows you how to install all the necessary Ruby on Rails software and set up your development environment. You then create your first Rails application, and then put it under version control with Git.. And, believe it or not, in this chapter you even put your first app on the wider web by deploying it to production.
An Interview with Michael Hartl: Ruby on Rails, the "Magic" Problem, and the Higgs Boson
Aug 13, 2012
Russ Olsen talks to Michael Hartl, author of Ruby on Rails Tutorial, 2nd edition, about teaching Rails, keeping pace with an ever changing technology stack and the Higgs boson (really!).
Get Started Using Spring MVC and Hibernate for Your Java EE Applications
Jun 5, 2012
Programming expert Jesse Smith shows the easy way to get started with the popular Spring MVC framework with Hibernate. Learn how to build a simple application with a registration page.
Practical Object Oriented Design in Ruby: Interfaces
Mar 2, 2012
This chapter explores creating flexible interfaces in Ruby that allow applications to grow and change.
The Ruby Reading List
Oct 13, 2011
In the last ten years the Ruby programming language has gone from an obscure open source project to the expansive technology behind some of the world’s most visible web properties. In this article Russ Olsen points out some of the Ruby ‘must reads’, web sites and books that will help the new Ruby programmer get started.
Putting the "Journey" in Journeyman Software Developer: An Interview with Corey Haines
Jul 25, 2011
When it comes to putting the craft back into programming, a handful of names might come to mind, and Corey Haines is one of them. Matthew Heusser talked with Corey about software craft, his journeyman project, and that great big project he is working on next.
Eloquent Ruby: An Interview with Russ Olsen
Mar 24, 2011
Pat Eyler interviews Russ Olsen about his new book, Eloquent Ruby, recommended programming practices, why it's beneficial to learn a new programming language, and why it's sometimes worthwhile to color outside the lines.
Eloquent Ruby: Embrace Dynamic Typing
Mar 2, 2011
In this chapter from his book, Eloquent Ruby, Russ Olsen In looks at how dynamic typing allows you to build programs that are simultaneously compact, flexible, and readable. Unfortunately, nothing comes for free, so he also looks at the downsides of dynamic typing and at how the wise Ruby programmer works hard to make sure the good outweighs the bad.
Eloquent Ruby: Use Symbols to Stand for Something
Mar 1, 2011
In this chapter from his book, Eloquent Ruby, Russ Olsen shows symbols in Ruby for what they really are: very simple, useful programming language constructs that are a key part of the Ruby programming style.

Page 1 2 3 Next >