Blogs

BROWSE: Most Recent | Popular Tags |

Tags > Ruby

Make magic with Ruby DSLs

By Aaron Sumner
April 23, 2014

For better or worse, I believe you can develop basic, yet useful, applications in Ruby on Rails with just a minimum amount of Ruby knowledge. Rails tucks away details behind object-to-table mapping, routing, database preparation, and other necessities for web …

5 ways developers win with PaaS

By Katie Miller
April 21, 2014

As a software developer, you are no doubt familiar with the process of abstracting away unnecessary detail in code — imagine if that same principle were applied to application hosting. Say hello to Platform as a Service (PaaS), which enables …

Ohai, New Ohai Plugins!

By Jon Cowie
April 15, 2014

When you start to use the Chef configuration management system, you will quickly encounter a tool it ships with called Ohai which collects information about the underlying system to expose to the Chef Client as attributes during its run. These attributes allows you to easily incorporate …

Just Enough Arel

By Samuel Mullen
March 27, 2014

If you were a web developer prior to ActiveRecord, you probably remember rolling your own SQL and being specific about which fields you retrieved, writing multiple queries to handle “upserts” (update or insert), and getting frustrated with how difficult it was to generate …

Six Degrees of Kevin Bacon in six languages

By Patrick Reynolds
March 25, 2014

The Oracle at Delphi spoke just one language, a cryptic one that priests “compiled” into ancient Greek. The Oracle of Bacon—the website that plays the Six Degrees of Kevin Bacon game for you—has, in its 20-year existence, been written in …

Why Ruby blocks exist, part II

By Jay McGavren
March 19, 2014

Last time, we showed how to use Ruby’s each method with blocks to process the elements of an array, and how it can save you a lot of repetitive looping code. That was just an introduction, though. In our previous examples, the block was …

Javascript without the this

By Pete Hodgson
March 5, 2014

One of JavaScript’s many wrinkles is the way that this works. It can be quite confusing, since the semantics are quite different from the purely lexical scoping rules which apply for regular variables in JavaScript. What this references can often …

Delegation patterns in Ruby

By Samuel Mullen
February 27, 2014

In almost every project there are those objects which seemingly get involved in every aspect of the application. These are the so-called “god objects”: they can do everything (omnipotent), they know everything (omniscient), and they are everywhere in the application …

Delegation patterns in Ruby

By Samuel Mullen
February 27, 2014

In almost every project there are those objects which seemingly get involved in every aspect of the application. These are the so-called “god objects”: they can do everything (omnipotent), they know everything (omniscient), and they are everywhere in the application …

How To (Semi-)Automate JavaScript Refactoring

By Simon St. Laurent
February 20, 2014

Computers aren’t ready to write much of our code for us, but they can still help us clean and improve our code. At Fluent 2013, O’Reilly’s Web Platform, JavaScript and HTML5 conference, Giles Bowkett demonstrated a wide variety of ways …

Why Ruby blocks exist

By Jay McGavren
February 12, 2014

It seems like more and more languages these days are getting support for closures in one form or another. (Even Java is getting in on the game, finally.) Ruby has had closure-like structures called blocks since its early days, though, and they’re …

Be a Polyglot Learner First, Then a Polyglot Programmer

By Dr. Venkat Subramaniam
December 11, 2013

Being a polyglot programmer has its benefits; most of us have read or heard about those benefits from various respectable sources. I’d like to highlight the importance of being a polyglot learner before being a polyglot programmer. You heard me …

How Setting Aside Rails and Picking Up Padrino Might Make You a Better Ruby Developer

By Aaron Sumner
December 4, 2013

I love frameworks. I love that frameworks like Rails and Bootstrap, in particular, make me more productive: People smarter than I have taken care of several decisions that distract from the typical goals of my web applications. I spend most …

Four short links: 31 July 2013

By Nat Torkington
July 31, 2013

How to Easily Resize and Cache Images for the Mobile Web (Pete Warden) — I set up a server running the excellent ImageProxy open-source project, and then I placed a Cloudfront CDN in front of it to cache the results. …

Really Understanding Computation

By Mike Loukides
June 14, 2013

It’s great to see that Tom Stuart’s Understanding Computation has made it out. I’ve been excited about this book ever since we signed it. Understanding Computation started from Tom’s talk Programming with Nothing, which he presented at Ruby Manor in …

Really Understanding Computation

By Mike Loukides
June 4, 2013

It’s great to see that Tom Stuart’s Understanding Computation has made it out. I’ve been excited about this book ever since we signed it. Understanding Computation started from Tom’s talk Programming with Nothing, which he presented at Ruby Manor in …

Where are JavaScript and the web going?

By Simon St. Laurent
April 3, 2013

JavaScript and HTML5 just keep moving. One day it’s form validation, the next animation. Then it becomes full-on model view controller stacks getting data from sensors on devices and communicating with back-end servers that are themselves largely JavaScript. Peter Cooper …

Getting started with data-related explorations of everyday things

By Andy Oram
June 7, 2012

Sau Sheong Chang describes the intriguing projects in his upcoming book, "Exploring Everyday Things with R and Ruby" and how other people can develop their own experiments.

Getting started with data-related explorations of everyday things

Getting started with data-related explorations of everyday things
By Andy Oram
June 7, 2012

Sau Sheong Chang describes the intriguing projects in his upcoming book, "Exploring Everyday Things with R and Ruby" and how other people can develop their own experiments.

Welcome Elisabeth Robson!

By Kerry Butson
May 1, 2012

Versatile instructor and utility player Elisabeth Robson joins OST faculty.

It's True. Don't Believe A Word Of It.

By Paul Barry
July 29, 2011

The Ruby book was smoking!

Ruby is for Java

By Timothy M. O'Brien
July 19, 2011

Bob McWhirter, JBoss Fellow, Codehaus Despot, and creator of TorqueBox, discusses the boundary between Java and Ruby and his efforts to make Torquebox "a real first-class Ruby platform that works the way Rubyists expect".

A rough guide to JVM languages

A rough guide to JVM languages
By Edd Dumbill
July 7, 2011

This overview of JVM-based programming compares the relative strengths of the major languages.

Four short links: 4 April 2011

By Nat Torkington
April 4, 2011

Find The Future -- New York Public Library big game, by Jane McGonigal. (via Imran Ali) Enable Certificate Checking on Mac OS X -- how to get your browser to catch attempts to trick you with revoked certificates (more of a worry since security problems at certificate authorities came to light). (via Peter Biddle) Clever Algorithms -- Nature-Inspired Programming...

Developer Year in Review: Programming Languages

Developer Year in Review: Programming Languages
By James Turner
December 22, 2010

This year brought confusion and chaos in the Java space, continued growth for functional languages due to the attack of multicore, and the usual popularity for all of the dynamic languages we know and love.

Four short links: 22 December 2010

By Nat Torkington
December 22, 2010

ietherpad -- continuation of the etherpad startup. Offers pro accounts, and promise an iPad app to come. (via Steve O'Grady on Twitter) Scala Collections Quickref -- quick reference card for the Scala collections classes. (via Ian Kallen on Twitter) Raw Data and the Rise of Little Brother -- Turns out, despite the great push for citizen journalism, citizens are...

Ruby Schematron

By Rick Jelliffe
June 4, 2010

Francesco Lazzarino has a project up at RubyForge for a Ruby runner for ISO Schematron. (Open source: MIT/ Consortium License) Schematron is a small ISO-standard language for making assertions or reports about patterns in and between XML documents, typically using...

REST and Flex

By Luca Mezzalira
January 13, 2010

In this tutorial we start to work with REST and Flex, are you asking what is and why use REST? So here we are, REST is acronym for REpresentational State Transfer and it helps you to provide services to comunicate...

Announcing O'Reilly Answers - Clever Hacks. Creative Ideas. Innovative Solutions.

Announcing O'Reilly Answers - Clever Hacks. Creative Ideas. Innovative Solutions.
By Allen Noren
November 4, 2009

We're launching the beta of O'Reilly Answers, and I'm inviting you to be part of it. In brief, O'Reilly Answers is a community site for sharing knowledge, asking questions, and providing answers that brings together our customers, authors, editors, conference speakers, and Foo (Friends of O'Reilly). O'Reilly is at the center of an amazing exchange of knowledge sharing and idea generation, and we want you to join us in changing the world by spreading the knowledge of innovators.

Rails in a Nutshell Manuscript Open For Collaboration

By Keith Fahlgren
October 19, 2009

Following hot on the launch of the Building iPhone Apps with HTML, CSS, and JavaScript manuscript three weeks ago, I'm pleased that Rails in a Nutshell, from Cody Fauser, James MacAulay, Edward Ocampo-Gooding and John Guenin is now live and...

Dreaming of Rails as the Next Microsoft Access

By Simon St. Laurent
May 5, 2009

Rails? Microsoft Access? Aren't those from different planets? Well, they may have different origins, but their similarities give me hope.

Using Helpers and Blocks to easily add design to your site

By Eric Berry
April 8, 2009

I bought the program Coda by Panic software. It is a pretty cool app, even though it is not my preferred editor. One thing that I love about Panic software is they make beautiful interfaces. In this tutorial, I'm going to show you how to create a 'sheet' similar to those found in Coda.

You ain't gonna need what?

By Mike Loukides
April 8, 2009

One of the defining characteristics of the Rails movement has been its willingness to throw out the rules by which software developers and consultants have typically worked. Those rules typically produce big, overblown projects laden with features that no one ever uses--but which sounded good during the project specification phase. Build the simplest thing that could possibly work, and...

ISBN adventures

By Simon St. Laurent
February 16, 2009

For most people, ISBNs are random noise on the backs of books, helpful mostly for barcode scanning at the register. For publishing folk, ISBNs can actually be memorable, magic keys for jumping from one system to the next. Of course, there are now two different flavors of ISBN, the obsolete (I prefer 'classic') variety with 10 digits, and the new version with 13 digits. Working with two sets of magic keys can be complicating.

Using the Twitter Search API to Refine TOC Conference Tweet Data

By Andrew Savikas
February 15, 2009

I didn't see it coming from this audience, but the Twitter chatter was thunderous during the TOC Conference this year. As things wound up, a lot of attendees were looking for a single list of all the conference tweets. Not...

Concept Management

By Eric Larson
January 30, 2009

Distributed version control systems have brought up some pretty important questions. A DVCS adds a good deal of complexity to an already complicated system. Source control is rather sticky business as it not only deals with complex content, but the...

Rubyist Pat Eyler Interviews Ruby Best Practises Author Gregory Brown

Rubyist Pat Eyler Interviews Ruby Best Practises Author Gregory Brown
By Sara Peyton
January 14, 2009

Ruby aficionado Pat Eyler is conducting a series of wonderful interviews with Gregory Brown, the author of O'Reilly's upcoming Ruby Best Practices (currently in Rough Cuts).

Practice

By Simon St. Laurent
January 1, 2009

My New Year's Resolution for this year is simple: practice. You don't have to achieve (or even aim for) total mastery for the practice to be worthwhile.

Installing Instant Rails on Windows

By Simon St. Laurent
December 22, 2008

Instant Rails is getting old, but it's still a quick way to install Rails and start coding. This screencast shows how to download and install Instant Rails, and shows off how it works with a simple example from Chapter 2 of Learning Rails.

Creating Custom SOAP Requests with Ruby and Net::HTTP

By Eric Berry
December 19, 2008

Learn to create a custom SOAP request using Ruby and Net::HTTP

A Conversation with the Authors of JRuby Cookbook

A Conversation with the Authors of JRuby Cookbook
By Timothy M. O'Brien
November 25, 2008

Henry Liu and Justin Edelson authors of the just released JRuby Cookbook talk about JRuby, the current state of the Java platform, and some of the compelling benefits of integrating a language like Ruby with the Java platform.

First Steps into Rails (on the Mac)

By Simon St. Laurent
November 24, 2008

Once you have Rails installed, it's time to explore the foundations of how Rails applications are put together. It's not quite programming yet - it's more looking around to figure out how the pieces fit together.

Installing Rails on Ubuntu Hardy Heron (Server)

By Simon St. Laurent
November 20, 2008

Want to install a Rails development environment on a bare-bones Ubuntu server setup? It's not that hard.

Installing Rails on Hardy Heron (Desktop)

By Simon St. Laurent
November 19, 2008

One of the most difficult parts of the tech review for Learning Rails was Chapter 1, installing Rails. There are way too many operating systems and choices within those operating systems to provide a straightforward explanation. To help deal with...

Swapping Custom Views with RubyCocoa

By Eric Berry
October 29, 2008

Learn how to swap custom views using RubyCocoa in your interface.

The Perfect Cloud

By Eric Larson
October 28, 2008

Tim posted about the shape of the could and makes an excellent point regarding the barrier to entry. The essence is that we haven't quite found the sweet spot for deploying apps to the could. This is very true in...

RubyCocoa and NSTables De-Mystified

By Eric Berry
October 17, 2008

Screencast showing how to create a RubyCocoa application which pulls search results from Amazon using their Web API and populates a table.

Testing Rails Partials

By Phlip Plumlee
October 9, 2008

Test Driven Development works best when each test case targets one aspect of a class's interface. So this post will demonstrate a simple and direct way to test a partial without testing the Views, layouts, and Controller actions surrounding it. On very complex projects, this technique keeps your partials decoupled.

The Ever-Dynamic John Lam on Iron Ruby, Open Source and Microsoft

By James Turner
September 29, 2008

John Lam, who heads the Iron Ruby effort at Microsoft, stopped by to tell O'Reilly News all the exciting work going on with dynamic languages at Redmond. John spent some time discussing what makes a language dynamic, what the benefits of dynamic languages are, and how Microsoft is trying to leverage the power of lanaguages such as Ruby inside their CLR framework.

The Present and Future of Ruby and Rails

By chromatic
September 19, 2008

Chad Fowler and Rich Kilmer discuss where Ruby and Rails have gone in the past year, whether RESTful composition obviates the need for ORM, what's interesting in the upcoming world of Ruby and Rails, and how Maglev, Rubinius, and other new Ruby implementations contribute to the world of dynamic languages.


1 to 50 of 53 Next
The Watering Hole