Close
  • Latest News
  • Artificial Intelligence
  • Video
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
Read Down
Sign in
Close
Welcome!Log into your account
Forgot your password?
Read Down
Password recovery
Recover your password
Close
Search
Logo
Subscribe
Logo
  • Latest News
  • Artificial Intelligence
  • Video
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
More
    Subscribe
    Home Development
    • Development
    • Servers

    Ruby on Rails: Making Programmers Happy

    Written by

    eWEEK EDITORS
    Published November 1, 2005
    Share
    Facebook
    Twitter
    Linkedin

      eWEEK content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

      David Heinemeier Hansson, the creator of the increasingly popular Ruby on Rails Web application framework, answered a few questions about his creation earlier this week for eWEEK Senior Editor Darryl K. Taft.

      Whats the allure of Ruby on Rails? Why do folks love it so?

      The author of Ruby, Yukihiro Matsumoto, tells us that he set out to create a language that would “make programmers happy.” Rails attempts to run with that noble and profound goal and bring it to the world of Web application development. Were optimizing for humans first, compilers and the frameworks second. Its been a constant search for how we could make the development process more in tune with what makes programmers happy.

      /zimages/4/28571.gifClick here to read about the outpouring of support for Ruby on Rails.

      How so?

      Three quick specifics: Convention over configuration. Instead of telling various parts of the technology stack five, six, seven times that you have a products table thats the data source of your product object, weve institutionalized that convention in a generalized notion: Classes are singular, tables are plural. This may sound like a trivial notion, but it has a radical impact on the amount of work that the programmer needs to do in his daily work.

      Were basically taking the whole world of pain that is known as configuration and making it optional. As long as you do what most people want to do most of the time, you get a free ride. No configuration necessary. So get the 80 percent by convention, tailor the last 20 percent by hand.

      Change is instant. The feedback loop between change and effect is incredibly important in programming. If the distance is too far, you tend to grow uninterested in testing your changes. You want to take bigger steps, so the penalty of compilation, deployment and restarts is paid less often. That kills productivity and motivation.

      This is something we learned from PHP. The biggest lure of PHP is how quickly you can get something up there and make changes until its right. We took that focus on “change is instant” and brought it into a world of modern software development—bridging the Java and PHP worlds.

      Full-stack framework. Programmers spend an enormous amount of time making a thousand different pieces work together. They cherry-pick a little over here, a little over there. Often times, the pieces are not exactly a good fit. So you need to add a bunch of glue, write a bunch of configuration, and basically end up wishing the left hand knew what the right hand was doing.

      Rails is an ambitious attempt to provide a “full-stack framework,” which means that we attack all of the problems across the model-view-control pattern. We deal with creating the templates that generate the HTML code, the controllers that direct incoming requests, and the model that makes the database come alive in objects.

      In a sense, were trying to be the Apple of Web application development. Provide and care for the complete experience. The buck stops here. Every problem is our problem. So we tend to get a lot of those small things right that fall outside of any of the major divisions.

      We get all those simple, unglamorous problems solved—the ones that wont make a good article in an academic computer science journal, but that most programmers are struggling with every day.

      What kind of impact has it had on Web development?

      Naturally, Im biased, but I truly believe that Rails have had and will have a monumental effect on the Web development world. Everyone and their mother is busy saying about how their new stuff is more “Rails-like.” Convention over configuration alone represents a mental switch that will be visible in all new work in this space.

      Yes, that does sound rather grandiose.

      Is Ruby on Rails better suited to any particular types of applications?

      Rails is better suited for the applications that most people do most of the time. It has its eye on the big 80 percent. There are 15 percent of the applications that are so tiny that they might make a better fit in PHP [its available on every $2 host, you can have your entire application in one page] and then theres the most complex 5 percent that needs advanced integration with legacy systems or have other specialized needs. Java is definitely a great fit for that.

      The problem is mostly one of overuse. Solutions stretched outside their sweet spots. Java is a behemoth of complexity. Using it to do your average Web application is like cracking a nut with a sledgehammer, as Dave Thomas put it.

      How does RoR differ from Ruby?

      Rails is a framework that specializes Ruby for Web application development. Ruby itself is a general-purpose programming language—like C, Java, Python, you name it. Its not especially targeted at solving the Web problem. Rails makes it.

      So “Ruby on Rails” is simply a construct Ive been using to introduce people to this new environment. That theyre going to get both a new programming language and a new Web application framework at the same time.

      What do you think of all the framework and language efforts coming out and declaring themselves like Ruby on Rails?

      Everyone is saying how their new stuff is “like Rails for …” Once products or projects that need a certain tipping point attract those comparisons, theyre often quite silly. Just notice how anything that plays MP3s is billed as an “iPod killer.” Thats kind of how I feel about announcements like that. Its great that others are willing to learn from what weve done [just as we have from others], but it does not make Java or anything else “like Rails.” Inspired, sure, but lets keep the propositions right and stop at that.

      /zimages/4/28571.gifCheck out eWEEK.coms for the latest news, reviews and analysis in programming environments and developer tools.

      eWEEK EDITORS
      eWEEK EDITORS
      eWeek editors publish top thought leaders and leading experts in emerging technology across a wide variety of Enterprise B2B sectors. Our focus is providing actionable information for today’s technology decision makers.

      Get the Free Newsletter!

      Subscribe to Daily Tech Insider for top news, trends & analysis

      Get the Free Newsletter!

      Subscribe to Daily Tech Insider for top news, trends & analysis

      MOST POPULAR ARTICLES

      Artificial Intelligence

      9 Best AI 3D Generators You Need...

      Sam Rinko - June 25, 2024 0
      AI 3D Generators are powerful tools for many different industries. Discover the best AI 3D Generators, and learn which is best for your specific use case.
      Read more
      Cloud

      RingCentral Expands Its Collaboration Platform

      Zeus Kerravala - November 22, 2023 0
      RingCentral adds AI-enabled contact center and hybrid event products to its suite of collaboration services.
      Read more
      Artificial Intelligence

      8 Best AI Data Analytics Software &...

      Aminu Abdullahi - January 18, 2024 0
      Learn the top AI data analytics software to use. Compare AI data analytics solutions & features to make the best choice for your business.
      Read more
      Latest News

      Zeus Kerravala on Networking: Multicloud, 5G, and...

      James Maguire - December 16, 2022 0
      I spoke with Zeus Kerravala, industry analyst at ZK Research, about the rapid changes in enterprise networking, as tech advances and digital transformation prompt...
      Read more
      Video

      Datadog President Amit Agarwal on Trends in...

      James Maguire - November 11, 2022 0
      I spoke with Amit Agarwal, President of Datadog, about infrastructure observability, from current trends to key challenges to the future of this rapidly growing...
      Read more
      Logo

      eWeek has the latest technology news and analysis, buying guides, and product reviews for IT professionals and technology buyers. The site’s focus is on innovative solutions and covering in-depth technical content. eWeek stays on the cutting edge of technology news and IT trends through interviews and expert analysis. Gain insight from top innovators and thought leaders in the fields of IT, business, enterprise software, startups, and more.

      Facebook
      Linkedin
      RSS
      Twitter
      Youtube

      Advertisers

      Advertise with TechnologyAdvice on eWeek and our other IT-focused platforms.

      Advertise with Us

      Menu

      • About eWeek
      • Subscribe to our Newsletter
      • Latest News

      Our Brands

      • Privacy Policy
      • Terms
      • About
      • Contact
      • Advertise
      • Sitemap
      • California – Do Not Sell My Information

      Property of TechnologyAdvice.
      © 2024 TechnologyAdvice. All Rights Reserved

      Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.

      ×