Skip to Content
Ruby on Rails For Dummies®
book

Ruby on Rails For Dummies®

by Barry Burd
January 2007
Beginner
330 pages
6h 52m
English
Wiley
Content preview from Ruby on Rails For Dummies®

Chapter 16. Ten Pivotal Ruby on Rails Concepts

In This Chapter

  • What's so good about Ruby on Rails

  • What Ruby on Rails contributes to database applications

  • What makes Ruby on Rails an effective tool

If you wake me up at three in the morning and ask me for the ten most important Ruby on Rails concepts, I'll probably start with Don't Repeat Yourself and Convention over Configuration. Then I'll have to think a bit. After a few minutes, I'll remember four more concepts, recite them to you, and look around to make sure the cat hasn't gotten out, the basement isn't flooded, and that no one left the freezer door open overnight.

With those concerns out of the way, I'll think of two more concepts. And eventually (after reviewing tomorrow's tasks in my mind) I'll recite two more, for a total of ten.

I'll go back to sleep mumbling one question to myself. “Why don't I write all ten of those concepts in one place? If I do, the reader doesn't have to wake me at three in the morning.”

So I'll add one item to the list of things I plan to do tomorrow.

Don't Repeat Yourself (DRY)

Any particular piece of information about an application should be housed in only one place. The information should not be replicated throughout the application. Duplication of information is inefficient and error‐prone. With a piece of information in one part of an application, all other parts of the application should consult that one, authoritative part of the code.

For more of my DRY humor, see Chapters 1, 8, and 9.

Convention over ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Ruby on Rails: Up and Running

Ruby on Rails: Up and Running

Bruce Tate, Curt Hibbs
Ruby on Rails® Bible

Ruby on Rails® Bible

Timothy Fisher
Learning Rails 5

Learning Rails 5

J. Mark Locklear, Eric J Gruber, Barnabas Bulpett

Publisher Resources

ISBN: 9780470081204Purchase book