Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

[ Create a new account ]

What's the Secret Sauce in Ruby on Rails?

Posted by CmdrTaco on Sun May 14, 2006 10:25 AM
from the having-a-hard-time-caring dept.
An anonymous reader writes "Ruby on Rails seems to be a lightning rod for controversy. At the heart of most of the controversy lies amazing productivity claims. Rails isn't a better hammer; it's a different kind of tool. This article explores the compromises and design decisions that went into making Rails so productive within its niche."
This discussion has been archived. No new comments can be posted.
Display Options Threshold:
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • A question... (Score:2, Insightful)

    by $1uck (710826) on Sunday May 14 2006, @10:33AM (#15329613)
    I've not seen a lot of RoR, but what I have seen reminded me a lot of ASP and JSP with lots of scriplets. Which I thought was bad form (code mixed with html). Have I just been looking at bad (or simple) examples? The article seems to hint that RoR does support MVC.
    • Re:A question... by BorgCopyeditor (Score:3) Sunday May 14 2006, @10:36AM
    • Re:A question... (Score:5, Informative)

      by masklinn (823351) <{slashdot.org} {at} {masklinn.net}> on Sunday May 14 2006, @10:42AM (#15329640)

      Fact is that Rails template (rhtml files, the views) are scripted directly using Ruby (there is no specific view/template language). This means that they can be abused, not that they should.

      When used well, Rails views are actually quite clean due to the high readability of Ruby itself and the ability to rapidly create so-called Helpers (Ruby methods that you can call from your views, to build specific HTML structures from generic datum, since you come from JSP land think Taglibs, but much simpler to define & use)

      Seems like DHH found Ruby simple enough to just use it as a templating language (and it works quite well), that's his choice, other frameworks in other languages picked a different one (Python's Django has a template-specific language for example, much simpler and less powerful than full blown Ruby but much less prone to abuse either)

      [ Parent ]
  • Oddities (Score:1, Offtopic)

    by Froze (398171) on Sunday May 14 2006, @10:34AM (#15329614)
    (http://butsuri.homelinux.net/)
    Very strange, a web developement tool story shows up as "story currently under construction" with a red title bar. I click on the readmore link and the story goes blue. Then reloading the main page it is green.

    Is this standard procedure for all new stories or is this some kind of gimick/pun on web developement stories?
    • Re:Oddities by Aladrin (Score:2) Sunday May 14 2006, @10:39AM
  • It's Ruby (Score:3, Insightful)

    by LABob (870126) on Sunday May 14 2006, @10:44AM (#15329646)
    I've only used Rails a bit, but I've used Ruby a lot. It's by far the most flexible language I've ever used. It allows programmers to modify the most fundmental aspects of the language. Some argue this is a bad thing, and it may be. However, having the freedom to do that is very empowering. Don't get me wrong, other OO scripting languages are great too... Python for example. And, they share many concepts with Ruby. The things that make Ruby stand out (to me) are the ease of modification and syntax flexibility. IMO, Ruby is a wonderul toolkit that will allow one to build most anything, even more specialized tools like Rails.
  • Liberal license (Score:1, Insightful)

    by Jopop (952828) on Sunday May 14 2006, @10:44AM (#15329647)
    What about the fact that Rails is licenced under the "MIT License" while Java is (semi-)propietary?
  • It's multiparadigm. (Score:2, Informative)

    by Anonymous Coward on Sunday May 14 2006, @10:46AM (#15329652)
    The big benefit is that it's multiparadigm. It draws the best from the OO world of Smalltalk, while also offering very solid functional features. These are the traits of languages that are suitable for high-quality, fast-turnaround software development.

    We can see Ruby applications that are comparable functionality-wise (and portability-wise) to C++ programs, but written in a 1/10 of the time with 1/20 the number of lines of code. That's why Ruby-based solutions are effective and popular.

  • As far as I've seen, there isn't that much actually new in RoR. But it's obvious that someone has had a great idea how a whole bunch of known stuff should fit together, in a way that encourages best practices (like a lot of testing, and code reuse). It has near perfect design.


    The language Ruby wasn't new; Active Record wasn't new, nor was the idea, but it fits with Ruby really well. MVC was old, but the tiny bits of boilerplate needed makes it look like magic now and then. Everybody knows testing is essential, but I hadn't seen it integrated into a web framework so well before. The idea of "sensible defaults" can't have been new, but the switch from reams of XML (in Java web programming) to near invisible config is great. The object-oriented Javascript libraries it uses weren't new, nor are template languages, but the way in which they're added together is pretty seamless. Et cetera.


    No wonder every web programming language community out there is rushing to put together it's own version of Rails... but the libraries don't always fit together as seamlessly. I think that Hansson's main achievements are recognizing that all the known best practices can be put together really well, and that Ruby and its libraries were a great fit for that.

    • Re:Relentlessly applying best practices by SpacetimeComputing (Score:3) Sunday May 14 2006, @10:54AM
      • by aldheorte (162967) on Sunday May 14 2006, @01:36PM (#15330329)
        Yes as to hype, no as to technical merit.

        AJAX is based on technologies with extremely poor design and implementation, such as browsers, JavaScript, and HTML (poorly designed for this application, perfectly ok for marking up documents). Rails takes lessons learned from a decade of server-side Web development, as well as the catastrophe that has become J2EE through over-engineering, and simplifies it to the essential mechanisms. Built on top of Ruby, which is itself a pretty thin simplification wrapper over C++, it combines the simplification of Web site development best practices (MVC, proper tiers, etc.) with the power of an high level development language overlaid directly on top of a low level near-assembly language, with the ability to perforate the abstraction layer (first through modifying Rails source in Ruby, then through C extensions) if needed for performance or other reasons.

        Short, brutal version: AJAX built on crap by script kiddies, Rails on bedrock by software engineers.
        [ Parent ]
        • Re:Relentlessly applying best practices by kwerle (Score:2) Sunday May 14 2006, @01:50PM
        • by I Like Pudding (323363) on Sunday May 14 2006, @05:10PM (#15331131)
          (Last Journal: Friday March 31 2006, @10:51PM)
          AJAX is based on technologies with extremely poor design and implementation, such as browsers, JavaScript, and HTML (poorly designed for this application, perfectly ok for marking up documents)

          The only part of that I'll give you is the poor IE implementation of CSS. Browsers' main problem lies in their non-compliance with standards. Solution: test in multiple browsers. WOW, THAT WAS HARD. Next up: JavaScript. Poor design? I was shocked at how powerful the language is when I finally started digging into it after years of avoidance. Poor imlpementation? Not really - just many different implementations. Of course, this can and has already been worked around with libs that abstract the differences away for you. HTML? It still is used as a basic markup language, with all the heavy lifting being pushed into the CSS. Now, CSS is nowhere near perfect, but it does function admirably in the scope of AJAX (when not using IE's broken ass implementation).

          Rails takes lessons learned from a decade of server-side Web development, as well as the catastrophe that has become J2EE through over-engineering, and simplifies it to the essential mechanisms.

          I half-agree. You imply a minimalism that isn't present. The framework is quite complicated in places and does a lot of tricky things. You see, programming with just the essential mechanisms sucks; you've gone back to CGI.pm. What Rails does is provide a massive lever with which to move your problem. The Actual Work Done Per Line of Code metric exceeds any other framework I have used before. Code efficiency is the watchword, not simplicity.

          Built on top of Ruby, which is itself a pretty thin simplification wrapper over C++,

          No it isn't. Ruby's implementation is a big, slow VM that doesn't act much like C++ at all. Really, the poor performance is the only thing I dont like about the language.

          it combines the simplification of Web site development best practices (MVC, proper tiers, etc.) with the power of an high level development language overlaid directly on top of a low level near-assembly language, with the ability to perforate the abstraction layer (first through modifying Rails source in Ruby, then through C extensions) if needed for performance or other reasons.

          That sounds like marketroid speak, and is about 3/4ths BS. Perforate the abstraction layer? Jesus. And just who is running around writing C++ extensions for web apps? Almost nobody. Takes too damn long, and isn't as safe as running through the VM.

          Short, brutal version: AJAX built on crap by script kiddies, Rails on bedrock by software engineers.

          DHH is something closer to a hacker, not to mention the fact that rails utilizes AJAX and, more generally, javascript all over the place. Does that make AJAX apps built on top Rails rock? Or does all that terrible, awful AJAX stuff diminish Rails? Maybe they, I don't know, utilise the same foundation technologies and standards and complement each other quite nicely? Maybe you are an idiot?
          [ Parent ]
        • Ruby is not a 'wrapper over C++' by kahei (Score:2) Monday May 15 2006, @04:00AM
        • Re:Relentlessly applying best practices by Decaff (Score:2) Monday May 15 2006, @04:13AM
        • 1 reply beneath your current threshold.
      • Re:Relentlessly applying best practices by bogado (Score:2) Monday May 15 2006, @08:24AM
    • Re:Relentlessly applying best practices by Cyberax (Score:2) Sunday May 14 2006, @11:09AM
    • Re:Relentlessly applying best practices by Monkelectric (Score:2) Sunday May 14 2006, @11:13AM
    • by Decaff (42676) on Sunday May 14 2006, @12:55PM (#15330159)
      As far as I've seen, there isn't that much actually new in RoR. But it's obvious that someone has had a great idea how a whole bunch of known stuff should fit together, in a way that encourages best practices (like a lot of testing, and code reuse). It has near perfect design.

      No, it really doesn't, and to claim it does is to ignore the wide range of uses of object persistence. What it has is a great design for getting web interfaces up and running quickly on databases. It has a very poor design for long-term maintenance and growth of applications.

      The ActiveRecord pattern is of limited use, especially as implemented in Rails. Your code is not isolated from major changes in the schema, and the dynamic nature of Ruby means that the consequences of such changes can't be tracked by compilation or refactoring tools; especially as the model classes don't even exist as code. Tests are a good way to help with this, but try and design tests to deal with potential schema changes for a large application that may have transactions involving thousands of records...

      To see what a good persistence system should be like, take a look at Kodo or Xcalia - very high performance persistence system that allow exactly the same code and queries (which are automatically highly optimised for the particular database - not some minimal portable subset of SQL as in Rails) to be run on small embedded databases and high-end clustered systems. Unlike Rails, these systems can handle transactions of hundreds of thousands of records (something that is not that uncommon for commercial work) without thrashing disk or memory. You can also use the same code to persist and read to XML, LDAP and many other types of store. And yes, these systems also have 'convention over configuration' like Rails - they got there first, and had it years before RoR.

      RoR has some great ideas, and definitely has its uses, but to claim it has near perfect design is way out, and sorry, but best practise in data model design in object oriented languages like Ruby does not involve basing things on non-OOP relational tables!
      [ Parent ]
    • Re:Relentlessly applying best practices by bahwi (Score:2) Sunday May 14 2006, @02:02PM
    • Re:Relentlessly applying best practices by Kosgrove (Score:1) Monday May 15 2006, @09:07AM
    • 1 reply beneath your current threshold.
  • Django, anyone? (Score:2, Informative)

    by Bazman (4849) on Sunday May 14 2006, @10:49AM (#15329662)
    (Last Journal: Sunday July 13 2003, @10:38AM)
    Python programmers can get the same kind of experience without learning a new languge with Django [djangoproject.com]. Yes there are differences to RoR but the productivity gains are there. Django gives you database/object linkage, templates, views and all that, and a free and very very usable database interface generated from your model spec.

      Oh, of course there's a big backlash against web frameworks these days isn't there?
    • That or TurboGears. (Score:5, Insightful)

      by cduffy (652) <charles+slashdotNO@SPAMdyfis.net> on Sunday May 14 2006, @11:11AM (#15329721)

      (Django has been in use on high-volume production websites longer than Rails has existed, incidentally -- something which might be worthwhile when bringing it up in this kind of context).

      After evaluating Rails and Django, my company ended up going with TurboGears for some of our toolage (our main product is a Java Servlet-based application, and that's not changing). The reasons:

      • Rails and Django are very tightly integrated -- whereas with TurboGears the toolkit is loose enough that one can easily pull just one piece out for a project which doesn't need the framework as a whole. Our department does a lot of small and varied projects (many of which aren't webapps but which still could use an XML-based template engine or a simple OR mapper or a simple servlet-like API for handling requests independent of any content generation), so this was important to us.
      • We have more people in-house who know Python than Ruby.
      • TurboGears appears to be under more active development than Django.

      The opposing reasons:

      • Django and Rails have more high-volume production sites using them.
      • The OR mapper used by TurboGears, SQLObject, lacks some functionality and useful design attributes provided by others. This doesn't impact us for our little in-house projects, and is less relevant now that TurboGears 0.9 is adding support for using SQLAlchemy as an alternative to SQLObject.

      Anyhow -- Rails is nifty. Django is nifty. TurboGears is nifty. Quite likely all three of them have a place; I'd just like to urge people not to get so caught up in the hype over Rails that they forego evaluating other options.

      [ Parent ]
    • 1 reply beneath your current threshold.
  • porn. (Score:2)

    by Cheapy (809643) on Sunday May 14 2006, @11:00AM (#15329693)
    Porn, and the consequences thereof, is the 'secret sauce' of Ruby on Rails.

    Those crazy open source programmers.
    • Please by wurp (Score:2) Monday May 15 2006, @12:19PM
  • i thought Ruby on Rails (Score:1, Funny)

    by zwad (937823) on Sunday May 14 2006, @11:03AM (#15329700)
    I thought Ruby on Rails sounded cool, until I saw that it automatically pluralizes person to people. any computer language that does that, in my opinion is just to unpredictable to use.
  • by Intron (870560) on Sunday May 14 2006, @11:05AM (#15329705)
    perl -we 'print "0 but true" ? 0+"0 but true" : "nope";'
    0
  • What Java can learn from RoR (Score:3, Interesting)

    by tunabomber (259585) on Sunday May 14 2006, @11:11AM (#15329720)
    (http://slashdot.org/)
    From TFA:
    • Enable hot deploy where it will shorten the development feedback loop or support frameworks that enable hot deploy. This priority should be much higher on the Java side than it is now.

    Amen to that. I think on-the-fly reinterpration of code is the biggest thing that Rails (or just about any other interpreted scripting language) provides that is a severe handicap for Java. I configure tomcat on my dev system to continuously rescan bytecode files for changes, but what is really needed is an easy, standardized way to make minor modifications to classes on production appserver without having to bring the whole thing down. I know some Java appservers support things like this, but I said "easy and standardized" meaning it can be done via an ant task that figures out exactly what classes have been changed, then notifies the appserver of this so that they get reloaded efficiently.

    • Use less XML and more convention. Conventions don't rule out configuration because you can use conventions to specify meaningful defaults and configuration to override convention. Using this approach, as Rails does, you get the best of both worlds: concise code with less repetition without sacrificing flexibility.

    I think the introduction of annotations with Java 1.5 also does a great job of cutting back on the amount of configuration files necessary. In addition, they leverage Java's biggest advantage over competing languages*- typesafety.

    *yes, C# has typesafety as well, but that's basically the same language.

    • Work to incorporate more scripting languages, including BeanShell (see Resources), for exploring Java classes during the debugging process.

    Eclipse's debugger does pretty much all I need, although things do get difficult when AOP or other bytecode modification is being used.

  • by bogaboga (793279) on Sunday May 14 2006, @11:19AM (#15329744)
    My problem with this Ruby on Rails paradigm is that I have faled to find a single package that will install on either windows or Linux. On both systems I have encountered dependencies and errors that I have failed to solve.

    Could it be that case that I have not found it yet but it exixts? Point me to the URL.

  • The secret sauce is ... (Score:3, Interesting)

    by Anonymous Coward on Sunday May 14 2006, @11:20AM (#15329746)
    thar RoR is using Ruby, a programming language that:

    a. is fully object-oriented (not a hybrid like c++ or java). For example, you can have "hello".length() or 5.inspect() which means easier debugging and easy extensibility when you can ("can" != "should") add methods to any class at runtime.

    b. supports mixins (flexibility of multiple inheritance without the complexity)

    c. supports blocks and closures (if you've never used a language that supports blocks and closures, then you don't know what you're missing. I've coded professionally for more than a decade using assembly (intel & motorola chips), c, c++, cobol (ugh), delphi, java, python, etc. and when I discovered how to use blocks and closures in Ruby last year, I almost fainted because it makes coding so much more productive)

    d. practical for both one-liners like perl and large/complex applications with a GUI interface

    When I discovered Ruby last year and tried RoR for the first time this month (stayed away due to dislike of hype), it felt like I was previously chopping trees with a plastic spoon all this time instead of using a chainsaw--Ruby succeeds because it takes so many great features from other languages and combines them in a cohesive manner. RoR succeeds because it uses Ruby and provides a framework that encourages good coding (by providing MVC for example).

    But there is a price for all of this. Speed. In order to provide so many productivity features, the performance will never reach that of c, c++, and many other languages. And I don't know when/if a compiler will ever be practical or available (like gcj for java producing huge binaries to print hello world).

    Other drawbacks include poor release management (remember the ruby 1.8.3 fiasco) and poor support for wxWidgets (Ruby has better support for Fox toolkkit, but I use wxWidgets with C++ so this isn't ideal for me).

    Anyway, I hope another new language comes along that'll blow away Ruby and another new web framework comes out that'll blow away RoR.

    Blind loyalty to language/os/software/etc is for idiots who are afraid of change. Be aggressively disloyal to your products and force their developers to improve or fade away.
  • Rabid IP Hoarders and their Sauces (Score:4, Insightful)

    by nead (258866) on Sunday May 14 2006, @11:35AM (#15329788)
    (http://nick.neadwerx.com/)
    It really is tiresome to see people constantly ask "what's the special sauce" when in many instances it is clearly "nothing".

    Sometimes good people use good methods to build well conceived applications that work precisely as their audience expects they should. Because these well-formed applications do not fail randomly, scale well and are easily supported marketing and business types presume that there absolutely must be something patentable in the mix.

    One of the reasons I loath the term "Web 2.0" is because people presume there is some new wave of innovation occuring in application development when every Slashdot reader know's this isn't true.

    Technologies mature, standards mature and hopefully people mature. The result is better software, not an abundance of new and novel special sauces.
  • Podcast with Author Bruce Tate (Score:3, Interesting)

    by muchawi (124898) on Sunday May 14 2006, @11:41AM (#15329810)
    (http://nubyonrails.com/)
    SHAMELESS PLUG:

    I interviewed the article's author, Bruce Tate, for the Ruby on Rails Podcast. He's a brilliant thinker and has taken bold steps to embrace Ruby inspite of his fame in the Java community.

    Rails Podcast with Bruce Tate [rubyonrails.com]

  • Special sauce? (Score:5, Funny)

    by BorgCopyeditor (590345) on Sunday May 14 2006, @11:42AM (#15329815)
    Farnsworth: Hmm. Let me see that vial, Bender. [He takes it and puts it in a microwave-like machine. A readout prints and he looks at it and gasps.] Good Lord! According to the spectrolizer, Spargle's magic ingredient was ... water. Ordinary water!

    [Everyone gasps.]

    Hermes: No!

    Fry: Ah, so the real gift Spargle gave you was confidence. The confidence to be your best.

    Farnsworth: Yes, ordinary water.... Laced with nothing more than a few spoonfuls of LSD.

  • 1. It's easy to build hash tables in Ruby- At any level of a hierarchical structure like HTML you can have an arbitrary number of child elements or attributes, all identified by a type tag. This happens to map perfectly onto ruby's hash tables, so to create an HTML link you can say:


    link_to :id => 'add user', :class => 'shiny button', :action => 'add_user'

    2. Lack of superfluous syntax It is very elegant how every programming idea in ruby seems to require only a single syntax concept at a single location to put it into practice- For instance, if you need a class member variable, you just create a name starting with "@" (like @firstname) without having to declare the variable in a separate location in the file. This is taken advantage of very cleanly by the ROR system, so that programming web pages has a very "WYSIWYG-ish" feel- Every concept in you web site has a clear, understandable equivalent embodiment in the Ruby code

    3. Dynamically detects missing methods- I don't know exactly how it works, but ruby classes are able to know when a method on an object is called at runtime that doesn't exist- So you can essentially enhance the functions an object supports at runtime... this allows Ruby toolkits, such as Rails, to essentially shoehorn their own custom language ideas into ruby (not quite at the level of Lisp's "defmacro", of course)

    4. It was scalable from day one- Right from the start, ROR was designed to scale- In fact, it was already part of a commercial app before it even existed as a stand-alone product. This means it already overcame the greatest hurdle of any web-development framework from day one- Most Scheme/Lisp frameworks, for instance, still haven't achieved the level of scalabilty that ROR had right from the start.

    5. It has a whiff of that mystical Scandinavian software guru-ism in it that make for seriously powerful software Creating a comprehensive web development system is a messy undertaking- ROR is the product of an obsessive Northern European fanaticism that somehow manages to combine an incredible pragmaticism and also manages to handle all of the many ways that web frameworks fail with the utmost of effectiveness. It isn't brilliant because it makes it easier to do complex things, as other frameworks try to- It's brilliant because it makes things that are already easy so much easier that all the complexity, though still complex, floats to the surface of your code and isn't obscured by the many "easy" parts.

    6. No pre-processor Many of the more advanced web-frameworks, as in JAVA, require pre-processing of HTML templates with embedded JAVA- The dynamicity of Ruby makes this step hidden- Explicit preprocessors are practically and cognitively difficult for programmers to deal with.

    These, I think, are some of the non-obvious reasons that give ROR the edge over other web frameworks.
  • What Controversy? (Score:1)

    by sabat (23293) on Sunday May 14 2006, @11:54AM (#15329865)
    (Last Journal: Friday May 20 2005, @12:26PM)
    There's controversy about Rails? Since when? I've never heard anyone say anything bad about it -- but maybe I'm too skewed in what I read. Maybe I'm listening to the programming equivalent of Fox News. =:-O
  • Still no Unicode (Score:5, Informative)

    by shutdown -p now (807394) <int19h@gmail.com> on Sunday May 14 2006, @11:58AM (#15329882)
    The biggest problem with Ruby - and, by extension, Rails - in my book is almost complete lack of Unicode support. See for yourself [rubyonrails.com]:
    Please note that right now Rails basically knows nothing about Unicode and pretends everything is just bytes. It means that validates_length_of for multibyte characters will trigger errors at the wrong places, various kinds of Unicode whitespaces are not going to get trimmed and sometimes Rails will cut right into your characters. Absolute most of Rails internals makes no notion that multibyte text even exists, Rails just delegates all to the Ruby string handling code (which in current Ruby is all single-byte).

    This is being looked at, but in the meantime you use UTF8 encoded strings at your own risk and you can expect (and wil get) bugs and problems.

    It might not look like a big deal to English-speaking people, maybe also for Western Europe (they can usually get away with Latin-1). But the rest of us do need it... that, or going back to multiple charset/encoding hell.

    So, for now, it's Java or Python, and associated frameworks for me. But not RoR.

  • by Qbertino (265505) on Sunday May 14 2006, @12:33PM (#15330060)
    RoR is a good OS product that helps people solve problems that really bug them. It doesn't - contrary to lot's of other OSS projects - have a website that looks and works like crap . It's lead developers actually have social skills (and running businesses) and can talk coherently in a way that normal people actually understand them. They are tight with the blogging community and are smart enough not to be arrogant and thus convince even the most fanatic Java people to check out their toy. They started the whole webcast thing and built RoR for an actual real life business project they wanted to do (www.basecamphq.com) before going OSS.

    Technology wise there is not that much new. Zope is still lightyears ahead of everything else (including RoR) but only last year did their website stop looking and acting like a total pile of doo-doo. Yet still Zope.org's Navigation is somewhat '99ish and much more intimidating and overwelming than the friendly and straightforward RoR Site.

    Then there's Django. Which is very neat, partly even better than RoR (and friends with the RoR project), but went OSS a little later than RoR and thus needs to catch up on awareness a little. Symfony is PHPs late answer to the RoR induced MVC frenzy and still to new to gain awareness momentum. CakePHP and P4A seem ok but don't have the marketing stance to be of any significance anytime in the future. They're both so nineties it hurts and thus will wither and die.

    Bottom line: RoR are a OSS project that isn't just good at coding or using exotic technologies, they actually have the skill to market it aswell. And they were the first in the framework camp. It's that simple.
  • by MaoTse (624765) on Sunday May 14 2006, @01:04PM (#15330191)
    Like it was pointed out in here other frameworks are older and more advanced then RoR.

    Still RoR managed to break the mindset barrier of a typical US java programmer - and the sheer amount of people with such profile is so overwhelming that, in the end of the day, that's all that counts.

    Folks ignored everything beyond J2EE for a long time. Think Zope history for example.
    RoR happened at the moment java burden factor just reached some kind of a critical mass point.

    The enthusiasm for RoR specifically surely is due to good marketing but I suspect typical American Japan-envy factor was as important.
  • Seriously, once you know the naming conventions, directory layouts, etc., it is very easy to find your way around a Rails project.

    If you are working on a controller and want to mentally switch gears an modify the coresponding view, there is no doubt where to go (that is, which rhtml file to edit).

    I find myself thinking about application problems and not framework problems. I am a little prejudiced right now: I am just finishing up the book "Ruby Quickly" for Manning (http://www.manning.com/watson/). I hate to admit it, but I am simply tired of developing in Java. Ruby is fun, and productive. I started a new AI project a few weeks ago, and I started all of the prototyping in Ruby. For one part of the system, Ruby is too slow, and I am replacing this bit of code with stuff written in Common Lisp. Still, for a large part of the system, Ruby is a great fit.

  • Tutorial for RoR? (Score:2)

    by Jugalator (259273) on Sunday May 14 2006, @01:12PM (#15330227)
    (Last Journal: Monday February 13 2006, @07:11PM)
    Can anyone give me a good, preferrably online, tutorial/introduction to RoR?

    Being thorough isn't really a disadvantage; I'm not looking for a sloppy "learn RoR in 2 days" intro.

    I thoroughly enjoyed e.g Bruce Eckel's free online books [janiry.com] for C++ and Java, as a hint of what I'd be looking for.

    Is there anything good out there online? :-)
  • by KidSock (150684) on Sunday May 14 2006, @01:19PM (#15330255)
    Well now I know RoR is bull because any article that is 90% about trying to debunk hype and talk about philosophy must be hiding something. You can easly find 10 Java programmers but if you're an expert in something that offers 10 to 1 productivity then you're going to be popular. My guess this is just another guy trying to drum up some business for himself. Not that there's anything wrong with that but you have to technical content to backup your claims. Let's see that "three lines of code to render a table".
  • Posted on IBM (Score:2, Informative)

    by zlogic (892404) on Sunday May 14 2006, @01:29PM (#15330303)
    (http://zlogic.da.ru/)
    This article is hosted at IBM, and IBM invests heavily in Java (SWT, Eclipse, etc.) So this article should be taken with a grain of salt. It's like Microsoft comparing .NET with Java (remember Microsoft's ".NET is X times faster than Java" statements?)
    However it's nice to see that IBM knows that Ruby exists and knows its strong points - so that they may borrow the good stuff into Java.
  • RAILS is a different tool? (Score:2, Interesting)

    by Anonymous Coward on Sunday May 14 2006, @01:39PM (#15330344)
    After using Ruby for several years, for general purpose scripting, and various other web development frameworks in Java/Perl/PHP/C#, etc... It seems clear to me that ROR really isn't another 'kind' of tool at all. It's simply a well desgined web framework, expressing some of the philosophy of the Ruby programming language.

    The programming techniques ROR promotes aren't new, they're not crazy, or magical. They're not in the least 'different'.

    The article lists:

    1.) Seamless integration
    2.) Convention 'over' configuration.
    3.) Low Repetition.
    4.) Immediate Feedback.

    What web-framework would not want the framework they're using to work well with the underlying language? And Convention over configuration doesn't mean a lack of configuration, it simply means that intelligent defaults are generated. It makes common things easy, and uncommon things possible. And DRY is a main goal of software engineering, of design patterns, of object oriented programming--- which all have been in practice for over twenty years.

    In this article, the author points out that it's based on an underlying MVC architecture. This isn't anything new for any other web development framework, for instance Struts. And even outside of an environment which starts with this design by default, software engineers are wise to follow design patterns. It seems he views the philosophy of convention over configuration as somehow making ROR inflexable, and incapable of solving some imagined wide range of web-development programs. Sure, 50% of applications are web-based and database backed--- but ROR programs don't have to be database backed (See Rails Recipes, page 57). And, I figure if a person is using a web-development framework, the lack of configurability in the expression of the application as being web-based is acceptable (although I suppose it's possible to replace the view portion of the application as well).

    It's clear, from some messages I've read here--- several people choose 'not' to adhere to MVC, and code the majority of their application in the view portion. ROR really does little to 'enforce' the user to do one thing, or another, it merely provides tools that aid a person in producing a scalable, modularized, and reuseable, web-application.

    Ruby is a fully object oriented programming language, that was built from the ground up on the principle of least surprise. Language constructs aren't built directly into the syntax, as they are in perl--- it adheres very closely to the smalltalk view of a truly object oriented language being composed of objects, and messages. The script isn't being augmented with a new 'breakpoint' keyword, but instead with a breakpoint function. There's very little that's magical about what ROR does, and most everything it does can be extended upon, reused, or changed.

    It's not a new 'kind' of tool, it's just a clean integration of existing tools. It's an environment that has integrated a great deal of the components that have been in wide use by other web-development platforms for years, and provides a clean way to generate a template project using those pieces.

  • by otis wildflower (4889) on Sunday May 14 2006, @01:40PM (#15330349)
    ... by design. Thus, I presume, the use of the word 'Rails'.

    You want a DB-driven site that hooks into a single DB for all its tables? You got it.

    You want a site that hooks/controls multiple DBs, or want to stray too far from the paradigm? Not so much.

    If your project is contained mostly or entirely within the Rails Venn diagram, you'll be happy. Otherwise, not so much.

    (I looked into it for a site that would manage large #s of XML files, and found that going outside the one-DB-per-site model was very unfriendly, but then again, IANARP.. :p)
  • Ruby limitations (Score:2)

    by jopet (538074) on Sunday May 14 2006, @01:43PM (#15330365)
    (Last Journal: Sunday December 10 2006, @10:25AM)
    Unfortunately, Rails is limited by a couple of limitations that are really Ruby's limitations: most importantly the total Lack of Unicode support. I like most of the design of the Ruby language, but to not support Unicode in 2006 makes it essentially unusable for most projects where I would need it, including practically all Rails applications. Ruby is also not particularily fast, in some respects quite slow which also impacts Rails.
  • The best CRUD (edit/search/report screens) technologies I've seen involve data dictionaries (field tables) who's values/behaviors can be overridden as needed. The use of DD's turns app design into mostly data entry so that one does not have to code a bunch of attributes via zillions of set/get's. And, one can do relational operations on the DD's to search, modify, or copy them. The real secret sauce to fast CRUD includes:

    * Data dictionaries
    * Overridable event options as needed for stuff DD's don't do well or nitty exceptions to the rule.
    * A good table browser to edit the DD's (something lacking in current web UI stuff).

    I'll pit such against R-Rails any day. It is a lot quicker to fill out a table and inspect a table than to type in and verify code (at least for me). Coding nitty attributes is for people who like wrist injuries.
         
  • by ManyLostPackets (646646) on Sunday May 14 2006, @02:51PM (#15330599)
    So many frameworks, so little time...

    I would love a comparison between Rails and perls Maypole and Catalyst or Phythons TurboGears and Django or php's cakePHP and smart3

    Hard to find Ruby programmers, and their are more commonly known languages with comparable frameworks, some of which have been around longer (like maypole). Then again, Ruby fanatics are generally cream of the crop programmers and one wouldn't have to worry about PHP n00bs who can't really code or perl programmers who write line noise or the overhead of Java and it's seemingly required department of architects

    Seems other languages are just as good, just harder to manage, but if you have top notch PHP programmers and Perl programmers who work well together to write maintainable code [oreilly.com] , I wonder how they would compare then?
  • What about PHP? (Score:2)

    by mangu (126918) on Sunday May 14 2006, @03:07PM (#15330649)
    I read TFA expecting to learn something about why people talk so much about Ruby today. Unfortunately, there was only a comparison between RoR and Java. So, if the only reason to use Ruby is that it allows an agile development method to be used, sorry, Ruby came too late for that. I have been using PHP with phpGroupWare/eGroupware, which has every one of the advantages cited in the article, plus some more.


    One reason why I have so much impedance against Ruby is the different syntax. PHP has a C-like syntax, which makes it very easy to catch for someone who knows C and Perl. What's wrong with Ruby's syntax? Well, the dangling "end", for instance. It's too FORTRAN-like for my taste. "end" what? With curly braces, there is never any doubt on the block structure if you use a modern editor, with Ruby's "end" you can never be sure of what ends where. I also prefer the curly braces instead of "begin"/"end" for the simple reason that it means less ink on paper, less clutter, easier to read listings. They say the Ruby syntax is "flexible", well so is Forth.


    Using Ruby instead of Java, OK, I can see why it's better. But I'm still waiting to see a good explanation why should someone use Ruby instead of PHP, or Perl, or Python, the three languages that have become so much associated with the "agile development" trend of software development.

  • Ruby is slow (Score:4, Insightful)

    by SanityInAnarchy (655584) <ninja@slaphack.com> on Sunday May 14 2006, @03:59PM (#15330816)
    (Last Journal: Tuesday October 30, @10:59AM)
    When it comes to Ruby, I have one wish:

    Compile it. For the love of God and all that is holy, Ruby is at least as slow as JavaScript, if not slower -- at least you can compile JavaScript into Java!

    Perl6 shows some promise in that area, but I have some serious doubts. Ruby, as a language, does far too many things that simply assume it's a "scripting" language. For instance, it's possible to modify any class at runtime -- thus many core libraries probably rely on that feature. Also, all names in Ruby are kept around at runtime. I'm pretty sure that it actually is doing a hash lookup every time. For instance:

    irb(main):026:0> class Fixnum
    irb(main):027:1> def method_missing (name, *args )
    irb(main):028:2> print 'Attempt to call '
    irb(main):029:2> puts name
    irb(main):030:2> end
    irb(main):031:1> end
    => nil
    irb(main):032:0> 5.foo
    Attempt to call foo
    => nil
    irb(main):033:0>

    I'm sure that someone will find a much simpler / more efficient way of doing the above, but the point is the same. Obviously, whenever Ruby executes code that attempts to call '5.foo', or even '5 + 5' (which becomes something like 5.+(5)), it actually stores the code for the call as a call to a given name, and then looks up that name at runtime.

    Now, good OO design generally involves making lots and lots of small classes, and even the bigger classes will have lots and lots of small methods. Good programming design in general tells us to refactor mercilessly, which will, in any language, tend to reduce the amount of code per method and increase the number of method calls. And even if you go the other way, and don't use any methods at all, the simplest line in Ruby (since it's a pure OO language) will break down into 5 or 10 method calls, at the very least.

    What all this means is, Ruby is back to that old argument of developer time vs. application run time, and I hate that. I really love it when we can break out of that mold -- when we find that, most of the time, a compiler will produce better code than handcoded assembly, or a language-based garbage collector can actually run as fast or faster than a hand-coded, application specific refcounting scheme. Or when we find that Java, despite being bytecode, will, once you JIT it, run as fast or faster than equivalent C++. Or when we find that mod_perl can be close enough to the speed of a C program that it's not even worth considering using C instead.

    But when it comes to choosing a language, they all have their performance wrinkles. C++ probably uses more memory than C, and always seems to take far longer to compile. Perl isn't anywhere near as fast as C, so whenever we find something where we need that extra speed, we rewrite chunks of a Perl module in C. Python is the same way, though Psyco looks promising, but Psyco is also x86 only, not even amd64. Java is as fast as anything, once a program starts, which takes far longer than anything else even if you've gcj'd it -- plus, the language sucks compared to Ruby. C# is as fast as Java, and so far seems to load much faster, but the language sucks (really a rehash of Java/C++), IronPython is nowhere near done, and even IronPython isn't as nice as Ruby -- plus, the platform is controlled by Microsoft.

    Ruby has absolutely awesome syntax, can be 10x faster to develop in than most other languages, but due to the language design itself, it will always be much, much slower than Perl, and that's saying something. And it's just depressing when you find you can make a chunk of your program run 10x faster by porting from Ruby to C, only it will take 50x more code.

    I guess what would make me happy is an insanely intelligent compiler for Ruby, that targeted the .net environment. Performance comparable to C#, developer time comparable to normal Ruby, bytecode obfuscated enough to use in commercial products.

    But that's depressing, too, because in the amount of time it would take me to learn enough about Ruby and
  • just another tool (Score:1)

    by tgone (956916) on Sunday May 14 2006, @04:10PM (#15330852)
    I've spent the last month experimenting with RoR and Django. Although I prefer Python as a language, I found RoR much more exciting to use. Everything is nestled into a nice package. I understand why it appeals to .NET and J2EE developers who are used to rigid environments. Despite all this, I don't think RoR is going to save your life. Get over it fan boys! Here are some things I noticed about RoR: - The RoR community is full of obnoxious zealots (similar to the those who idolize Steve Jobs). Many tutorials are filled with chit-chatty authors who believe programming is a whimsical ride. I don't want to hear your cute jokes. Get to the point and tell me how to use the tool. - PHP is installed on almost every *nix host out there. I can cook something up in PHP and deploy it just about anywhere. This is not the case with RoR. You have to find a RoR-friendly host or have your own server. - Lack of Ruby programmers. This is likely to change with time though. - What's wrong with PHP? It's is great for rapid development and not every site fits into the MVC paradigm. So why choose one language over the other when they both excel at different things? People didn't stop using telephones when the Internet was invented. You're better off using both tools and knowing when to use them. People get obsessed with this stuff, and take it too seriously. Why are you programming in the first place? To be cool?
  • Easy one (Score:3, Funny)

    by arodland (127775) on Sunday May 14 2006, @06:57PM (#15331491)
    The secret sauce is "Hype". And if you lift the bun, you find that there's more secret sauce than meat.
  • 5 to 10x more productive than Java? (Score:3, Insightful)

    by Anonymous Coward on Sunday May 14 2006, @07:06PM (#15331516)
    If you know java, I simply find that hard to believe. If you don't know it, maybe you've taken a class, read some books on JSP, you "can write it." It starts to be more reasonable. There might be some O(1) type operations like the initial setup that can be done in Rails in a hour vs. the full work day for Java or something like that but very little in terms of actual production.


    The crux of the problem with that argument was brought up by the author of webwork, if I'm not mistaken. If you're coding so much that you really can get a 10x improvment then you're clearly not doing enough design work to be making an app that's worth shit, regardless of the tool. Rails doesn't cut down on the thought time.


    DHH kind of tries to disown that comment when he's challenged on it. It's just rails marketing and hype, someone has whispered "10x faster" and they repeat it but they don't stand behind it. One thing that you can bank on, there is a lot of hype around rails, the people who make it are responsible for contributing to that hype and there is very little in the way of concrete information about these outlandish claims.


    It's okay at what it does. I personally don't care for the hype and I generally distrust when all you have is hype.


    Something else to consider, rails by design scales by pushing everything in to the database. They have some minimal caching at the web tier but none at the db tier. You need to render more pages, buy a bigger database, that's the quick answer and they suggest that it works because "yahoo does it that way" This is kind of an, um, interesting way to address scalability. I like how they make sure that they compare rails to what yahoo does too, it's just a quick and subtle comparison but it works and leads you to believe that you could do something yahoo like in rails, when it couldn't be further from the truth. Activerecord doesn't exactly conserve queries, some fairly simple joins seem to result in a lot of queries and it's kind of heavy. It's sales and marketing's way of saying they haven't really addressed the issue. To be pragmatic about this, why on earth are there all the elaborate caching schemes in EJB and J2EE and JDO? Surely people didn't just think it was something fun to build, I know the rails crowd seems to hate java but don't they think anyone with any real skill worked on it ever? I buy the j2ee is complex argument but I need to understand their argument for the complexity being unneeded. If you're planning to move on to a different project before it actually has to scale, that's not really an argument. From my own experience building clustered j2ee apps, scaling by just shoving everything into the db and hitting it for each page simply isn't a practical option if you have any real traffic.

  • Talking out my ass... (Score:3, Insightful)

    by localman (111171) on Sunday May 14 2006, @07:17PM (#15331557)
    (http://www.sophiafieldphotography.com/)
    I haven't used Ruby or Rails. I only read the ten minute tutorial that got posted here a while back. Actually reminds me a lot of a object wrapper I wrote for perl that built class heirarchies automatically from a DB schema. It was pretty cool if I do say so myself, and so is Ruby on Rails.

    However: I don't think it matters. In my experience it doesn't matter that much what programming language or model you use. Object oriented or procedural, strongly typed or loosely typed, monolithic or microscopic, chocolate or vanilla. Everything eventually bows to the reality of inherent complexity. I've seen each style done right and wrong, and if they're done right, the differences sort of wash out over time. My prediction is that Ruby on Rails is great for prototyping, but if you ever have a large buisness project that grows and develops for years it'll end up no more productive and maintainable than any other competently written code base, and probably no less productive either.

    I'm not saying none of these choices matter: they do. There are certain things I've written that are much more sensible OO than procedural and visa-versa. In the end you make decisions on how to go about a particular project, and if you've made the right ones five years later you can still carefully move at a crawl and bring new people into the codebase with only a few weeks of training. And I don't think any technology shift will notably beat that. I'm still a believer that there's no silver bullet that will make development (especially long term development) a breeze.

    But what do I know? Use what makes sense to you.

    Cheers.
    • 1 reply beneath your current threshold.
  • Alliteration. Ruby on Rails: it just _sounds_ good.

    What it actually _is_, I don't know. I know approximately what Ruby is, although not intimately, but I have no idea what the rails signifiy in technical terms, although they presumably connote rapidity of some sort. If I were a Ruby programmer, I'd certainly want to know what this Rails thing is all about.

    Whether it sounds good enough to make me (as a Ruby outsider) want to learn the language is another question. Frankly if I were to learn Ruby it would probably be more due to the good things I have heard about it from sources like perl6-language, than due to Rails, because whatever other tools you use the quality of the core language is critical to their usefulness, so as a programmer it's the style of the language I want to know about first. (This is part of why I never picked up Java: the GUI libraries it comes with are supposed to be really great, but nobody with similar tastes in languages to mine ever has many attractive things to say about the design of the language itself; Ruby, OTOH, does regularly get positive comments from people whose opinions on language design I respect greatly.) Nonetheless, if I *did* take the time to learn Ruby, and if I found that I liked it as a language, Rails would definitely go on my to-learn list then, *despite* that I don't actually know what it does. Because, you know, it just sounds good. Probably looks good on a resume too.
  • Scaling... (Score:2)

    by fak3r (917687) on Sunday May 14 2006, @09:44PM (#15332142)
    (http://fak3r.com/)
    I'm reading more and more about how ROR as a web app scales very well for large scale sites. For yself I'm learning how to do some advanced things with it, here is my HOWTO speed up ruby-on-rails with memcached:

    http://fak3r.com/articles/2006/05/11/speed-up-ruby -on-rails-with-memcached [fak3r.com]
  • Hype (Score:2)

    by Junky191 (549088) on Sunday May 14 2006, @10:57PM (#15332385)
    There is no special sauce. It's just the latest hyped toolkit that will be gone next week. Look for Jarva or D++ or whatever trendy new thing pops up in software next week that does absolutely nothing.

    Listen kids, there is no silver bullet. For all you folks that dropped out of college/high school who generate the ad clickthroughs that make these stories submittable: Fred Brooks, The Mythical Man-Month. Read it.
    • Re:Hype by chromatic (Score:1) Monday May 15 2006, @12:25AM
    • Re:Hype by jfmiller (Score:1) Monday May 15 2006, @03:15PM
  • by Jondo (693238) on Monday May 15 2006, @03:37AM (#15333031)
    I've used rails for only a few months, but already have quite a good understanding of how everything works, and have even done some hacking/patching on the backend. I've also used ActiveRecord with some applications that are not web-based, all with good success. I love every convention in Rails, except for one, which I dearly hate.

    ActiveRecord was designed quite obviously from the perspective of a MySQL user. The train of thought that a DB should only be a place to dump your data and nothing more is extremely prevalent with ActiveRecord. Things like referential constraints on foreign keys are completely ignored/not used, instead being defined in entirety in the model code. Perhaps my biggest aggrivation with ActiveRecord however is that it assumes I implement enumerations as varchar datatypes. I find this just plain wrong. Here's an example:

    ActiveRecord way:
    CREATE TABLE Users (
        id integer primary key,
        username varchar,
        usertype varchar
    );

    ActiveRecord will then use its single-table inheritance logic and each subclass of User eg "Administrator" will have that name in the usertype field, stored as a string. From a data-modelling perspective, I find this so wrong. I naturally implement this using an extra table of usertypes and a foreign key in Users:

    CREATE TABLE UserTypes ( id integer primary key, type varchar);
    CREATE TABLE Users (
    id integer primary key,
    usertype integer references UserTypes(id)
    );

    I have managed to get ActiveRecord to play somewhat nicely with these types of constructions by redefining some class methods in ActiveRecord::Base, but I'm definately violating DRY.

    This all said, and including the time I needed to spend hacking around in the ActiveRecord code, I am still more productive with Rails. Highly recommended, just with a hint of caution towards ActiveRecord paradigms and database integrity.
  • Hype, Fanboyism (Score:2)

    by fforw (116415) on Monday May 15 2006, @07:03AM (#15333415)
    (http://fforw.de/)

    I think most of the attention ROR is getting is just hype and secondary hype. The first wave of hype drew a lot of PHP developers (90% without any real clue about programming) to evaluate ROR. And of course, compared to PHP ROR is like a gift from heaven.

    After the hype around it persisted I tried it out myself. My impression was that it is nice but nothing worth that much hype -- plus I don't really like Ruby that much, its syntax seems to make too many things different just for the sake of it.

    The good thing about ROR is that it belongs to a new current breed of web development framework putting emphasis on rapid, easy development. I like the pythonic Turbogears [turbogears.org] very much (especially the upcoming 0.9 release).

  • I tagged this one as sauce. Nobody else did. Tagging ROCKS! :D
  • Ruby on Rails (Score:1)

    by StupifiedT (975002) on Monday May 15 2006, @11:01AM (#15335086)
    Hey guys I am a student and I have been working with ruby on rails for the past 4 months. I have to say taht I dont like it. I find that it is a pain to learn a new programming language just to use it. Instead of HTML ruby on rails uses RHTML. This is a pretty easy code to learn and use but I still dont enjoy it. However I am impressed at how quickly you are able to set up a web site. I havnt been able to make a very good looking website but i was still able to make it quickly. Over all I think that RoR is not as great as I thought it would be and I prefer the old way of making web sites with DreamWeaver and Photoshop. I know that RoR is all free software which is good but I think that the price is the only good thing about RoR.
  • by Eil (82413) on Monday May 15 2006, @11:25AM (#15335277)
    (http://bityard.net/ | Last Journal: Thursday August 08 2002, @04:18PM)
    TurboGears [turbogears.org] is similar to Rails, but in Python. I don't believe it was inspired by Rails, but the TG people are using the Rails momentum to guide development (in terms of what's working for Rails and what isn't) as well as borrowing a few marketing ideas. (For example, the 20-Minute Wiki tutorial [turbogears.org].)

    I'm neither a RoR or TurboGears guru by any stretch, but near as I can tell, these are the main differences between Rails and TurboGears (real gurus are welcome to correct/add to this list):

    1. No need to learn a new language (if you already know Python). Relatively few developers knew anything about Ruby before RoR became a hit, while lots of people know Python.

    2. TurboGears comes with less magic built-in. Which is actually a boon for most people because a few that I've talked to thought that all of the magic in Rails ended up making non-trivial applications hard to both develop and debug. TurboGears is much more verbose. Sure, you have to write a few more lines of code for many typical tasks, but you also have a much better idea of what's going on in your application and can debug it quickly when it breaks.

    3. TurboGears ties together several pre-existing projects into one framework rather than rolling their own. This offers a couple of nice benefits. First, it's less work that the TG developers have to do. They neither had to write nor have to maintain much of the code that TG rests upon. Second, it's possible that one sub-project can be substituted for another later on down the road. (I understand that they're already using this feature and are in the process of migrating SQLObject out and bringing SQLAlchemy in.)

    4. Better documentation. Python is already exceedingly well documented and the TG folks are going out of their way to make sure that their framework is documented just as well. By contrast, if you're just starting out with Ruby and Rails, the best documentation available right now is a Ruby book and a Rails book, both by the same publisher. Part of the reason I didn't go too far into Rails was because I couldn't afford to invest in the books at the time. (There is a TurboGears book in the works by Mark Ramm [compoundthinking.com] which should be out later this year.)

    Of course, one potential downside to TurboGears is that you have to learn how the various sub-projects work in order to use TurboGears. But they're not all that hard and are probably about the same amount of effort to learn as all of Rails.

    There are also a couple other really nifty things about TG that I'd like to mention. (I don't know if rails has these or not.)

    The templating engine, Kid [turbogears.org], allows you to draft up a template and give right to your web designer, with placeholder text and all, and have them hack on it in Dreamweaver or whatever they use. When they're done, just copy it back into TurboGears and it simply works. Kid uses real HTML tags and attributes, so web browsers can view the templates directly and HTML editors can edit them without mucking up the template-specific stuff.

    CatWalk [checkandshare.com], the built-in AJAX database editor can be enabled in your TurboGears app by inserting like two lines of code. Talk about sweet.
  • Easy Answer (Score:1)

    by Run4yourlives (716310) on Monday May 15 2006, @12:06PM (#15335621)
    Rails solves problems. Plain and simple. It was built from day 1 to address a specific problem, (basecamp) and now the creators have found that a lot of people have very similar problems to solve. That's it. That's why it's so good.

    It does not try to solve every problem, like J2EE. It is not a solution looking for a problem, like it's many Python-based cousins. It won't solve every problem, and makes no claims to do so.

    But if your problem is a web-application with a (smallish) number of variables, RoR is a godsend.
  • Re:Nice Summary. (Score:2, Funny)

    by Sky Cry (872584) on Sunday May 14 2006, @10:44AM (#15329648)

    Nice summary. Too bad it's stolen verbatim from TFA.

    I bet noone would realize, since nobody ever reads TFA. It's a sad world, when people steal summaries from the articles they link to.

    [ Parent ]
  • Ob. Simpsons quote: (Score:1, Troll)

    by Farmer Tim (530755) <roundfile AT mindless DOT com> on Sunday May 14 2006, @10:46AM (#15329653)
    (Last Journal: Monday June 05 2006, @10:46AM)
    "Take this jar of mayonaise and leave it in the sun".
    [ Parent ]
  • by sbrown123 (229895) on Sunday May 14 2006, @10:52AM (#15329670)
    (http://slashdot.org/)
    I tried Rails for a bit. Found it nice. I found the language Ruby more interesting than the Rails framework. Rails code I looked at looked very much like JSP/ASP/PHP gone bad. All sorts of code in HTML land. Then their was the compilation oddities.

    I still believe that Java and PHP are better though. They also perform a hell of a lot faster and scale much better. For example, a friend was creating a site with Rails and wanted to put in integrated search. Several people attempted creating something like Apache's Lucene in Ruby but found that the Ruby's poor performance made the search incredible slow (you could time out before it finished getting your search results).

    What I would think would be really cool is a Lua plugin for Apache. That would be sweet.
    [ Parent ]
  • Re:Nice Summary. (Score:2, Insightful)

    by Anonymous Coward on Sunday May 14 2006, @11:07AM (#15329709)
    Nice summary. Too bad it's stolen verbatim from TFA.


    So what? A summary should summarize the article (duh!). If the article itself does a good job at that, why reinvent the wheel?

    [ Parent ]
  • Re:Nice Summary. (Score:2)

    by Ohreally_factor (593551) on Sunday May 14 2006, @11:35AM (#15329789)
    (Last Journal: Sunday November 27 2005, @02:29PM)
    It's par for the course here at slashdot. If it's not a clean lift from TFA, then chances are it's going to be incomprehensible. Writing skills on slashdot are that bad.
    [ Parent ]
    • 1 reply beneath your current threshold.
  • Re:Nice Summary. (Score:1, Funny)

    by ardu (27147) on Sunday May 14 2006, @11:37AM (#15329801)
    (http://www.cinetica.it/)
    Be positive!
    A slashdot editor that read TFA: priceless!

    [ Parent ]
  • Re:Nice Summary. (Score:4, Funny)

    by Anonymous Coward on Sunday May 14 2006, @11:47AM (#15329838)
    Nice comment. Too bad its stolen verbatim from the article AND the summary.

    [ Parent ]
  • Zealotry, or simply inexperience? (Score:4, Informative)

    by Anonymous Brave Guy (457657) on Sunday May 14 2006, @12:11PM (#15329947)

    Reading TFA, I wouldn't use words like zealotry or fanaticism to describe either the article or the attitude of the Java programmers it seems to be aimed at. What I do see, though, is a terribly narrow-minded view of programming, and an obvious lack of broader experience. Let's take a few choice quotes.

    From the About this series box, before we even get to the article itself:

    In the Crossing borders series, author Bruce Tate advances the notion that today's Java programmers are well served by learning other approaches and languages. The programming landscape has changed since Java technology was the obvious best choice for all development projects.

    Surely most of us would agree that any programmer is well-served by familiarity with a variety of languages, programming styles and tools, and by choosing the most appropriate for any given job. Which, despite the absurd claim above, has never been Java in all, or even most, cases.

    From the "Hype and skepticism" section:

    Rails proponents boast of incredible productivity, with some claims of 10 to 1 over Java development. As a Java programmer, your knee-jerk response is to dismiss any wild productivity claims because you've likely heard them before and been disappointed.

    No-one who's looked into a wide range of programming languages (and I don't mean Java, C++, C# and Visual Basic.Net) would find those claims particularly surprising or implausible. The functional programming world has been outclassing workhorse industrial languages like C++, Delphi, Java and co. in productivity by an order of magnitude for a long time, at least for the kind of application that lends itself to a functional style. So-called scripting languages, which cut away much of the boilerplate baggage required by the workhorses, have proven to be a much more efficient tool for many kinds of project as well, often due to relatively simple features like supporting common data structures as first-class entities.

    Moving on to the Rails philosophies, we see things like "Don't Repeat Yourself" being highlighted as "core opinions pervasive within Rails". Surely abstracting common code and data structures into reusable units is a basic principle of sound programming in pretty much any language?

    Then we get to the "niche" for Rails:

    I'd guess that as many as half of the applications built today are database-backed, Web-enabled applications.

    I'd guess that's wildly optimistic, though it's certainly a common conceit among Java programmers IME. Not everything in the programming world is web-enabled, and much of it has no interest in becoming so either. Why would a high-performance scientific application, a CAD/CAM/CAE package, a FPS or the firmware in your washing machine care about database-backing and Web-enabling?

    All-in-all, this seems to be an article aimed at die-hard Java programmers with little experience of the wider programming world. Its arguments support wider exposure to programming and good general programming principles, though it forgets to mention that Ruby on Rails is far from the only way of achieving those ends.

    [ Parent ]
  • by mikaelhg (47691) on Sunday May 14 2006, @01:38PM (#15330337)
    Ruby on Rails - the Bush administration of web frameworks.

    This is what they do. They spam their marketing materials on one forum after another, glossing over finer points like the lack of Unicode and threading support, along with quite a number of tools professionals need in their development, and then use their meat or sock puppet accounts to downmod messages they don't want to reach their target marketing audience.
    [ Parent ]
  • Re:Nice Summary. (Score:3, Insightful)

    by dorkygeek (898295) on Sunday May 14 2006, @06:51PM (#15331480)
    (Last Journal: Tuesday May 01 2007, @04:06PM)
    I definitely prefer a verbatim copy of a summary over the sensationalist, misleading or sometimes even plain wrong summaries we use to see here at/..

    [ Parent ]
  • by Dasch (832632) on Monday May 15 2006, @09:22AM (#15334258)
    Yup, but it's coming in Ruby 2.0!
    [ Parent ]
  • Unicode is a sore on the face of programming. UTF-8 may not be superoptimal but it definitely makes life a lot easier when dealing with L11N and I15N. This is more than just "Speak English Or Die" mentality, it's more of efficiency and in many cases ASCII is more than adequate for the program, yet it has to cater to double size characters that eat up memory with pretty little zeros everywhere.
    [ Parent ]
  • 18 replies beneath your current threshold.