Slashdot Mirror


Ruby on Rails 1.0 Released

Simon (S2) writes "Ruby on Rails 1.0 has been released. From the announcement: 'Rails 1.0 is mostly about making all the work we've been doing solid. So it's not packed with new features over 0.14.x, but has spit, polish, and long nights applied to iron out kinks and ensure that it works mostly right, most of the time, for most of the people.' " The Ruby on Rails website has also been given a new look.

332 comments

  1. Commercial equivalent is...? by cytoman · · Score: 4, Interesting

    When talking about commercial software like MS Office, we talk about the "Open source equivalent" OpenOffice.org and stuff like that. I'm curious to know whether there is a commercial equivalent to Ruby on Rails.

    1. Re:Commercial equivalent is...? by Anonymous Coward · · Score: 0

      It's called QBASIC.

    2. Re:Commercial equivalent is...? by wilburpb · · Score: 5, Informative

      Perhaps Coldfusion, WebObjects, .net, or J2EE+Struts (depending on your definition of 'commercial')

    3. Re:Commercial equivalent is...? by rainman_bc · · Score: 3, Informative

      Ruby on Rails is to mod_ruby what Fusebox is to Coldfusion.

      Coldfusion is a language of itself [albeit a simple one] that runs on top of a J2EE engine called Jrun... /me = coldfusion person (I also know and use ruby a lot, and am working on learning RoR)

      --
      09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
    4. Re:Commercial equivalent is...? by killjoe · · Score: 1

      Of your list webobjects comes the closest. ROR is a kind of a anti-j2ee thing. Do people still use coldfusion?

      --
      evil is as evil does
    5. Re:Commercial equivalent is...? by mr_da3m0n · · Score: 1, Interesting

      I would like to take this moment to mention that I have been administering a production Jrun server, and three development server (with four instances (servers) each) with different requirements, and probably contracted cancer and killed my dog in the process. Either the code is obscenely crappy, or Jrun is completely awful. So far, I think the latter applies... Updaters that crap out, micro patches distributed only in the support forums so you end up with micro version mismatches, strange error messages, nothing rendered and absolutely nothing useful in the logs, even with full debugging output enabled, strange results with Java 1.5 such as some forms refusing to post correctly and mismatching the encoding, complete and utter inepty to properly run as a service and be restarted 100% of the time... Coldfusion still exists? The checkbox for it is unticked by default when you add an IIS connector in Windows.

    6. Re:Commercial equivalent is...? by sammy+baby · · Score: 2, Informative

      That's actually kind of inaccurate, if I understand the situation correctly.

      mod_ruby is apparently a very limited way of embedding ruby code inside a web page, a la mod_php and the PHP language. Ruby on Rails works through the use of a CGI (or, preferably, a fast_cgi) script called the Dispatcher, which is (unsurprisingly) written in Ruby. The dispatcher handles the translation of requests and URIs to the code you've written using Ruby and the Rails framework.

      It would be more accurate to say that Ruby is to Rails as PHP/Coldfusion is to Fusebox.

    7. Re:Commercial equivalent is...? by Anonymous Coward · · Score: 0

      Yes, ColdFusion does still exist and actually runs one of the most high traffic websites on the internet - MySpace.com

    8. Re:Commercial equivalent is...? by mixonic · · Score: 1
      I'm curious to know whether there is a commercial equivalent to Ruby on Rails.

      Well, if you mean a commercial equivelent in ruby, then no. I guess there might be a Java framework of some kind, but that's not really my realm. Furthermore, rails is licensed under the MIT license: http://dev.rubyonrails.org/svn/rails/trunk/railtie s/MIT-LICENSE. This means you can already "use, copy, modify, merge, publish, distribute, sublicense, and/or sell" rails. I'm not sure what advantage you would get over rails from a commercial equivelent, unless it was technically superior in some way.

      http://wiki.rubyonrails.com/rails/pages/AvailableF orHire is a pretty good spot to start looking if you needed support or consulting. There are alot of freelancers working with rails right now.

      -mix
    9. Re:Commercial equivalent is...? by Serveert · · Score: 3, Informative

      ROR has been compared to hibernate+struts, in fact I believe much of the motivation behind ROR was to create a more full featured hibernate solution.

      ROR isn't as mature as j2ee struts+hibernate but it will be soon. ROR has tons of potential.

      --
      2 years and no mod points. Join reddit. Because openness is good.
    10. Re:Commercial equivalent is...? by rockinrobotix · · Score: 1

      Coldfusion is actually having a bit of a rebirth according to recent statistics. If you haven't used Coldfusion since MX, it really is a powerful yet simple language. It has drawback's but with all of it's included features, java architecture and ease of use it really is a viable alternative to many languages. Now let's see how Adobe handles it...

    11. Re:Commercial equivalent is...? by The+OPTiCIAN · · Score: 1

      Please! WebObjects is much too powerful to be a viable 'commercial alternative' to Ruby on Rails :)

      --


      Believe with me, my saplings.
    12. Re:Commercial equivalent is...? by Anonymous Coward · · Score: 1, Informative

      Is CF still being used? Absolutely. I work for a fortune 100 company. My department (15 people + a handful of contractors) all work on one project, and that project is implemented in Coldfusion (though I'm the only one who actually does any CF dev work, my coworkers are writers, graphic designers, businees analysts, etc.) We looked at using JSP, .net, PHP, etc. but eventually decided on CF (money wasn't a factor - CF is actually rather expensive so I would never choose it for personal use due to it's cost, but when the company is footing the bill...). We haven't regreted the decision yet. It's is absolutely an outstanding piece of software.

    13. Re:Commercial equivalent is...? by zephc · · Score: 1

      Agreed!

      --
      "I would say that 99 per cent of what my father has written about his own life is false." - L. Ron Hubbard Jr.
    14. Re:Commercial equivalent is...? by eyeye · · Score: 0

      mod_ruby is apparently a very limited way of embedding ruby code inside a web page, a la mod_php and the PHP language.

      As opposed to PHP which normally can't be "embedded in a web page"? You have totally misunderstood the meaning of mod_* .
      --
      Bush and Blair ate my sig!
    15. Re:Commercial equivalent is...? by mcvos · · Score: 1

      I planned to look into RoR (I still haven't), but a comparison with hibernate+struts seriously dampens my enthousiasm.

      In my experience, Cocoon is good enough for the vast majority of web aplications.

    16. Re:Commercial equivalent is...? by hexene · · Score: 1

      Fusebox and Rails are both web frameworks, but they are philosophically different. Fusebox doesn't even necessarily use MVC. The closest thing to Ruby on Rails in the CF world is ColdFusion on Wheels.

    17. Re:Commercial equivalent is...? by dlasley · · Score: 1

      I would have to say yes, people still use it. It is one of the most prevalent out-of-the-box application server platforms on the net. Want to see more of the list: Who's Using ColdFusion?

      Now that MX 7 allows you to either deploy with the JRun connector (meh ...) or go J2EE as an application under a full application server platform like WebLogic or WebSphere, it is gaining more traction and respect in a new light. Not sure if it is truly in re-birth yet, but let's see what the Adobe acquisition does to the picture.

      Worth noting that Ben uses hostmysite.com, which is one of the largest ColdFusion hosting companies in the world with several thousand sites.

      &laz;

      --
      when it rains, it gets real soggy. when it pours, i'm under the tap just _waiting_ for the joy
    18. Re:Commercial equivalent is...? by Serveert · · Score: 1

      Thanks, I will investigate Cocoon, looks interesting. Hibernate has evolved and with version 3 you can from the database generate the java DTO files, DAO .java files, as well as the .xml mapping. And it parses foreign keys well. Having said that the authors of Hibernate are first class jerks so I wouldn't mind an alternative.

      --
      2 years and no mod points. Join reddit. Because openness is good.
    19. Re:Commercial equivalent is...? by sammy+baby · · Score: 1

      I think you misunderstood me.

      mod_ruby and mod_php are similar. Neither one looks very much like Rails, which works via a [fast?]CGI script.

    20. Re:Commercial equivalent is...? by rainman_bc · · Score: 1

      You'll get no argument from me here that jrun sucks arse compared to some other j2ee platforms out there like Tomcat or Jboss.

      However Coldfusion is an extremely fast way to get a small to mid sized app out the door and running with minimal programming cost. It's an awesome platform.

      If I bill by the project, coldfusion is my first choice. If I bill by the hour, then php is my first choice :)

      --
      09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
  2. "mostly right"??? by kclittle · · Score: 0, Flamebait

    "mostly right, most of the time, for most of the people."???
    Is this the standard by which the Ruby community judges software goodness? I'm speechless.

    --
    Generally, bash is superior to python in those environments where python is not installed.
    1. Re:"mostly right"??? by Tyler+Eaves · · Score: 4, Insightful

      I'd prefer to look at it as honesty.

      --
      TODO: Something witty here...
    2. Re:"mostly right"??? by Anonymous Coward · · Score: 0

      This might be a response to the saying "you can please all the people some of the time, some of the people all the time, but you can't please all the people all of the time."

    3. Re:"mostly right"??? by sterwill · · Score: 2, Insightful

      How would you describe the software you write?

    4. Re:"mostly right"??? by IAmTheDave · · Score: 4, Insightful
      "mostly right, most of the time, for most of the people."??? Is this the standard by which the Ruby community judges software goodness? I'm speechless.

      Yeah, it's not great, but at least it's honest. Go on any developer site - MSDN, java.sun.com, whatever, and you'll see a nice long list of submitted bugs. Fact is, no software is perfect, so don't go crazy when they admit there might be uncaught bugs.

      --
      Excuse my speling.
      Making The Bar Project
    5. Re:"mostly right"??? by quigonn · · Score: 3, Informative

      At least it's more honest than the usual "it brings world peace and helps improve your stamina" attitude I see with other frameworks, especially within the Java community (that last clause will probably start off a flamewar :->).

      --
      A monkey is doing the real work for me.
    6. Re:"mostly right"??? by Anonymous Coward · · Score: 1, Interesting

      I'd prefer to look at it as a sign that maybe the jump from 0.14 to 1.0 is a bit premature.

      I'm thinking the authors are trying to get it up in the major release number so it can be seen as a true competitor to .NET or any of the various J2EE web frameworks out there...Im not sure if this will do it, but I think next week's RoR 2.0 release will be the kicker that makes Microsoft and Sun/Apache/Spring wonder what they've been wasting their time on...;)

    7. Re:"mostly right"??? by CyricZ · · Score: 3, Insightful

      That's a far higher standard than you'll find used by most commercial developers.

      Remember, Ruby is at the forefront of the agile development community. Many developments in unit testing, for instance, directly involve Ruby. Ruby developers are often the most experienced at effectively employing such development techniques.

      And you know what? It shows. Ruby software is often of extremely high quality. It's not perfect, but there is much effort taken to ensure correctly-functioning code.

      --
      Cyric Zndovzny at your service.
    8. Re:"mostly right"??? by Tyler+Eaves · · Score: 3, Insightful

      ANYONE who claims everything works perfectly is a lying sack of shit. It's as simple as that. The only way to come anywhere close to being able to make that claim would be to heavily qualify it, e.g., With Database X on OS Y, version Z, and library versions A, B, C, on hardware platform D. Anything more broad than that is just not a valid claim.

      --
      TODO: Something witty here...
    9. Re:"mostly right"??? by kclittle · · Score: 1

      The software I write is of much higher quality than "mostly" raised to the third power. :)

      --
      Generally, bash is superior to python in those environments where python is not installed.
    10. Re:"mostly right"??? by CyricZ · · Score: 0, Troll

      Can you provide links to some software that you have written, for us to stress test?

      There is a very good chance that we could, to put it nicely, molest the fucking guts right out of your software.

      Ruby on Rails is being used by many people, and it is maturing very rapidly. It's that sort of real-world use that results in well-written, stable, secure software. Not only that, but Ruby developers are on the leading edge of agile development methods. They're amongst the most experienced users of unit testing, for instance.

      Other projects, such as PHP, could really learn a lesson in effective software design from the Ruby community.

      --
      Cyric Zndovzny at your service.
    11. Re:"mostly right"??? by shoffsta · · Score: 1

      "mostly right, most of the time, for most of the people."???
      Is this the standard by which the Ruby community judges software goodness? I'm speechless.


      It certainly is better to know the problems/that there are problems in a piece of software, rather than having problems that are kept secret - the way MS, etc do it. Software is never perfect, whether you admit the problems it has or not.

    12. Re:"mostly right"??? by jarom · · Score: 1

      Did you mean OS X?

      --
      This signature is far too complex to have been created by chance.
    13. Re:"mostly right"??? by SavvyPlayer · · Score: 1

      Yes. Where do Sun, MS, etc. explicitly state their framework runs perfectly for all users all of the time? They don't because such a claim would be patently false, and there simply is no sexy way to articulate the truth, which is exactly what the Ruby team arbitrarily decided to do anyway. Regardless whether the ambitions of the Ruby team extend to widespread adoption, such careless honesty from such a visible project may inadvertenly damage overall market perception of the f/oss community, regardless of the actual quality of the offering (over the short-term at least). Welcome to the corporate marketplace -- arguably the most fickle place on Earth.

    14. Re:"mostly right"??? by tjr · · Score: 2, Insightful

      Mostly harmless.

    15. Re:"mostly right"??? by dsci · · Score: 1

      Just out of curiosity, how big are the software projects you right? Are they general, or very specific?

      I'm not trying to slam you, but your post is suggestive that most of what you write is very small, highly targeted code. For example, it is relatively easy to right a bug free function that multiplies its argument by 2. Much more difficult is a broadly useful object oriented framework. Most of us lie in the HUGE grey area between these two extremes.

      --
      Computational Chemistry products and services.
    16. Re:"mostly right"??? by Anonymous Coward · · Score: 0

      Do you get some pom-poms with your posts? I have seen some major fan boys over the years, but you seem so divorced from reality concering Ruby, Rails, and everything else its sad.

    17. Re:"mostly right"??? by Saint+V+Flux · · Score: 1

      Wait........you mean Java doesn't cure cancer and improve my sex life?!?! DAMNIT! My professors have been lying to me all along........I knew there was something wrong when they didn't teach anything in C!

    18. Re:"mostly right"??? by Just+Some+Guy · · Score: 1
      Remember, Ruby is at the forefront of the agile development community. Many developments in unit testing, for instance, directly involve Ruby.

      I call BS. Do you have any evidence whatsoever for that claim, or did it just sound good? And "I use Ruby, and the people around me are all into agile!" doesn't count for our purposes.

      Ruby developers are often the most experienced at effectively employing such development techniques.

      Oh, please. OK, you like Ruby. We get that. But there is nothing - nothing - about it that magically makes its programmers smarter and cooler than everyone else.

      I guarantee that there's a Lisp programmer or a hundred somewhere snickering at every "my language does $foo better 'cuz we invented it" statement floating around here. Yours falls into that category.

      --
      Dewey, what part of this looks like authorities should be involved?
    19. Re:"mostly right"??? by Peter+La+Casse · · Score: 1
      ANYONE who claims everything works perfectly is a lying sack of shit.

      Apply Occam's Razor: they could just be clueless.

    20. Re:"mostly right"??? by TrekCycling · · Score: 1

      What are you talking about? I find the Java community to be pretty pragmatic and grown up. We're mostly software developers solving problems. I don't see that many evangelists out here.

    21. Re:"mostly right"??? by Anonymous Coward · · Score: 0

      "how big are the software projects you right?"

      I've righted very few software projects of any size, as most of them are upright in the first place, and those that have fallen over are not worth the effort to right, anyway, and those that are tilting or starting to fall over are similarly not worth the effort to right, but some that are just slightly leaning may be worth saving, and some of those I have righted, and others have righted themselves, and if you've read this far, you need to take a break.

  3. It just works... mostly by cerelib · · Score: 4, Interesting

    Screw that overstated "It just works" stuff. I like the truthfulness of their statement, "it works mostly right, most of the time, for most of the people"

    1. Re:It just works... mostly by Pneuma+ROCKS · · Score: 0
      I like the truthfulness of their statement, "it works mostly right, most of the time, for most of the people"

      Beats the hell out of Google's Eternal Beta(TM). I still don't like it, though.

      --
      Favorite quote: "
    2. Re:It just works... mostly by teslatug · · Score: 1

      Well, the point is, we've seen "it just works" turn out not to work, so who's to say that "it mostly works" is any more of a truthful statement? I'd rather have them say here it is, it's free, try it out, and take the opinion of an impartial third party.

    3. Re:It just works... mostly by ScottCooperDotNet · · Score: 1

      Well, great, for developers. For PHB, that means no go.

    4. Re:It just works... mostly by Red+Flayer · · Score: 2, Funny

      Mostly right (50.01%) * Most of the time (50.01%) * most of the people (50.01%) = 12.50%.

      I'm not sure I'd want a product that is stated to work a minimum 12.50% of the time.

      Either that, or maybe I need to not take the worst-case-scenario when listening to product descriptions -- though it's worked for me in the past.

      --
      "Trolls they were, but filled with the evil will of their master: a fell race..." -- J.R.R. Tolkien on Olog-hai
    5. Re:It just works... mostly by Anonymous Coward · · Score: 0

      I'm not sure I'd want a product that is stated to work a minimum 12.50% of the time.

      You don't want it. You should stay right where you are, here on slashdot, and quit worrying about such things. I'm sure you'll be right-fucking on top of things if you do that.

    6. Re:It just works... mostly by plonkster · · Score: 1

      Conversely, if it works most of the time (50.01%), it doesn't work 49.99% of the time. So the chances of it not working is:

      49.99% * 49.99% * 49.99% ~= 12.5%

      Not bad.

    7. Re:It just works... mostly by Kresh · · Score: 1

      You made a mistake.

      He said Mostly right (50.01%) + Most of the time (50.01%) + most of the people (50.01%) = 150.03% !!!

      Now *thats* sexy, isnt it?

    8. Re:It just works... mostly by iamdrscience · · Score: 1

      Yeah, but you have to average the worst case scenario with the best case scenario. If you do that, you get 56.25%. Another couple percentage points and you've got yourself a passing grade!

      Plus, they're probably grading on a curve anyways, so I think it's a decent web platform.

    9. Re:It just works... mostly by Anonymous Coward · · Score: 0

      actually that should be

      50.01% * 50.01% * 49.99% + 50.01% * 49.99% + 49.99% = 87.5% chance of not working

    10. Re:It just works... mostly by Ekevu · · Score: 1

      Whine, whine, whine. Most software don't even risk promising it to work "mostly", they promptly yell at you: I TAKE NO RESPONSABILITY AT ALL! YOU BOUGHT IT, IT'S YOUR LICENSE, YOUR PROBLEM, PERIOD!

    11. Re:It just works... mostly by helix_r · · Score: 1

      .... compared to j2ee, that's pretty good.

      For J2EE projects:
      mostly wrong (10%) * Most of the time, not (10%) * few of the people (10%) = 1/1000

  4. Er by Trip+Ericson · · Score: 4, Interesting

    Excuse me for sounding dumb, but what is Ruby on Rails? I've heard a lot about it recently, but haven't the slightest clue what it is. A little bit of background would be most appreciated.

    1. Re:Er by bhirsch · · Score: 1

      An application server that takes a slightly diferent approach -- recipes, etc. Personally, I prefer Zope, though Ruby is not a band language.

    2. Re:Er by BrynM · · Score: 4, Informative
      Excuse me for sounding dumb, but what is Ruby on Rails? I've heard a lot about it recently, but haven't the slightest clue what it is. A little bit of background would be most appreciated.
      Here's some fliks to explain.
      --
      US Democracy:The best person for the job (among These pre-selected choices...)
    3. Re:Er by ucahg · · Score: 2, Funny

      Ruby on Rails is a fantastic new software-only method of transferring precious stones between countries, states, provinces, cities, and territories via train. .. .. ..

      Or you could just go to the ruby-on-rails website instead of asking for some random's opinion on slashdot.

    4. Re:Er by Btarlinian · · Score: 3, Informative

      Excuse me for sounding dumb, but what is Ruby on Rails? I've heard a lot about it recently, but haven't the slightest clue what it is. A little bit of background would be most appreciated.

      Ruby on Rails is a web development framework. It provides a library for Ruby so it can be used with web development allowing it to be used in applications normally reserved for other languages.



      Slashdot's big on this kind of stuff today. First the Java/everything else flamewar and now this (admittedly no flamewar.)

    5. Re:Er by noamsml · · Score: 2, Informative

      Ruby on Rails is a web application delvelopement framework built with Ruby. It includes a set of tools to direct and interpert URLs in a smart way, a bunch of database libraries making database backed apps really easy to make, and a bunch of misc tools that help web developers around stuff.

    6. Re:Er by Fishstick · · Score: 1

      "Ruby on Rails is an open-source web framework that's optimized for programmer happiness and sustainable productivity. It lets you write beautiful code by favoring convention over configuration."

      so, it's mainly for giving the coder his jollies, what?

      --

      There is much cruelty in the universe, John.
      Yeah, we seem to have the tour map.

    7. Re:Er by concept10 · · Score: 0

      It could possibly turn your site http://www.rabbitears.info/ into a web2.0 application with fancy ajax and sociable, tag-gable rabbit ears.

    8. Re:Er by GoofyBoy · · Score: 1

      Its the next thing you put on your resume claiming that you have 5+ years experience in.

      --
      The surprise isn't how often we make bad choices; the surprise is how seldom they defeat us.
    9. Re:Er by TangoCharlie · · Score: 1

      Although I did RTFA, I didn't proceed to browse around the rest of the site. It would appear that neither the /. article nor TFA actually said what Ruby On Rails was. This is not the first time I've come across this on /. Here's what I know.... Ruby is a programming language. Rails are what trains run on. When things go wrong, things are said to have "gone off the rails".... so is "Ruby on Rails" a programming language which hasn't gone wrong? Alternatively, it's a programming language which should be hung up in a wardrobe (closet)?

      I wish the submitters to /. would put a bit more effort into thier posts. Sometimes /. looks like it's a bit like a newspaper with nothing except with all the artcles missing... that must be a copy editors' wet dream! ?

      --
      return 0; }
    10. Re:Er by byolinux · · Score: 1

      It's not an application server though... It's a way of making Ruby apps quickly, and it does a lot of stuff for you, but you can override a lot of it.

      I've come at it from Zope/Plone, and I really really love it... it's good to just *see* stuff happen, without having to feel like an idiot.

    11. Re:Er by bhirsch · · Score: 1

      I suppose it is somewhere in between a stand-alone framework and application server...

  5. Who cares? by Anonymous Coward · · Score: 0

    Really? Everyone and their mother is going to have a fullstack framework and Ruby will just be "Ruby" again and have to compete on the merits of the language itself and that is where is it shakey (although Ruby 2.0 is supposed to alleviate some of the current aches and pains).

    1. Re:Who cares? by RegularFry · · Score: 1

      Got any specifics there, pardner?

      --
      Reality is the ultimate Rorschach.
    2. Re:Who cares? by Anonymous Coward · · Score: 0

      Specifics on the problems? They are well known. Threading sucks as does performance on Windows. Matz even did a presentation on what he knows to be bad but hopefully will be fixed in R2.

  6. Watch this video by ravenspear · · Score: 4, Informative

    This is a 15 min presentation someone did setting up a weblog using it. I think this example better explains it than most descriptions I've read.

    1. Re:Watch this video by Anonymous Coward · · Score: 0

      GP asked what it is. Parent posts a link to a fscking video and gets modded informative? All he did was tell us there's a video of someone using it to set up a weblog. I don't watch web videos.

      From this I'm left to conclude that it's a parody on "bloggers". ;-) I don't need a freaking video to know bloggers are idiots. Argh. I used that word twice. *bang**head**on**desk*

      Is there anything else worth mentioning about it, besides that it's useless?

    2. Re:Watch this video by Anonymous Coward · · Score: 0

      why always a blog?. why not a pet store?

    3. Re:Watch this video by Matt+Perry · · Score: 3, Interesting

      Since the web site is slashdotted (and the video too) could you explain what it is and why someone would want to use it?

      --
      Slashdot: Failed Car Analogies. Amateur Lawyering. Anecdote Battles.
    4. Re:Watch this video by bigbadunix · · Score: 1

      You'd want to use it if you want to code webapps using a "pure" and "true" MVC approach.

      The extras that people are talking about, scaffolding, and db abstraction are really secondary. One of the few real frameworks that I've worked with that make the MVC approach clean and elegant.

      As with any platform or framework...use it if it helps your project and is the right choice for the job. If it's not, don't use it, and shaddup about it.

      Once the slashdot effect if over, check it out. Doesn't solve all of my project needs, but for some of the stuff I work on, it fits quite nicely. Eventually, all my ugly and obfuscated PHP code will be ported over to a clean, elegant, and 'true' MVC approach.

      --

      The older I get, the less I like everyone else.
    5. Re:Watch this video by chris_eineke · · Score: 2, Funny

      Okay now. That were 120 characters.

      Seriously, would you rather type 120 characters than punching in CTRL+T TAB r u b y SPACE o n SPACE r a i l s ENTER TAB*17 ENTER? That's only 33 key presses and at the end you'll know what RoR is.

      Don't tell me you're still sitting on you chair wondering. Gee.

      --
      "All you have to do is be fragile and grateful. So stay the underdog." Chuck Palahniuk, Choke
    6. Re:Watch this video by Anonymous Coward · · Score: 0

      Maybe there is an obvious reason for this, but why does the ROR site only have the videos in the Mactintosh(Quicktime/.mov) format. Sure I can download quicktime as an adapter to let me view them, but if they are going to have a mainly os specific video format, why don't they have them as .wmv files, as 90% percent of pc users use Windows?

      I would prefer flash myself, or .mpeg

      Note:
      yes I know it is possible to make a .mov video on a pc, but most people don't.

      I've noticed the same thing with the Turbogears videos. It is an extreme inconvenience to me, because Quicktime always takes over all my formats. I will tell it in the install to not play anything but .mov files. Then the next time I play a .mov file, it associates itself with all media files again. I consider both realplayer and QuickTime to be spyware(in terms of anoyance factor).

    7. Re:Watch this video by Matt+Perry · · Score: 1

      Typing 120 characters is easy. Devoting my attention to figuring out what a submitter was talking about while the site he was linking to was inaccessible takes far more work. No thanks. Not interesting in playing researcher.

      --
      Slashdot: Failed Car Analogies. Amateur Lawyering. Anecdote Battles.
  7. When? by E+IS+mC(Square) · · Score: 3, Interesting

    Agree that Ruby on Rails has got some traction. But when would it get enough traction to be used as a standard framework for web apps at enterprise level?

    I am working in tech division of a financial firm, and I put question to our big app dev group if anybody had worked on RoR for a project - and most people had no idea what I was talking about.

    Please note that right now almost everybody in the firm uses java/j2ee - for everything - even for batch processing which can be easily done with simple perl scripts!

    1. Re:When? by Potato+Battery · · Score: 1

      Might be a bit of a wait for enterprise-level implementation, unless your organization is a bold one (and it kind of sounds like it might not be). I think the "mostly" part of the phrase being quoted is not going to inspire your execs to jump in with both feet.

      Probably, there will be a period while monkeys like me stick our forks in the sockets, leading the RoR Dev group/37Signals to either develop monkey-proof sockets, or lots of best practices to proliferate so that non-monkeys can learn from our mistakes.

      Better yet, do some monkeying in your spare time and join the fun. Really, here's a fork!

    2. Re:When? by killjoe · · Score: 1

      Given the conservative nature of most "enterprises" I'd say it will take another year or two. Look how long it took them go from COBOL to Java.

      --
      evil is as evil does
    3. Re:When? by w42w42 · · Score: 3, Informative

      If you have to use Java, a copy-cat framework for Java is Trails. The linked articles make it look pretty impressive.

      Another relatively unknown java framework I've flirted with very recently is Stripes. It's claim to fame is that its configuration is annotation based. Dev consists of the view and action, no worrying about an xml file to sync between the two.

    4. Re:When? by dsci · · Score: 1

      But when would it get enough traction to be used as a standard framework for web apps at enterprise level?

      The real answer to this is "when people start using it."

      I assume by traction, you mean a large user base so there is a track record of performance/stability. It seems like a chicken/egg type of question: When will enough people use it for people to feel safe using it?

      I say if it meets your needs better than another set-up, use it. And before I get a bunch of drones saying "but the boss has to like it," I'll point out that at my company, I am the boss. I don't like to micromanage the tools my folks use to get their jobs done. But hey, that's just me.

      --
      Computational Chemistry products and services.
    5. Re:When? by kfg · · Score: 1

      . . .even for batch processing which can be easily done with simple perl scripts!

      That's silly. That's what Excel is for.

      KFG

    6. Re:When? by julioody · · Score: 1

      This is the sort of stuff I used to hear from my ex-boss (a systems analyst with no clue on anything really technical).

      He also used to say "hey, this PostgreSQL/MySQL/(any free SGDB) thing is shit! The only real DB is Oracle!".

      Just ask "is it ready for the enteprise?" when anything comes out and you'll have a whole lot of mumbo jumbo reasons to say that language XYZ or operating system won't work in large deployments. =)

    7. Re:When? by Saint+V+Flux · · Score: 1

      Good point. I have a feeling that Ruby will be a few years off from being well known enough for companies to start adopting it. One of my professors this semester made us do a project in Ruby just so we could see what it was like. It's pretty cool, but the IDE's still have a way to go before they're as useful as IDE's for other languages. The main reason behind that is that up until a few years ago Ruby was only used as a scripting language, while now it's starting to become used as a regular OO language (everything in Ruby is an object.....primitives don't exist at all). So, I'd say once the community that Ruby already has improves their IDE's it'll help Ruby take off.

    8. Re:When? by Anonymous Coward · · Score: 0

      From what I hear MySQL is not something you want to use in large mission critical enviroments.

    9. Re:When? by Anonymous Coward · · Score: 0
      But when would it get enough traction to be used as a standard framework for web apps at enterprise level?

      See, I love it when people start to say things like "It's not enterprise ready!" - Enterprises suck when it comes to sharp new technology. Yes, they're all using perl and Java *now*, but let's face it - those technologies are all nineties. We've learned from them and are doing things better, faster, cleaner these days.

      The framework simply isn't designed to meet 'Enterprise Requirements' (whatever those happen to be at any given time) - it's designed to 'Get Work Done'. Enterprise will start using Rails-like tech when we're already coding on HyperRails in 3 or 4 years time.

      (I appreciate that you're working at a large firm and have to fight with the established culture if you want to bring in new tech - scrounge the rubyonrails ML archives for some tips..)

    10. Re:When? by Anonymous Coward · · Score: 0
      Nobody's heard of it either, but look at SAND for your app. It's a Java-based solution for enterprise app development based around code generation and a bit of predefined structure (the Structs And Nodes part). The code generators do all the grunt work, from setting up the database, writing the persistence code, writing the serialization and messaging code, writing a servlet-based UI, to writing all the configuration and control code you need. One thing that's different is that the generators are included in the build process, so they run automatically whenever you change a data definition. SAND has pretty well solved the problem of partitioning generated and hand-coded stuff as well - no weird "do not edit below this line" delimiters in the generated files or anything like that.

      It's incredibly powerful - when used on a medium-sized enterprise trading system I've seen the generators build over 500klines of code that would otherwise have to be written by hand. You can plug in new generators to generate new interfaces, such as a Swing UI or a FIX adapter.

  8. What Ruby on Rails is ... by Anonymous Coward · · Score: 2, Funny

    It's a new kind of digital "red" cocaine, made by processing coca leaves with iron phosphate and coating the result with a light silicone mist on which nano-transistors can be printed. The resulting product produces, when smoked or inhaled -- hence the "rails" component of the name -- a new style of e-high, where you're able to either interface hallucinogenic side effects with your iTunes graphical output, or you can join any IP-based E-HI network and select topics for your stoned brain to mull over. Watch out for the latter because, dude, the term "flame" takes on a *whole* new meaning.

    Anyway, go to http://www.rubyonrails.org/ and see if you want to take part. It's amazing, and you'll definitely want to get in on it before the Bush administration starts taxing it or something ...

  9. compatibility by Douglas+Simmons · · Score: 3, Interesting

    I'd figuratively pee on my copy of Macromedia Flash if I knew a Blender 3D plugin had proliferated widely -- meaning if IE bundled it. Is this language/framework's new thinking done on the server side and to the clients it'd be business as usual, great, I'll put down my php book. What's the deal in this regard?

    1. Re:compatibility by Anonymous Coward · · Score: 0

      It uses AJAX to do server side and client side logic. I don't know about 3D graphics, but it should be able to do the 2D stuff like Google Maps does.

    2. Re:compatibility by Anonymous Coward · · Score: 0

      Rails is server-side stuff. There's AJAX support, but using it is optional.

      And, for the love of god, switch to postgres/sqlite3/whatever if you're currently using the php+mysql combo.

  10. A better solution than PHP. by CyricZ · · Score: 3, Interesting

    Ruby on Rails provides a far superior solution for web sites than PHP in many cases. It would be excellent if it ended up usurping PHP for most PHP-based sites.

    PHP's bad reputation with regards to its security is, unfortunately, harming the open source community. Managers who are considering switching to open source solutions are hearing about the security flaws in PHP, and mistakenly thinking that Apache, MySQL and Linux are insecure (due to the popular 'LAMP' association). Of course, that isn't the case by a long shot.

    Regardless of what people switch to, the main focus needs to be on moving away from PHP. Ruby on Rails provides a rapidly maturing alternative for building all sorts of web sites.

    --
    Cyric Zndovzny at your service.
    1. Re:A better solution than PHP. by 6*7 · · Score: 1

      Sure, after everyone switched to Ruby and OpenBSD, stupid programmers were prevented from create insecure code ever again and the world became a better place.

      BTW comparing a framework to a language is silly.

    2. Re:A better solution than PHP. by Anonymous Coward · · Score: 0

      Ruby has security through obscurity. Not the best security proposition

    3. Re:A better solution than PHP. by Anonymous Coward · · Score: 0

      WTF are you talking about? Last I checked Ruby had an ever more complex system than Perl's taint for security purposes, with multiple levels depending on how mistrustful of external data you want to be. It is leaps and bounds ahead of PHP.

    4. Re:A better solution than PHP. by Anonymous Coward · · Score: 0

      I'm sorry... every time I see your name, it's got a long, anti-PHP post attached to it. I have a really hard time buying into anything you say because your claims of insecurity in PHP are so general and derogatory. You assume that we all agree that PHP is insecure or that we're familiar with the many flaws.

      Flaws exist in every language. The vast majority of insecure web applications I've worked on, tested, or broken (usually by request of the owner) are due to bad programming - not because of a flaw in the language used to build it. I think that PHP would greatly benefit from an authoritative (here's an intro to securely programming in PHP) resource for new developers, as well as a conscious move to use more secure methods in the documentation.

      But considering the alternatives...

      Around here, people mock everything from ASP, .Net, ColdFusion, Java, to Perl. PHP has a lot going for it. Being experienced in all of the web languages I listed, PHP is one of my favorites. More than the language, PHP also bring a culture - people are willing to open their code and consider a better way. It's already got many of the functions that I've had to add to my library for other languages. There are classes and libraries I can find to easily accomplish what I need without having to write it again.

      I hate to rant like this, but I keep seeing anti-PHP posts and looking up to see your name on them. It's like you have something personal attached to this issue. It also reminds me a lot of the folks who argue that the web should be for presenting information, not for interactivity or applications.

    5. Re:A better solution than PHP. by CyricZ · · Score: 1

      I wish I could say I was joking. But I cannot. Indeed, if my claims regarding PHP's insecurity seem grandiose, it is because PHP is that severely lacking. It's no secret that it suffers from very dangerous security issues. Go do some research for yourself on the many problems it suffers from, since it seems you won't take my word for it.

      And yes, I am against insecure software such as PHP. But thankfully there are very good alternatives available. Ruby on Rails is one such alternative. I have no problem praising software that is well designed and well implemented. PHP is not such a piece of software.

      Perhaps you are not willing to admit that PHP is so severely flawed because, as you say in your post, "PHP is one of my favorites." Admitting that software you like has poor security could very well hurt one's ego.

      --
      Cyric Zndovzny at your service.
    6. Re:A better solution than PHP. by Anonymous Coward · · Score: 1, Informative

      Dear idiot,

      PHP is not insecure.

      Ruby on Rails is not proven secure.

      If Ruby on Rails gets popular, people will find security holes in it.

      There was a major security hole (undisclosed) in one of the web applications created by the company that pimps^H^H^H^H^H"sponsors" Ruby on Rails.

      Does that mean Ruby on Rails is insecure? No. But it goes to show that there is no inherent "security" in anything.

      It's the application, stupid.

    7. Re:A better solution than PHP. by j1ggl3x · · Score: 2, Insightful
      Ruby is a scripting language.
      PHP is a scripting language.

      Rails is a MVC framework built on Ruby.
      PHP is NOT a framework.

      If you feel like comparing/extolling the virtues of RoR compared to PHP, then try to at least be logical enough to compare RoR to a MVC framework built on PHP. There are several (though none as popular as RoR at the moment). Some are trying to imitate Struts and others trying to mimic RoR.

      In fact, Zend is quite aware of RoR's popularity is in the process of creating its own framework to compete: the Zend Framework.

    8. Re:A better solution than PHP. by Jack9 · · Score: 1

      I have a passing interest in Ruby, but haven't seen nor heard of anything that would lead me to believe that Ruby is signifigantly better than PHP. The RoR video I watched, twice, led me to believe that LAMPoR would probably be a good product on the market. Often you mention serious security issues, regarding PHP which you do not identify, specifically. Furthermore, you profess that PHP is "severely flawed". That catches my attention.

      I recognize your name from a number of insightful posts, so I ended up browsing the last couple postings you have committed to history (not a paying /. acct, I can only see the last 24). I quickly realized I cannot possibly divine your views without this gaudy request. To be honest, I have been a PHP developer for 7 years. I am very interested in hearing from you further on this topic, if you could be more informative. I have no particular allegiance to PHP, as I use ASP/ColdFusion/Java daily. I do admit I haven't given much credit to Ruby as "cutting edge", in web development.

      I apologize that I cannot send you a private message CyricZ. By posting I concede I am fanning the flames of those who are interested in making noise, and chance being ignored. Feel free to email me at jack9 at teacher com (throwaway addy)

      --

      Often wrong but never in doubt.
      I am Jack9.
      Everyone knows me.
    9. Re:A better solution than PHP. by Anonymous Coward · · Score: 0

      But then it would be referred to as LAMR...

    10. Re:A better solution than PHP. by ChetOS.net · · Score: 0

      You can't replace PHP with Ruby on Rails... LAMR doesn't spell anything!

      --
      "If God had intended us to walk he would not have invented roller skates." -- Willy Wonka
    11. Re:A better solution than PHP. by Daengbo · · Score: 1

      Since you can't see more than 24 of his postings, you will not see how CZ loves to fan flames with baseless charges, followed by relentless straw-man arguing and name-calling when presented with facts disputing his original claim. Although he may believe that he is just a retired man spending his time as he wishes, I classify most of his posts as trolls. I believe this so much that I'm willing to put my name on it.

  11. Commercial/Enterprise use? by feNIX77 · · Score: 4, Interesting

    I've heard plenty about RoR on Slashdot - but to be honest, thats about where it stops. Does anyone have any experience or views deploying a medium/high volume commercial or enterprise solution using this?

    I have yet to personally see RoR in either situation and I don't know anyone who has - I'm not knocking RoR, just curious how it's actually being used.

    1. Re:Commercial/Enterprise use? by CyricZ · · Score: 5, Informative

      There is a list of users at:

      http://www.rubyonrails.org/applications

      --
      Cyric Zndovzny at your service.
    2. Re:Commercial/Enterprise use? by Anonymous Coward · · Score: 0
    3. Re:Commercial/Enterprise use? by Anonymous Coward · · Score: 0

      I heard goatse.cx uses it!!!

    4. Re:Commercial/Enterprise use? by prockcore · · Score: 2, Informative

      Does anyone have any experience or views deploying a medium/high volume commercial or enterprise solution using this?

      I personally don't, but BaseCamp is written with RoR.. it's pretty high volume commercial site.

      Penny Arcade is now on RoR.

    5. Re:Commercial/Enterprise use? by aemadrid · · Score: 1

      I have spent the last three months rewriting/upgrading a sales force support application that involves 12 different websites sharing sessions/DB/etc. I must say it was a wonderful endeavor. Right now over 400 users are doing their daily tasks under that system. I personally think that is the definition of a medium enterprise solution.

      Hope it helps,

      AEM

    6. Re:Commercial/Enterprise use? by ArikTheRed · · Score: 2, Informative

      Penny Arcade (http://www.penny-arcade.com/ is arguably the highest-traffic site running on Rails. Its design is fairly simple, but it is at least a good example of the loads it can handle (hardware be as it may, scalable is scalable).

    7. Re:Commercial/Enterprise use? by Anonymous Coward · · Score: 2, Insightful

      That's not exactly a flattering list for something that has been available for a year or longer and has been constantly thrown in the faces of developers for that long.

      The funny thing is, all those applications look *exactly the same*, and have no functionality what-so-ever (with the exception of Odeo.)

      Wow, a bunch of <li>'s on a page. That's never been done before.

      You've posted about 50 times in this topic, all with an anti-PHP slant.

      Please, stop posting crap.

      You're not convincing anybody and you sound like an on-going advertisement.

      If Ruby on Rails was that great anyone who would have wanted to switch would have done so by now. It's been advertised enough. It doesn't need a cult-like following -- "use Ruby on Rails and you get to be one of the cool kids."

      Having used Ruby on Rails, I can tell you that it's really not worth the hype. It brings nothing new to the table, it doesn't really improve development times at all (if you, you know, actually try to implement something full-featured), and it's 50-100x+ slower than a comparable PHP or Java Servlet implementation.

      The reason Ruby on Rails is somewhat popular within the blogosphere is this: it allows designers with no programming knowledge to create something with relative ease. That's about it. This used to be the role of PHP, and outside the blogosphere, it still is.

      Oh, that, and (once again) the constant, tired, shameless promotion.

    8. Re:Commercial/Enterprise use? by Anonymous Coward · · Score: 0

      But wasn't BaseCamp created by the same people behind RoR? If so, the comparison is useless. In fact, I think RoR was extracted from BaseCamp it self. Of course it works with BaseCamp, it IS BaseCamp :-)

    9. Re:Commercial/Enterprise use? by Anonymous Coward · · Score: 0

      But how much of the page is based on cached content? I would think that most of the pages are cached and Ruby has little to do with it. How would RoR work if the pages were dynamic in nature and under high load? (not a rhetorical question btw)

    10. Re:Commercial/Enterprise use? by ezmobius · · Score: 1

      I have been using rails for a little over a year, shortly after it came out. This website that is featured on the example applications page on the RoR site was built by me http://yakimaherald.com. And I can assure you it is much much more than just some li tags.

      With all the power that the rails framework gives you, you can build very big sites with a smaller team. this saves on development costs and on your sanity. I wrote the Yakima Herald website by myself in 2.5 months. Can you build something with this much dynamic data with PHP in that time frame with PHP? i think not. in fact I know not because the old website was in PHP. It was 5500 lines of php code. The new site is 2200 lines of ruby/rails code including comprehensive unit and functional tests. Plus it has like 4 times the functionality of the old php site.

      That site pulls data from 4 distinct sources.
      1. a local postgresql db for CMS and admin functionality.
      2. A proprietary BaseEdit NewsRoom Database
      3. AP news wire xml feeds that come in base64 encoded and get a major cleanup and reformat before getting displayed.
      4. And feeds from the Seattle Times(our parent company)

      It does all that and is still very fast. Check it out. You will see that it is more performant then most php applications of its calibre.
      I am not a ruby/rails cheerleader. i'm just a 6 year veteran PHP programmer that has found a better tool and decided to be pragmatic about it.
      You can find a complete write up of the dev and delpoy process for the Yakima Herald site here on my blog:
      YakimaHerald.com Write Up

      If you are not interested in new exciting tools that help you get your job done *much* quicker then please don't try rails and stay with your status quo. I will be here getting the new exciting jobs using a technology that has brought the fun back into web development for me and many others.

    11. Re:Commercial/Enterprise use? by nikster · · Score: 1

      Yes, I have implemented a commercial app using RoR.

      It goes like this:

      1) RoR is WONDERFUL
      2) RoR takes a heck of a lot more effort than those blog-in-5-minutes kind of videos make you believe. It takes deep understanding.
      3) RoR is WONDERFUL

      Number 2 is where I started struggling. I had to learn - the hard way - that in order to use Ruby on Rails properly, you have to understand what's behind it. You have to learn Ruby which pretty much means you have to purchase the pragmatic programmer's book. You also have to learn RoR and purchase the other pragmatic programmer's book, Agile Web Development with Rails.

      Both books contain crucial information that is not easily found on the web or in the RoR mailing list.

      The bottom line is then that RoR is indeed the bee's knees, better than Java/PHP or anything else I have used and better by a very large margin. Going back to Java after Ruby development is a huge letdown - I didn't know how bad Java really was before I learned Ruby.

      I learned Ruby and RoR and finished my project on time. It's well worth the investment. I am also planning to switch all my development over to Ruby. Java is on its way out.

  12. Rails Day by coldtone · · Score: 1

    Will there be another railsday, like the one they had last June?

  13. Jebus, has the poster or mod ever used rails?????? by porkThreeWays · · Score: 3, Insightful

    The point of rails is to have sensible defaults that work most of the time. Web apps share A LOT of commonality. The idea is to take out repitiveness as much as possible. This is done with sensible defaults. If these aren't good for you, they can be changed. But it's meant to have reasonable defaults for most, unlike certain web languages that make you start from scratch every time.

    --
    If an officer ever threatens to taze you, say you have a pacemaker.
  14. Ruby on Rails more "secure" than PHP? by Anonymous Coward · · Score: 0

    Was Ruby on Rails designed at all with the intention of being more secure / fixing those problems commonly associated with PHP?

    1. Re:Ruby on Rails more "secure" than PHP? by CyricZ · · Score: 3, Informative

      Not directly.

      However, many of the problems associated with PHP are just due to flaws in the design of PHP. It's more a case of PHP being worse than it should be, rather than Ruby on Rails being extremely secure.

      That said, most Ruby on Rails-related code is written by far more experienced developers. As would be expected, the quality of the code is higher, and the likelyhood of security issues is vastly reduced. The trend in the Ruby community to heavily use unit testing also helps ensure that quality is a paramount consideration.

      --
      Cyric Zndovzny at your service.
    2. Re:Ruby on Rails more "secure" than PHP? by Tiberius_Fel · · Score: 2, Insightful

      PHP appears to be designed for simplicity and ease of use above all else. One thing that gets me is that its types are completely fluid... And you can set a variable to whatever you want, as the user, even, by something like file.php?id=20. But PHP isn't meant to be secure. That's why PHP isn't a good choice for things where security matters.

      I'm a believer in "the right tool for the right job", and PHP isn't the right tool for the security job. But if you're just developing something for your personal amusement, or maybe for your club website, then PHP's good. So I don't think of it as design flaws so much as conscious choices to make it easier rather than more secure. :-)

      --
      Join the Empire! http://www.empirereborn.net/
    3. Re:Ruby on Rails more "secure" than PHP? by lux55 · · Score: 2, Insightful

      Technically, variables in most scripting languages are just as "fluid" in their types as PHP is, Ruby included. This is only seen as a drawback by people coming from the Java/C world (because they haven't seen the light just yet). It's actually one of the main reasons Ruby, PHP, Perl, etc. are so much more efficient to program in than Java.

      PHP's security in version 3 was "that's the job of the programmer" which is fine in itself (Perl's the same way), but it's the complete wrong approach for a language originally designed to be beginner-friendly, which PHP was. But PHP's goals and direction have changed quite a bit over the years, and it took some time to iron out the security changes in PHP 4, but by 4.3 which has been out for years now, they did make the transition from insecure defaults to secure ones. PHP is now at 5.1 and they're working on 6, and security is definitely a much higher priority. Espcially with folks like IBM, Oracle, and Yahoo! backing it now, they've put a lot more thought into security (finally). There are also many articles and blogs these days about secure coding practices in PHP. The PHP developers are growing up, I guess you could say.

      To be honest, Ruby is ten times the language PHP is in terms of sheer elegance of design (I fell in love with it at first sight, looong before Rails), and I can't defend PHP in that respect except to say that it does achieve its original design goals. But to be fair as well, you really can't compare the PHP of today to the PHP most people describe. It's just like someone right now saying "MySQL doesn't even have support for transactions, it's a kid's toy!" when it's had that for several years already.

    4. Re:Ruby on Rails more "secure" than PHP? by Anonymous Coward · · Score: 0

      You are, once again, full of shit.

      Please state, in detail, the flaws in the design of PHP.

      And no, it isn't fact that most Ruby on Rails-related code is written by far more experienced developers.

      Please, once again, cite your examples.

      Oh, and what percentage of those unit tests are security-related?

      You're yet another mindless RoR fanboy, spouting the same old tired propoganda that you've been fed, and you're being called up on it in every thread that you start or reply to. I don't want to know who you work for (and I'm guessing it's soemone with a stake in RoR's future.)

      State facts, back them up with technical details. Or else, please, shut the fuck up.

      Fucking wankosphere "developers".

    5. Re:Ruby on Rails more "secure" than PHP? by Anonymous Coward · · Score: 0

      This is how I imagine you at the store:

      Cashier: That'll be $2, please.
      You: Prove it!
      Cashier: What?!
      You: How do I know you didn't mess with the price tag? You must prove it costs $2.
      Cashier: See? When i drag the thingy over the barcode the display says 2$. Happy now?
      You: How do I know you didn't mess with the machine then? Prove it.
      Cashier: *reaches for baseball bat underneath the counter*

      My poin is - No, YOU PROVE IT! If you are so sure he's full of shit then pull some facts out of your lazy ass rather then speaking with it.

      Dimwit.

  15. New Look? by bullitB · · Score: 4, Funny

    The Ruby on Rails website has also been given a new look.

    Would that be the "Service Unable: Damn You Slashdot" look?

  16. Heh. Right. by everphilski · · Score: 1

    Few problems with that. First one is momentum. PHP has a large userbase and is currently on version 5.1.1 ... Ruby just announced 1.0. Version numbers don't mean squat except that just hitting 1.0 versus hitting a few version numbers *does* mean something.

    And I hate the people who talk about the "Bad reputation with respect to security." I can write bad code in Perl, Javascript, or C++ if I want. Repeat after me folks, the security of the code is only as good as the competence of the programmer. PHP offers mechanisms and defaults that encourage good coding practices. Pick a tool and code with good programming practices. Ruby on rails won't make your code unbreakable. PHP won't make your code broken.

    -everphilski-

    1. Re:Heh. Right. by Anonymous Coward · · Score: 0
      Ruby just announced 1.0

      What?
      $ ruby -v
      ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0]
      Ruby 2.0 isn't far away.
    2. Re:Heh. Right. by Anonymous Coward · · Score: 0

      Actually...Ruby is currently at version 1.8.3, "Ruby on Rails" is what just reached 1.0. PHP and Ruby both had their first public release in 1995, so it's a bit of a moot point anyway.

    3. Re:Heh. Right. by Anonymous Coward · · Score: 0

      The Ruby language has been around since the mid 1990's. The Ruby on Rails framework, on the other hand, is new, and is what the parent is referring to.

    4. Re:Heh. Right. by Anonymous Coward · · Score: 0

      PHP has a large userbase and is currently on version 5.1.1 ... Ruby just announced 1.0.

      Well, all the thread here is "wrong" since we're talking about frameworks and languages as there were no difference between them. But Ruby is at version 1.8. Also, while object orientation was added to PHP starting from version 5, Ruby was born as an OO environment. So, even if I am not questioning PHP security vs. Rails, version numbers are misleading.

  17. Their site is working fine. by CyricZ · · Score: 1

    There is no need to spread disinformation. Their site is working just fine. I even cleared my cache, just to be sure that I'm fetching a new copy.

    --
    Cyric Zndovzny at your service.
    1. Re:Their site is working fine. by Thundersnatch · · Score: 1

      Not so fine... it's been loading for the last 60 seconds from my perspective.

  18. Perl people, check out Catalyst by kstumpf · · Score: 5, Informative

    This is an MVC framework for Perl that resembles RoR in a lot of ways.

    http://catalyst.perl.org/

    It's very nice so far, especially the controller portion. There's lots of addons and plugins for it, all of which are entirely optional. It's actually very open-ended and easy to extend.

    I use the controller classes extensively, but write my own model, view, and support classes. Catalyst culture seems to encourage Class::DBI parentage as a base model class, but it's simple to roll your own (I hate CDBI, so I based mine on Ima::DBI instead). Your classes can work independently of Catalyst... it imposes no restrictions or inheritance constraints on you. Worth checking out.

    1. Re:Perl people, check out Catalyst by CyricZ · · Score: 2, Interesting

      A lot of people have begun moving away from Perl due to the slow development of Perl 6. Many are moving towards Ruby, which has drawn features and functionality quite well from Perl, and is currently moving at a quicker pace.

      Now, that's not to say that Perl 6 may not encounter some degree of success in the future. Perl will most likely always have its users.

      What the Perl 6 community might want to focus on now is developing the technology that will come after Ruby on Rails. Getting a step ahead in the web development arena may help bring users back to Perl from Ruby, Python and other languages and frameworks.

      --
      Cyric Zndovzny at your service.
    2. Re:Perl people, check out Catalyst by kstumpf · · Score: 1

      Try something for me. Go to a job search engine and search for "ruby". Now try the same thing for "perl". I'll hedge my bets on perl for now.

    3. Re:Perl people, check out Catalyst by CyricZ · · Score: 1

      You obviously missed the point. I am talking about Perl 6. I'm not talking about Perl 5 and earlier.

      Of course you'll find more information pertaining to Perl via a search engine. Then again, recall that Perl is older than Ruby, and hit widespread use before Ruby. Your findings are not surprising at all.

      --
      Cyric Zndovzny at your service.
    4. Re:Perl people, check out Catalyst by codyk · · Score: 1
      Funny you mention that - just today I (tried to) install Catalyst. 3 hours of banging on CPAN, circular dependencies, WWW::Mechanize failing tests . . .

      . . . so I noticed that RoR had hit 1.0, decided to install & play with it instead. gem install rails --include-dependencies, 10 minutes, up and running. I like perl, dont get me wrong, but the catalyst folks need to work on the installation issues . . .

    5. Re:Perl people, check out Catalyst by Anonymous Coward · · Score: 2, Informative

      Actually, more and more people are moving to using DBIx::Class, which is both substantially faster and ridiculously more powerful than Class::DBI. Even has a maintainer who hangs out on the #catalyst and #dbix-class irc.perl.org channels answering questions from users ...

    6. Re:Perl people, check out Catalyst by emdee · · Score: 1
      Funny you mention that - just today I (tried to) install Catalyst. 3 hours of banging on CPAN, circular dependencies, WWW::Mechanize failing tests . . .
      Funny you should mention that... Catalyst doesn't have a WWW::Mechanize dependency.
    7. Re:Perl people, check out Catalyst by codyk · · Score: 1
      Wow, I guess I'm just hallucinating the following error message then:
      [ERROR] Failed to install 'Test::WWW::Mechanize' as prerequisite for 'Test::WWW::Mechanize::Catalyst' [ERROR] Unable to satisfy prerequisites for 'Test::WWW::Mechanize::Catalyst' -- aborting install [ERROR] Unable to create a new distribution object for 'Test::WWW::Mechanize::Catalyst' -- cannot continue
      ...after doing perl -MCPAN -e 'install Task::Catalyst' as suggested by the Catalyst intro docs, and choosing what seemed to be sensible options for installing optional packages including testing (included in ruby / rails by default).
    8. Re:Perl people, check out Catalyst by mini+me · · Score: 2, Funny
      Okay, I did just that.

      The results:
      Perl - 9 jobs
      Ruby - 10 jobs + additional pages that I didn't bother counting
      Then again, it was a Ruby job site...
    9. Re:Perl people, check out Catalyst by Anonymous Coward · · Score: 0

      Me too. Couldn't install Catalyst because (different, can't remember) circular dependencies.
      Used cpan to install cpanplus, and cpanplus to install catalyst. So it is a problem (cpan or catalyst?)but can be solved.

    10. Re:Perl people, check out Catalyst by Anonymous Coward · · Score: 0

      I haven't tried Catalyst yet. My last Perl project was based on Apache::ASP. I found it very easy to work with and also very fast since it uses mod_perl. I will have to check out Catalyst next.

      BTW: I used Apache::ASP 2.57. I could not get 2.59 to work with stock Redhat ES 3.

    11. Re:Perl people, check out Catalyst by Anonymous Coward · · Score: 0

      Interesting. Though that does sort of bode well for Perl being that it is supposed to be a Ruby site. It goes to show that the fears and flame wars regarding languages are pretty moot. If you have a striong background in one langauge, it will not hurt you in moving to another. If you have a business hunch that Ruby will be more employable in the future, by all means learn it. This does not mean you have to feel deprecated programming something else to make a living.

  19. You speak of momentum. by CyricZ · · Score: 4, Insightful

    Only an individual new to the computing industry would put much faith in "momentum".

    I've been around it for decades. I remember when Honeywell and Data General had "momentum". I'd be surprised if you've ever even seen a picture of their hardware.

    A bit later there was CP/M. And Apple. Apple had much "momentum" in the 1980s, only to almost hit rock bottom. At least they've been able to pick themselves up again.

    There was even talk this morning about Java losing its "momentum".

    Ruby on Rails could very well overtake PHP quite quickly.

    While some onus does rest on developers to develop quality code, that does not mean that the language and any implementations should not take steps to limit the ability of the programmer to write faulty code.

    That holds especially true for languages that are used in hostile environments, such as the WWW. Considering that Web development is touted as PHP's strong point, one would think it would have excellent security. Of course, we know from experience that that is not the case.

    Ruby won't necessarily make your code perfect. But Ruby, along with sound development techniques (unit testing, for example), will result in very secure applications. The use of PHP, on the other hand, is basically an invitation for security issues. It is not a well designed language, and it is not well implemented.

    --
    Cyric Zndovzny at your service.
    1. Re:You speak of momentum. by LordLucless · · Score: 1

      What aspects of PHP do you think increase security risks, specifically? The major one I know is was the stupid "register_global" idea, which is easily fixed - it's turned off on every host I run.

      Apart from that, what security flaws do you have? SQL-Injection attacks, sure, but then, so does every other language that interacts directly with a database. There are abstraction layers around to avoid that, if you don't trust yourself to examine your incoming data properly.

      I agree that PHP is a poorly designed language - it started off as a pet project and grew in a fairly ad-hoc manner. But using PHP doesn't magically open any attack vectors that were not there previously (with the exception of the afore-mentioned register_globals). What would you do to exploit a PHP site that you couldn't do to exploit, say, a Perl site?

      --
      Just because you're paranoid doesn't mean there isn't an invisible demon about to eat your face
    2. Re:You speak of momentum. by Anonymous Coward · · Score: 0

      As was said earlier, the code written is only as secure as the developer makes it. Any idiot can write code in any language; whether it's secure or not is up to them. If one can't write secure code, he or she needs to find something else to do; not everyone needs the ability to be a programmer. This example is certainly extreme, but it illustrates my point: can just anyone successfully perform open-heart surgery on someone? No. Can just anyone perform open-heart surgery on someone? Yes, although chances are they're going to fuck it up. Same deal.

    3. Re:You speak of momentum. by LordLucless · · Score: 1

      The great-grandparent specifically said that PHP had poor security:

      The use of PHP, on the other hand, is basically an invitation for security issues.

      I want to know, what, specifically, he finds wrong with PHP in terms of security. Saying "it's so insecure, everyone knows that" doesn't prove anything, it just perpetuates a meme (that may or may not be correct). What I want is some hard and fast problems that I can check out and evaluate.

      --
      Just because you're paranoid doesn't mean there isn't an invisible demon about to eat your face
    4. Re:You speak of momentum. by abigor · · Score: 1

      http://secunia.com/advisories/14792/

      PHP 4.3.10 is still used all over the place.

    5. Re:You speak of momentum. by Anonymous Coward · · Score: 0

      The use of PHP, on the other hand, is basically an invitation for security issues. It is not a well designed language, and it is not well implemented.

      Thank you. At least someone on slashdot has some sense.

    6. Re:You speak of momentum. by senzafine · · Score: 1

      PHP 4.4.1 is out...actually...PHP 5.1 is out. A site running perl 3 doesn't constitute saying that perl is insecure.

      I'm not stating that PHP is ultra-secure. But it's in the hands of the developer. If you can keep your server up to date and you have good developers then you don't have much to worry about.

      --
      Better than Flickr - Manage, Share, Archive
    7. Re:You speak of momentum. by everphilski · · Score: 1

      Only an individual new to the computing industry would put much faith in "momentum".

      I'm not saying that PHP will be the be-all and end-all of websites. All I'm saying is that when you have a userbase... people are, by nature, lazy. They will maintain and update their code rather than upgrade it. Software is not hardware. Your "illustration" fails because hardware needs replacement whereas code needs maintenance.

      I'd be surprised if you've ever even seen a picture of their hardware.

      My father owned a Data General "luggable". I learned basic on it. I also built a robot out of it in grade school. Watch what you say it might come back to bite you.

      -everphilski-

  20. There site is loading very quickly for me. by CyricZ · · Score: 1

    That could be a problem with your Firefox or Internet Explorer installation.

    I'm using Konqueror, and it takes at most two seconds for their site to load. I cleared and then disabled the browser cache just to ensure that wasn't getting involved.

    I just tried again a few seconds ago, and it's still very responsive, considering the load it is most likely under right now. Pages are loading in 2 seconds, if even that.

    Remember, Ruby on Rails is designed to be very efficient. It's a solid piece of software used by many large users who put quite a load on it.

    --
    Cyric Zndovzny at your service.
    1. Re:There site is loading very quickly for me. by Anonymous Coward · · Score: 0

      Get your mouth out of Ruby's vagina for ten seconds and stop being a fucking zealot! Their site is Slashdotted!!! *GASP* It took me two minutes to load as well. Now go cry like a little girl for a couple of seconds and everything will be okay.

    2. Re:There site is loading very quickly for me. by Thundersnatch · · Score: 1

      Riight. A "browser problem". With just that site, just right now.

      So anyway, it could be a problem with my cable provider. But then again, I just tried to load it remotely from a machine in Qwest's big midwest hosting facility, right on Qwest's backbone and the main page is taking forever to load.

      I think perhaps you have a transparent cache upstream from you, or you have the images cached some other way. I can get the HTML-only in about 15 seconds with wget, but no images or style sheets.

      It doesn't appear to be a bandwidth issue, as there is about a 8 second delay before the response from the server, and the HTML downloads at 150 Kbps after that. I think perhaps all the bytecode interpretation and those non-OS-native threads are having some sort of negative performance effect.

    3. Re:There site is loading very quickly for me. by Anonymous Coward · · Score: 0

      CyricZ is a KDE troll.

    4. Re:There site is loading very quickly for me. by Anonymous Coward · · Score: 0

      Good luck getting gay boy Ruby zealot (CyricZ) to believe that his precious Ruby-on-rails could ever succumb to the Slashdot effect. I fucking hate zealots!

    5. Re:There site is loading very quickly for me. by Anonymous Coward · · Score: 0

      Shame most of his posts get modded up, instead of down and the fact the most moderators haven't read the guidelines. shame.

      recruits.

    6. Re:There site is loading very quickly for me. by Anonymous Coward · · Score: 0

      Yeah, he's a troll, but he's good at it. I guess a good troll outwits the average moderator more often than not.

    7. Re:There site is loading very quickly for me. by Anonymous Coward · · Score: 0

      Funny that he bashes KDE --as well as quite of bit of decent open-source software-- so much yet in an ironic twist still claims to use it.

      Secretly I believe it (CyricZ) still uses WinMe, stuck at home with adoptive-parents and sucking up all our taxes *tut*

      femurs.

    8. Re:There site is loading very quickly for me. by Anonymous Coward · · Score: 0

      I guess we all have to be good at something :)

      objector.

  21. Give ruby a quick try first by mixonic · · Score: 5, Informative

    I heartily suggest that the curious among you check out http://tryruby.hobix.com/. It's a great, quick interactive introduction to ruby. You can kick around the tires (so to speak) without needing to do anything more than visit the webpage. It's a great language with or without rails.

    Also a great example of Ajaxy goodness, not to buzzword it too much. It's written by the affluent and creative why. Check out his neat-o blog too: http://redhanded.hobix.com/

    -mix

    1. Re:Give ruby a quick try first by Matt+Perry · · Score: 2, Insightful
      I heartily suggest that the curious among you check out http://tryruby.hobix.com/
      That web page is neat but it's a perfect example of why I'm starting to dislike all this "AJAX" stuff. Nowhere in that tutorial is there any navigation to help me go back if I want to review something again. I hit the back button and it brought me back to your comment, not where I expected to be. I don't know how other people feel but in my opinion breaking the user's back button is the worst web UI mistake that you can make. The URL also never changes. I can't bookmark the tutorial and pick it up later from where I left off.

      AJAX is nice for doing things like google suggest or scrolling around google maps, but the moment I submit something, like hitting return on that site, my history should update and I should be on a new page. When I hit the back button I should be back where I just was. That's my expectation.

      I'm afraid of what's going to happen to web pages in the next few years. AJAX is something shiny and new that everyone wants to start using for the sake of using it without considering the expectations of usability that have been established by over a decade of browser use.

      Anyway, just my two cents, FWIW.

      --
      Slashdot: Failed Car Analogies. Amateur Lawyering. Anecdote Battles.
    2. Re:Give ruby a quick try first by DeafByBeheading · · Score: 2, Insightful

      Nice, but it's definitely geared to someone who's never written more than a couple dozen lines. This seems to be true of programming languages in general--no decent language overview available unless you're *really* starting from scratch... I learned Scheme and Java this way, and that was fine, but a few languages later now, it's getting old... I want more than a language reference but less than a thousand-page primer.

      --
      Telltale Games: Bone, Sam and Max
    3. Re:Give ruby a quick try first by teslatug · · Score: 1

      >> 2 + 2
      An error has occured. Try refreshing this page to reload your session. That's really useful. Anyone gotten this to work?
      That's really useful.

    4. Re:Give ruby a quick try first by mixonic · · Score: 1
      I hit the back button and it brought me back to your comment, not where I expected to be.

      Yeah. Back buttons are on the features list for web 2.1 :-(. I do think you can skip around chapters, I beleive it's described on the first page you arrive at (but maybe that was just on why's blog).

      But really, last time I saw this discussion this: http://map.search.ch/index.en.html was pointed out by one of the authors as an app that tried to use AJAX and keep the browser forward/back button concept functional. Try zooming and dragging the map around, you can still go back to previous states you had the map in. Google maps ain't everything :-), and we always have room to make things better.

      -mix
    5. Re:Give ruby a quick try first by Watts+Martin · · Score: 2, Informative

      While you're right, that tutorial is actually embedding a ruby interpreter on the web page. I don't think it's 'Ajax' that's as much at fault here as the fact that this is doing stupid web browser tricks that, in this case, just happen to be done with Ajax. :)

      IIRC, there's a tutorial out there somewhere telling developers how to make Ajax-happy applications that don't break the BACK button and are bookmarkable.

    6. Re:Give ruby a quick try first by Anonymous Coward · · Score: 1, Insightful

      ...the moment I submit something, like hitting return on that site, my history should update and I should be on a new page.

      There's no back button on a command line. Why should there be on a web page that emulates one?

    7. Re:Give ruby a quick try first by BioCS.Nerd · · Score: 2, Funny

      That is one of the coolest things I've ever seen in my life! Thanks for the link

    8. Re:Give ruby a quick try first by poulbailey · · Score: 1

      I think that's a cookie problem. I got that error a few times and letting cookies in made it work. Well-done tutorial.

    9. Re:Give ruby a quick try first by Curly · · Score: 1

      > You can kick around the tires (so to speak)

      Thank you for that clarification: I thought Ruby was a physical thing that actually had tires.

      Which is confusing, because it apparently rides on rails.

    10. Re:Give ruby a quick try first by booch · · Score: 1

      Honestly, I didn't find that I needed to learn much Ruby to get started using Rails.

      --
      Software sucks. Open Source sucks less.
  22. Why rails annoys me... by porkThreeWays · · Score: 5, Interesting

    I love Ruby. Once I discovered Ruby, it's become my prefered general purpose language. I love the fact it's a pure object oriented language. I love it's consisiveness. I love it's lack of "funny" characters (for the most part).

    I freakin' can't stand using Rails. I remember getting very excited about it when I first discovered it. Watching apps being developed in 15 minutes. I read all the tutorials. I even bought the book from pragmatic programmer. I studied and wrote programs for 3 weeks. And I just could never get into it. On so many occasions I just felt cheated. It was all valid ruby code, but it just didn't seem in the spirit of ruby. My namespace was cluttered with a million methods. The names of which didn't seem logical and_reminded_me_of_php_function_names_rather_than_ an_object_oriented_language (anyone who's farmiliar with rails will understand the underscores). During those 3 weeks I just couldn't enjoy programming and couldn't get into it. I tried 2 more times over the next 2 months to try it again, but the same thing.

    The biggest annoyance was automated code generation. It was almost pointless for me. If I made changes to the database, I either had to a) wipe the directory and start over reimplementing my changes. Or b) go through all the MVC code and find the references to the database. Well, this is what I have to do in most other web languages anyway! So what's the advantage? Scaffolding was great at this because it did everything dynamically. However, you can't reasonably keep the scaffolding because it's not meant to be your program. It's meant to be support around your program.

    The experience seemed more like programming in php with a twist of mod_perl. All the reasons I wanted to get away from perl and php for web programming were back when I tried to write a large application. Rails just doesn't seem in the spirit of Ruby. It's not bad. Don't get me wrong. But it's not this revolutionary framework so many people would have you believe. Sure, it's great to show the 15 minute video. But I'd like to see the video of someone doing a large project in rails.

    --
    If an officer ever threatens to taze you, say you have a pacemaker.
    1. Re:Why rails annoys me... by onlyjoking · · Score: 5, Interesting

      Rails seems to be to web development what Dreamweaver is to HTML authoring. Nice and visual at first then you discover how it starts to get in your way. Give me Perl and Emacs any day.

    2. Re:Why rails annoys me... by aemadrid · · Score: 1

      Are you kidding me? But I'd like to see the video of someone doing a large project in rails.

      Over a month ago I delivered a large, enterprise application in Rails. It took me two months to write it. It comprises 12 different websites. Would you like a screencast of all that? Or would you like a more watchable 15 minutes of me writing code that you would have no context whatsoever to actually understand what I was doing? There are many reasons NOT to like Rails but your excuses are pathetic. Really.

    3. Re:Why rails annoys me... by draed · · Score: 2, Informative

      >>The biggest annoyance was automated code generation

      You mean the scaffolding functionality? That's a very very small part of Ruby on Rails and It's one of the most useless ones. Most of the knowledgeable Rails programmers don't use scaffolding at all. It's great for a quick CRUD prototype, but that's about it.

      That's the *only* code generation going on in rails.

    4. Re:Why rails annoys me... by kisielk · · Score: 1

      Um, if you had to spend any considerable amount of time looking for references to database calls in your application when making DB changes I think that's more your fault in doing a poor design rather than any fault of Rails.

    5. Re:Why rails annoys me... by Anonymous Coward · · Score: 0, Insightful

      Oh yeah? Well I did the same thing...and it only took me one month...and it comprised 20 different websites...and I did it all with vi...with one hand tied behind my back.

      Note that since neither of us provided anything that would in any way support our claims they're equally valid. The GP did request substantiation after all.

    6. Re:Why rails annoys me... by Red+Pointy+Tail · · Score: 1

      This is exactly the same concern I have, and I am not that convinced all the automation is really a good thing.

      Anyone with real world experience (i.e. maintenance of complex sites with complex tables where schema changes are frequent and performance tuning is required periodically) can debunk this? Yes I know the Rails site point to a few 'biggish' sites that uses it, but I am interested in hearing from actual developers if these annoyances are real, and how these sort of problems can be dealt with. Maybe we are too stuck with our old-world methods of design/development that prevent us from doing things correctly in the first place, so let us know...

    7. Re:Why rails annoys me... by Anonymous Coward · · Score: 0

      I was in the same boat as you.

      I was a Ruby fan, and user, from about 2001 onwards.

      I maintained a couple of Ruby bindings for various libraries, etc.

      I've got a very worn copy of Pick Axe, 1st Ed. And copy of 2nd Ed; just because.

      Then Ruby on Rails came along, and I got really excited. I saw the video, went "wow!", and started hacking things together.

      I felt extremely constrained in what I could and couldn't do. Any time I wanted to step outside the framework, and do something moderately complex, I had to battle to get things working.

      I feel sad for matz; that his baby has been taken hostage by the Ruby on Rails crowd, and that Ruby didn't get the attention it deserved solely on it's language design merits. Instead, it got it for being an over-glorified macro language for the web.

      I stopped using Ruby -- I can't stand cultish fanboyism and glitz without substance.

      I switched to Python. I haven't regretted it. YMMV.

    8. Re:Why rails annoys me... by pkphilip · · Score: 3, Interesting

      I think this is a problem with ALL frameworks which try and do a lot of automatic code generation - if you want any modifications done, it becomes really difficult. All high-level frameworks are written optimized for a certain type of solution and if what you are trying to do does not fit into that style perfectly, you are going to have some real problems. This is true for RoR, Django, Turbogears, and most software.

      This is one of the reasons J2EE still exists - individual components of it do a lot, but you will need to spend the time to put all of those together and make them work together. But J2EE has a few design faults and looks like it was designed by a committee more concerned about "Descriptive" programming than about getting software developed. This makes J2EE a pain-in-the-ass to work with.

      A simplified version of J2EE - with a minimal number of crappy XML descriptor files will be a good base framework.

      A fairly good framework which I use is Webware for python - it does not generate a lot of code and stuff, but it provides the essential mechanisms which you can use for getting the work done. It will take longer to code in than RoR but it is far more flexible and is kinda similar to J2EE but without the crap. http://www.webwareforpython.org/.

      The only problem with using Python, Ruby etc is that as they are not strongly typed, you will not find out some problems at compile time and these problems will only show up at runtime, unlike in Java.

    9. Re:Why rails annoys me... by Santana · · Score: 1

      Would you mind giving an example on how Rails got in your way?

      --
      The best way to predict the future is to invent it
    10. Re:Why rails annoys me... by l00k · · Score: 4, Informative
      I love it's lack of "funny" characters (for the most part).

      if you're referring to a lack of odd people in the ruby community you'll be horrified to know there's many.

      thanks for your post, all valid opinion .. i just suspect you're one of these highly intelligent programmers that trip over some minor features you find annoying and then blow your frustrations out of perspective.

      (anyone who's farmiliar with rails will understand the underscores)

      granted some of the method names are overly verbose! i've thought that often when looking through the APIs and docs. but that criticism needs to be tempered by pointing out the verbose methods are used very infrequently. 99% of the methods i use are small and concise, like: truncate(), h(), link_to(), redirect() etc.

      The biggest annoyance was automated code generation

      see this i'm finding hard to understand. when i want to start a new model and controller, i type a line in a prompt, and it makes the few files i need to begin. 'begin' being the operative word. there endeth the code generation.

      my method of automated code generation is copy and paste.

      If I made changes to the database, I either had to a) wipe the directory and start over reimplementing my changes. Or b) go through all the MVC code and find the references to the database

      i've NEVER experienced this. never never never. and i have no idea what you're talking about. one of the real clinchers of rails for me is its use of ActionRecord to interface with the database. i modify my database constantly without breaking any code. the only case i can think of when what you describe could happen is if i were to rename a column in the database, then my row.name object wouldn't match. but i would consider a broken website due to this the fault of a stupid developer.

      to be able to connect to my database, retrieve a record and update it, in 1 line in some cases, becomes rather neccessary for a developer once they've tried it.

      Mydb.update(id, :name => 'John')
      will do all of these. i take a wee dance on the grave of large-scale php development everytime i use that.

      But I'd like to see the video of someone doing a large project in rails

      and here is where i'm convinced that you are what i think you are (an intelligent programmer who's taken big issue over minor irritations). large scale use of rails is very easy to find if you visit the rails site . It's also very easy to find a larger list, and a list of interesting apps to boot. granted, not moving pictures, but .. oh go away.

    11. Re:Why rails annoys me... by xteddy · · Score: 2, Funny

      Yeah, I hear a lot of Anonymous Cowards are switching to Python recently.

    12. Re:Why rails annoys me... by lambdahead · · Score: 2, Interesting

      You are very much correct.

      Also, RoR's ORM does not play nicely with stored procedures. Bring this up to any die-hard Rails fanatic and they will start spinning: "You don't need it! Stored procedures are satanic and force business logic into the data store."

      Which makes me think that most RoR pushers don't have experience with large corporate DBs.

      A nasty side effect of RoRs current popularity is that it completely overshadows some very good Ruby web frameworks such as IOWA and Amrita

    13. Re:Why rails annoys me... by Anonymous Coward · · Score: 0

      Amrita is only a templating language. It can be used with Rails too.

    14. Re:Why rails annoys me... by lambdahead · · Score: 2, Insightful
      i've NEVER experienced this. never never never. and i have no idea what you're talking about. one of the real clinchers of rails for me is its use of ActionRecord to interface with the database. i modify my database constantly without breaking any code. the only case i can think of when what you describe could happen is if i were to rename a column in the database, then my row.name object wouldn't match. but i would consider a broken website due to this the fault of a stupid developer.
      But what if you are working with 4 developers and 4 DBAs? And all data is accessed through stored procedures? Anytime I bring this up, I am usually met with "oh, well you know RoR isn't a perfect fit for *every* project."

      So what is it a fit for? Folks push it as a J2EE killer but under pressure start saying it's more suitable for things like "Name a Star for your Pet" website.

      to be able to connect to my database, retrieve a record and update it, in 1 line in some cases, becomes rather neccessary for a developer once they've tried it.

      Mydb.update(id, :name => 'John')

      will do all of these. i take a wee dance on the grave of large-scale php development everytime i use that.
      And any coder of any talent would have already created the routine as part of their toolbox for their language of choice. It is one of the first things I write for any new language that I use in a datacentric project.

      large scale use of rails is very easy to find if you visit the rails site . It's also very easy to find a larger list, and a list of interesting apps to boot. granted, not moving pictures, but .. oh go away.
      When I see a company with > 50 million USD in revenue using it for mission critical apps, I'll sit up and pay attention. Until then, it seems best suited for "10 Things To Do Before I Die" type websites.
    15. Re:Why rails annoys me... by lambdahead · · Score: 1
      Amrita is only a templating language. It can be used with Rails too.


      True, and my bad (realized what I had said as soon as I hit submit).

      All the same, RoR fans give the impression that RoR is the *only* way to do web dev in Ruby while ignoring Nitro, IOWA, and Amrita.
    16. Re:Why rails annoys me... by TrekCycling · · Score: 2, Interesting

      The autocode generation is meant only to be used initial. Eventually it's usefulness goes away, obviously. So I don't know if I'd find fault with that, personally. My biggest problem is that it relies on FastCGI which blows hard. I've been trying to get that setup, in part to test how easy getting a production environment of rails going is.... um... yeah... not going so well. At least with Tomcat or JBoss you can up and running in minutes. You may not be able to developer your app "10x FASTER", but at least you don't have to fight to get the app server running.

      I like rails overall, though. I think it needs a better server than "use Apache and tie it to Fascgi". And I do think it's a bit overhyped, especially when you hear people talk about replacing Java with it. The idea of making software development more simple isn't a Ruby invention. It's something that projects from Hibernate to Spring are latching onto. Java will end up in roughly the same space eventually. Maybe not with the unified framework that does all aspects of web development. But it's getting better at being simpler.

    17. Re:Why rails annoys me... by Anonymous Coward · · Score: 0

      If I understand you correctly, a large part of your problem was with the code-generated scaffolding. It is true that scaffolding doesn't help you with anything complicated and is hard to maintain. The reality is that most Rails developers stop using scaffolding after the first few days once they've figured out how Rails really works. The problem is that the slick Rails video automagically makes a site with scaffolding in under 15 minutes, so everyone thinks scaffolding is integral to Rails development.

      As someone else said, the key is to drop scaffolding altogether. I actually think Rails is hurting its own adoption by featuring scaffolding. At the very least, they should make it clear that scaffolding is best used as a learning device while you are getting started.

    18. Re:Why rails annoys me... by hampton2600 · · Score: 1

      Actually, I've been developing web applications for many years now and in the past month have created two Rails applications, one of them being fairly heavy-weight. I came into the development assuming exactly what you did. That Rails would help get the easy stuff done, but as soon as I needed my code to do something that wasn't specifically thought out in the code, I would have to fight the framework for control of my application. However, I found that to not be the case at all. The power of rails is that its *really* well thought out. It seemed to know when to step aside to let me code what I wanted to code. The overall philosophy seems to be buttressing your code when you need it, then just letting you code in Ruby all the other times. Also, I have found that forcing me to use the MVC system in web apps is truely something we should all of been doing all of the time for the past 10 years. However, when you start from the base when coding a web app, usually you want the least amount of work to get something on the screen. And that's not a bad impulse, but it makes you forget to seperate out your code. Rails is about getting to the screen faster and forcing you to keep your MVC code seperate. I'm not saying that Rails is here to cure aids and cancer, but its a solidly designed framework which has some great ideas that corrects behavioral mistakes in the way we've been coding our web apps for years. Not only that, it has a pretty logo. -hampton.

      --
      "I don't want to start a holy war here..."
    19. Re:Why rails annoys me... by jaydonnell · · Score: 2, Informative
      If I made changes to the database, I either had to a) wipe the directory and start over reimplementing my changes. Or b) go through all the MVC code and find the references to the database.


      Can you give an example? I've used rails for atleast 5 different web apps and I've never had this problem. If you have a table called 'item' with a fields called 'price' then you have an object in rails called Item with a method called 'price' and you use it with: Item.price Seems straight forward to me and if you add a column called 'sale_price' to your table then your Item.price line doesn't need to be changed and you can automatically use Item.sale_price
    20. Re:Why rails annoys me... by Beek · · Score: 1

      FastCGI is actually pretty nice when you use it in external mode rather than static or dynamic. When running in external mode, you don't have to run your app as apache (or nobody or whatever the webserver's user is). You can run it as a different user account and connect it with Apache (just like I can do with Tomcat).

      Unfortunately, there's no mention of this option in the rails documentation, and there's only a few hints & tips out there for getting it set up. I'm still playing with the configuration myself, but I plan on writing something up once I've got it down.

      There are other Tomcat features that you don't get with fcgi, but I don't really miss them.

    21. Re:Why rails annoys me... by TrekCycling · · Score: 1

      I'd be interested to hear how you do that. How you can essentially run Rails standalone as a server.

    22. Re:Why rails annoys me... by angelo · · Score: 1

      You probably shouldn't use stored procedures in a database that's Object-Relation mapped. Then again, I also think you should never mix you model storage with controller code like stored procedures do.

    23. Re:Why rails annoys me... by lambdahead · · Score: 2, Insightful

      Which, as I mentioned elsewhere, is the response I always get.

      What bright-eyed, dewy-fresh CompSci grads don't seem to get is that the real world doesn't care about elegance and purity. Real world data stores care about things like optimizing and caching stored procedures, compliance with SarbOx security issues, and data safety.

      No, I don't consider websites that help you organize your class reunion or camping trip to be the real world.

    24. Re:Why rails annoys me... by Beek · · Score: 1

      Well, it's not really a standalone server... FastCGI in external mode isn't like Tomcat where you have a fully functional server. You still need Apache or lighttpd, but FastCGI/Rails itself is running in a separate process from httpd, and it isn't managed by httpd.

      I'll give you the quick version of the configuration. Start with a working FastCGI/Apache configuration. In your httpd.conf, you'll have a FastCgiServer directive somewhere... That gets changed to a FastCgiExternalServer directive that looks like this:

      FastCgiExternalServer /path/to/railsapp/public/dispatch.fcgi -host localhost:9036

      The -host bit is important - it tells apache where you're running the external server. In this case, it's running on localhost, port 9036. (You can also communicate over a socket, which is probably better if the external server is running on localhost.)

      Then you to start your FCGI external server... It's pretty easy, you just need a wrapper script for the cgi-fcgi command. My current one looks like this:

      #!/bin/sh

      PORT_NUM="9036"
      NUM_SERVERS="1"
      export RAILS_ROOT="/path/to/railsapp"
      export RAILS_ENV="production"
      export RAILS_HOST="myvirutalhost.com"

      cgi-fcgi -start -connect localhost:${PORT_NUM} $RAILS_ROOT/public/dispatch.fcgi $NUM_SERVERS

      That works for me currently... But I'm working on improving the scripts.

      The big win is that now you moved the process from apache to a user account. I find that makes automating deployment a lot easier.

    25. Re:Why rails annoys me... by handslikesnakes · · Score: 1

      Don't forget Borges, which is hella confusing when you're trying to figure it out, but damned amazing once you have.

    26. Re:Why rails annoys me... by l00k · · Score: 1
      So what is it a fit for? Folks push it as a J2EE killer but under pressure start saying it's more suitable for things like "Name a Star for your Pet" website. [...] No, I don't consider websites that help you organize your class reunion or camping trip to be the real world.

      perhaps these comments weren't meant to be analysed or taken seriously, but if your position is that community-minded sites facilitating an exchange of information are not a real world use of the internet then that seems at odds with, well, the internet. ask yourself why you are compelled to keep visiting a website that appears to fall into your category of not being of the 'real world' to post your opinion to. then probably visit this link to compare your ideas with some others.

      When I see a company with > 50 million USD in revenue using it for mission critical apps, I'll sit up and pay attention. Until then, it seems best suited for "10 Things To Do Before I Die" type websites

      fair enough. then sit on the fence rather than slinging mud.

    27. Re:Why rails annoys me... by lambdahead · · Score: 1
      perhaps these comments weren't meant to be analysed or taken seriously, but if your position is that community-minded sites facilitating an exchange of information are not a real world use of the internet then that seems at odds with, well, the internet. ask yourself why you are compelled to keep visiting a website that appears to fall into your category of not being of the 'real world' to post your opinion to. then probably visit this link to compare your ideas with some others.
      So, you are saying that RoR is only suitable for internet projects? I thought it was also being touted as the J2EE killer for web applications in general? If you constrain your set of applications enough (two guys working in a garage, creating socially impacting fluffy websites), I'm sure RoR becomes very significant. But don't try to tell me with a straight face that it is the cure all for corporate webapp development.
      fair enough. then sit on the fence rather than slinging mud
      Sitting on the fence slinging mud is rather easy when the RoR crowd goes swaggering down the middle of the street stark naked yelling about their new clothes. I saw the same parade go by a few years ago comprised of Java fanatics. And, before that, VB fanboys ("oooh, look, I can make a button that pops up hello world!")
      And, before that, C++ nuts. With minor throngs of Python groupies and PERL diehards along the way.
    28. Re:Why rails annoys me... by l00k · · Score: 1
      So, you are saying that RoR is only suitable for internet projects?

      no, i was replying to your opinion about (and i get to quote another good line) "socially impacting fluffy websites" being not of the "real world".

      But don't try to tell me with a straight face that it is the cure all for corporate webapp development.

      i didn't. ahem .. read the post and you'll see i never did. instead, i did reply "fair enough".

      ...RoR crowd goes swaggering down the middle of the street stark naked yelling about their new clothes

      well this is interesting, because going through the comments posted to this slashdot article, or at least, the ones moderators have given points to, it's hard to say this has happened here. what has happened is instead what i would consider a rails backlash to the article. most of the comments, many FUD, many valid, are not particularly nude, nor swaggering. slashdot has hardly be thronged by hordes of rails sympathisers. in this case i believe you to be part of any unruly mob, if an unruly mob has indeed formed.

    29. Re:Why rails annoys me... by znmeb · · Score: 1

      And before that, Forth ... and before that, Smalltalk ... and before that, Ada ... and before that, APL ... I remember the awesome freedom of moving from 5-hole to 8-hole punched paper tape.

      --
      -- M. Edward (Ed) Borasky http://linuxcapacityplanning.com
    30. Re:Why rails annoys me... by Anonymous Coward · · Score: 0

      Maybe you're just a shitty programmer.

    31. Re:Why rails annoys me... by nikster · · Score: 1

      Interesting.

      The problem is just that the problem with automatic code generation in Rails simply doesn't exist. The guy who posted this apparently had some beef with it (not good enough?) but the facts are:
      - If you want to use code generation, you can.
      - The code generated by this is pretty minimal (a good thing)
      - You can run it again and again
      - Never in Rails development do you HAVE TO use it. Ever.

      This last point is why I think the criticism regarding the code generation is a load of BS. I never had an issue with this in Rails dev either.

    32. Re:Why rails annoys me... by nikster · · Score: 1

      I find your comment strange especially because you claim to love Ruby. If you love Ruby, Rails is your only option for web frameworks.

      On so many occasions I just felt cheated. It was all valid ruby code, but it just didn't seem in the spirit of ruby.
      I am guessing, but maybe this is where your negativity is coming from? I find it to be very much in the spirit of Ruby, but I guess everybody is entitled to their own opinion on what the spirit of Ruby really is.
      My namespace was cluttered with a million methods. The names of which didn't seem logical and_reminded_me_of_php_function_names_...
      Strange. I found the names to be extremely logical. Sometimes overly verbose, but I consider that a good thing. Better be too clear than too unclear.
      If I made changes to the database, I either had to a) wipe the directory and start over reimplementing my changes. Or b) go through all the MVC code and find the references to the database.
      Option a) is just bizarre. Option b) - well if you did rename variables (columns) you have to rename them everywhere, no way around it.

      Code generation in Ruby is for your convenience. The code generated is minimal, e.g. pretty much just the files in the right places. At no point do you have to use code generation. If it doesn't work for your style of development or your project, don't do it.

      The experience seemed more like programming in php with a twist of mod_perl.
      Um, No.

      The 15 minute videos are somewhat misleading in several ways:
      1) You can follow it and build a web app in 15 minutes which is great but as soon as you need something a little bit different you are out in the cold and on your own and there is no way to do it using the information in the video.
      2) If, on the other hand, you have plenty of experience with Rails, you can in fact program a real live application prototype in 15 minutes. It's that flexible. It's that powerful.

      The learning process to get from noob to masterful user of Rails is difficult. It's hard. You need to understand the concepts behind Rails - they make sense, but they are also subtle. I mean - Rails uses _all_ the power of a fully dynamic, fully OO programming language. It's extremely powerful and extremely flexible but it hides all that behind its convention over configuration philosophy.

      The bottom line is: Rails will just work for 99% of all things you try to do. For the remaining 1% you need to dig deep and understand, and Rails lets you.

    33. Re:Why rails annoys me... by davegaramond · · Score: 1

      Sigh, every now and then someone will come and say something like this.

      Perl, Ruby, Python, PHP are not statically typed.
      Ruby and Python *are* strongly typed.
      Perl, C, PHP are weakly typed.

  23. For some uses.... by kadathseeker · · Score: 1

    http://wiki.rubyonrails.org/rails/pages/RealWorldU sage I regularly partake in some Penny Arcade at penny-arcade.com . If you don't know about it, check it out.

    --
    The 'Net is a waste of time, and that's exactly what's right about it. - William Gibson
  24. Web 2.0, Baby! by jalefkowit · · Score: 4, Funny
    The Ruby on Rails website has also been given a new look.

    I'm guessing more pastels. And rounded corners.

    1. Re:Web 2.0, Baby! by mixonic · · Score: 2, Informative

      Actually, the new design is the opposite of pastels and rounded corners, it's alot of empty whitespace and Georgia font. Being web 1.0 is so web 2.0.

      (I actually like the old design more ;-), was I too obvious? )

      -mix

    2. Re:Web 2.0, Baby! by jalefkowit · · Score: 1

      Yeah, I learned that at the Web 1.0 Summit...

    3. Re:Web 2.0, Baby! by TedCheshireAcad · · Score: 1

      Yes, but they've messed up! There are serif fonts! They run the risk of being disbarred from Web 2.0.

    4. Re:Web 2.0, Baby! by Bemmu · · Score: 2, Funny

      You forgot the gradients.

      Short history of web design:
      95 What web?
      95-98 I love the blink tag!
      99-04 Numedia stripes and pics of successful corporate people smiling
      05- Rounded corners, pastel gradients.

      I'm sure I missed lots.

    5. Re:Web 2.0, Baby! by kubis · · Score: 1

      you missed for example: 04 - Wow.. Ajax.. no more "back" buttons....

  25. It's not marketed like Java was. by CyricZ · · Score: 1

    Don't forget that Java had Sun's marketing gorilla behind it. The industry was bombarded by Java hype, and thus people became very, very aware of it.

    Ruby on Rails, on the other hand, has the force of the community behind it. It has become well-known due to word of mouth.

    From my experience, many IT developers choose not to partake in software development after work. They'd rather to skiing, or watch TV, or play sports. Thus they tend to learn about new technologies only when their firm sends them to a training course. It's not surprising that they wouldn't have heard about it, especially if they're not actively involved with developing their own site.

    --
    Cyric Zndovzny at your service.
  26. A rather large problem by wyldeone · · Score: 2, Informative

    The main problem I see that's keeping mass adoption is ease of installation of rails apps. PHP apps are extremely simple to install. Nearly all hosting providers support it, and installation is usually comprised of uploading some files to a directory and running an install script. For RoR apps, much special configuration is needed. Even at progressive hosts that have RoR installed, like dreamhost and textdrive, people are currently having immense difficulty getting RoR apps working (look at all of the topics in their respective forums.)

    As a developer RoR is a godsend, and compared with PHP development is incredible. But developer hapiness doesn't drive user adoption. Unless some things majorly change, I can't really see RoR catch on as a consumer technology, rather like the situation with J2EE today. But I can see it usurping the place of technologies like J2EE and .Net in the enterprise.

    --
    In the beginning the universe was created. This made a lot of people very angry and is widely considered as a bad move.
    1. Re:A rather large problem by Anonymous Coward · · Score: 0

      The main problem I see that's keeping mass adoption is ease of installation of rails apps

      I remember a time - about 10 years ago - when it was difficult to find PHP hosting too. If you're looking for rails hosting you can head to http://www.textdrive.com/, half of the 37 signals staff work there (including DHH).

      PHP apps are extremely simple to install.

      Simpler than running "rake deploy" in your terminal after editing the following to have the correct name/password/database adapter for your production environment?: production: adapter: mysql database: xxx_production username: root password: socket: /tmp/mysql.sock Assuming the application is designed to take full advantage of Rail's goodness you'll get your database schema created automatically, the latest version checked out from subversion, default data created, log files cycled, and services restarted. If anything goes wrong the whole deploy process is atomic so it can back out without leaving a half installed application.
      Nearly all hosting providers support it, and installation is usually comprised of uploading some files to a directory and running an install script.
      That's about all that's needed for rails applications like Typo too.
      For RoR apps, much special configuration is needed.
      No more than is required for PHP for the initial deployment (install database, install web server, install language, install database adapters for language, install framework, install optional moedules, install). Your hosting provider or IT department should cover that for you, all that's left is to toss your program somewhere that the web server can find.
    2. Re:A rather large problem by cyborch · · Score: 1

      Even at progressive hosts that have RoR installed, like dreamhost and textdrive, people are currently having immense difficulty getting RoR apps working (look at all of the topics in their respective forums.)

      Funny, a quick google for RoR hosting turns up quite a few places where rails could be hosted from... In some places for free, even!

      Being a sys admin for a small hosting company myself I have all the RoR hosting I want, and would probably convince my boss to start selling RoR hosting if a marked for it starts to pop up...

    3. Re:A rather large problem by guet · · Score: 1

      Hi,

      installing a rails app at dreamhost is presently as simple as

      1> log in and type 'rails your_app_name'
      2> To get decent speed you need to turn on fcgi in the web interface and edit your .htaccess file to use fcgi rather than cgi.
      3> Start changing your app's config files to point to the right database and off you go

      People have had problems in the past getting up to speed, but nowadays they have all the kinks ironed out and it really is that easy. If you want to run the rails app in a subdirectory that will be more painful at present, but is doable - I think the wiki recommends trying a subdomain instead.

      The main barrier to adoption I see is that you need to get your head round the MVC abstractions before you start. Given this is one of the things about Rails that encourages good practice over the long term, that's probably not a bad thing.

    4. Re:A rather large problem by pboulang · · Score: 1
      You seemed to have completely avoided the point.. I'll put it here again for easy reference:
      The main problem I see that's keeping mass adoption is ease of installation of rails apps.
      It isn't the lack of hosting facilities, it is the lack of standard configuration for installation. There isn't a single package or setup.exe or port that allows for simple deployment.
      --

      This comment is guaranteed*

      *not guaranteed

  27. Ahem... by mcrbids · · Score: 2, Insightful

    Well, I'm always curious. So, I watched the video "Evolving your database schema without sweat". I watched for 10-15 minutes where the guy types furiously for 15 minutes to avoid typing "alter table add author varchar".

    I guess I just don't get it. What's the excitement?

    You can't abstract too far away from the database when you get into big, complex tables and want to keep performance up. I've seen a 30-second query reduced to 50 milliseconds merely by changing the order of join in a large, complex, 12-table join on PostgreSQL.

    Yet, it seems that Ruby on Rails goes to great lengths to avoid (gasp!) SQL. See Joel's great article on leaky abstractions.

    I don't mind SQL statements - prepared statements make it so much more manageable - but what about code changes dependent on changes to the database schema? That's something I might be interested in!

    --
    I have no problem with your religion until you decide it's reason to deprive others of the truth.
    1. Re:Ahem... by mortonda · · Score: 1

      but what about code changes dependent on changes to the database schema?

      That's the whole point of migrations - they allow you to migrate a database schema up and down quickly to match the code base. (presumably the code base has the migration in it, so it can match the DB) This way you can keep track of the changes during development.

      Plus, the migration code will write the SQL for different databases. Quite handy, since the syntax is somewhat different between mysql and postgresql. (and others)

    2. Re:Ahem... by mcrbids · · Score: 1


      Plus, the migration code will write the SQL for different databases. Quite handy, since the syntax is somewhat different between mysql and postgresql. (and others)


      But, again, we're back to leaky abstractions. I might want a unique constraint that covers two or three fields. Sqlite is incapable of this. How would this be handled?

      One of these answers is most likely:

      1) There is no concept of a unique constraint in Rails, or

      2) It's there, and silently ignored if you're using Sqlite, or

      3) It's there, and bitches magnanimously if you're using Sqlite.

      Bottom line: I don't know Ruby, or rails, and don't intend to anytime soon. But, I do try to keep abreast of competing technologies that I often include in my own development. (using Linux/Apache/PHP/Postgres)

      --
      I have no problem with your religion until you decide it's reason to deprive others of the truth.
    3. Re:Ahem... by killjoe · · Score: 1

      4) ROR would handle the constraint for you.

      --
      evil is as evil does
    4. Re:Ahem... by Anonymous Coward · · Score: 0
      Well, I'm always curious. So, I watched the video "Evolving your database schema without sweat". I watched for 10-15 minutes where the guy types furiously for 15 minutes to avoid typing "alter table add author varchar".

      Take a look at SANDev. Like RoR, it's a way to build software. SAND relies on code generators to build most of the application for you - configuration, control, messaging, UI, serialization, and persistence code are all generated from a single data definition. Changing the database schema is as simple as adding a single field to a single (Java) file and running a single ant command. The generators + included toolset do the rest, including updating the DB schema. The benefits are that you write very little code, and never have to worry about synchronizing changes to your data definition across the application - the UI automatically gets the new field, as do the serialization and persistence code. Neat stuff. I've used similar systems in production. They have a bit of a learning curve, but oh man do they make the boring stuff easy.

    5. Re:Ahem... by jaydonnell · · Score: 1

      1. You'd do constraints in ruby rather than in the database in most situations.

      2. You can easily do pure sql in ruby, you just don't need to for the most common tedious situations. i.e. it makes the commom/frequent stuff super easy and doesn't prevent you from doing the rare, but complex stuff.

    6. Re:Ahem... by jaydonnell · · Score: 2, Insightful

      Did you pay attnetion to the video? Do you know the purpose of what is in the video? It's not to change a column in a table. The purpose of migrations is to have an automated way to apply changes across all your servers and roll them back if something isn't right. It's a very nice feature. Of course, you can log in to each server and manually type "alter table add author varchar", but I promise you won't be working at a serious shop if that's how you deploy database changes

      "Yet, it seems that Ruby on Rails goes to great lengths to avoid (gasp!) SQL"
      From your two posts it's clear you've never used rails before so why do you feel you have the knowledge to make such an assertion? Both of your posts are you arguing against what you think rails is when it's clear you have no idea what it does and how it does it. sad.

    7. Re:Ahem... by marcello_dl · · Score: 1

      For the record (literally), Ruby on rails has Find_by_sql which lets you use plain sql, with all the pros and cons.

      --
      ---- MISSING MISCELLANEOUS DATA SEGMENT --- [sigdash] trolololol
  28. also... by Doktor+Memory · · Score: 1

    Jifty is Coming. RSN.

    Make of this what you will.

    --

    News for Nerds. Stuff that Matters? Like hell.

  29. Re:Mod_python has easier syntax by richieb · · Score: 4, Informative
    It's hard to get excited about any tool based on Ruby because it inherits so much confusing syntax from Perl.

    Where did you get this impression? Maybe because you saw some regular expressions in Ruby? Ruby syntax is much, much clearer than Perl.

    Take a look here

    --
    ...richie - It is a good day to code.
  30. ROR by Anonymous Coward · · Score: 0

    RORLOFLMFAO!!!111one

  31. My Fucking God by Anonymous Coward · · Score: 1, Informative

    No wonder some people refuse to use Rails... It's bloody fucking hard to install. I've been trying to install the damn thing for over 2 hours now. suPHP is a fucking walk in the park compared to this.

  32. That is one sexy video. by Inoshiro · · Score: 4, Informative

    Basically, Ruby on Rails saves you lots of hassle.

    About 5 years ago, if you wanted to make a blog, you'd sit down and design a database schema. You'd design a controller that would have certain actions. You'd write a bunch of templates that would have variable locations. You'd extend the controller to use these templates from the db to make views. You'd write pages which allowed editing of these values. You'd write code for sanity checking. You'd write unit tests. You'd do everything over again that you'd done before.

    Slashcode, Scoop, you name it -- they were all written through the same ideas.

    Ruby on Rails makes all the redundant parts go away. In the video (which I just watched, and finally gives me a compelling reason to learn and use Ruby), the person sits down and generates a basic controller for their blog. They then show that the basic templates generated will show text. It takes another 5 minutes to define a db called posts and generate a default action for it. The code is smart enough to just directly make the things like title and body editable widgets on the page. 5 minutes to have posted blogs!

    Then the video takes 5 minutes to extend this by writing about 15 lines of code. This has a big effect: the listing of posts is abstracted out into a block that can be included in any page. The ordering is reversed. The title attribute is made a required field.

    But what good is a blog without comments? In the final 5 minutes, the author quickly adds a comment table, generates a comment controller, says that posts own comments, sticks in 3 lines of code in the post view segment which do a foreach associated comment, display, and then adds a page to edit comments. They also (at the same time) show us the basics of the unit-testing framework you get "for free" (the basic test is return true, but he changed it to test if the comment post code worked with another 4 lines of code).

    The entire thing took 15 minutes to write and had 58 lines of code. When the db schema changed, the code adapted -- the programmer did not have to rewrite the code. When the programmer wanted to change anything, the code would quickly bend itself to the task.

    I dare say it's the sexiest thing I've seen yet. If they ever release a version 2 that allows for simple Javascript on the client for AJAX interfaces, there will be only 1 game in town for web development!

    I'm not inexperienced in web design. I have written my own stuff to test ideas out, as well as participated in Scoop's development to a degree. Recently I've been playing with Drupal because all the basics are setup with it, and you can just extend it with modules. I can honestly say that while it took me an hour to setup Drupal (and another hour to get it completely to how I liked it) it a test config, I could probably replicate the base distribution plus the modules I use in Ruby on Rails within a day -- maybe 2, if I'm slow. It's that effective!

    --
    --
    Internet Explorer (n): Another bug -- that is, a feature that can't be turned off -- in Windows.
    1. Re:That is one sexy video. by CableModemSniper · · Score: 1

      I dare say it's the sexiest thing I've seen yet. If they ever release a version 2 that allows for simple Javascript on the client for AJAX interfaces, there will be only 1 game in town for web development!

      Rails already has support for AJAX. Check the documentation

      --
      Why not fork?
    2. Re:That is one sexy video. by JonXP · · Score: 1

      Hahah, no need to wait for version 2, it's already in version 1.

      It's got a full AJAX framework, along with a bunch of other stuff too.

    3. Re:That is one sexy video. by Anonymous Coward · · Score: 0
      I dare say it's the sexiest thing I've seen yet.

      You really should get out more.

    4. Re:That is one sexy video. by CableModemSniper · · Score: 1

      I know. I said that.

      --
      Why not fork?
  33. Umm, that was fun... I guess. by An+Onerous+Coward · · Score: 3, Funny
    sudo apt-get install rails
    cd /var/www
    mkdir rails
    rails rails
    cd rails
    ruby script/server
     
    => Rails application started on http://0.0.0.0:3000/
    => Ctrl-C to shutdown server; call with --help for options
    [2005-12-13 21:22:19] INFO WEBrick 1.3.1
    [2005-12-13 21:22:19] INFO ruby 1.8.3 (2005-06-23) [i486-linux]
    [2005-12-13 21:22:19] INFO WEBrick::HTTPServer#start: pid=27106 port=3000
     
    [... ctrl-c ....]
     
    [2005-12-13 21:22:35] INFO going to shutdown ...
    [2005-12-13 21:22:35] INFO WEBrick::HTTPServer#start done.
    First question: Do I get a cookie?

    Next question: Now what do I do?
    --

    You want the truthiness? You can't handle the truthiness!

    1. Re:Umm, that was fun... I guess. by Anonymous Coward · · Score: 0

      Did you check
      here?

    2. Re:Umm, that was fun... I guess. by l00k · · Score: 1

      here's one place to start that i found useful

      another method is to go to the rails website, linked in the slashdot article, and click the very large 'get better' link.

      </holds hand>

    3. Re:Umm, that was fun... I guess. by booch · · Score: 1

      Hey, what distro are you running? Debian 3.1 (Sarge) doesn't have rails in its repository. I had to manually install ruby-gems and use it to install rails. And ruby-gems wouldn't install where I wanted it to.

      --
      Software sucks. Open Source sucks less.
    4. Re:Umm, that was fun... I guess. by An+Onerous+Coward · · Score: 1

      Ubuntu 5.10, with every bizarre repository in the world in my apt/sources.list.

      I'm not sure which repository it's coming from, or how to find out.

      --

      You want the truthiness? You can't handle the truthiness!

    5. Re:Umm, that was fun... I guess. by booch · · Score: 1

      Ah. I don't know how to tell what repository it comes from either. I'm just getting started with Debian, but I'm really digging it. (I've been using Linux since 1994.) But it does do some things a lot differently than other Linux distros. And Ubuntu looks great too - I can't wait to try it on a desktop soon.

      As far as what to do next, I recommend the Pragmatic Programmers' Rails book. It's very well-written, and walks you through a moderate-sized project. I also found that I didn't really need to learn Ruby to get started. I quickly went through the appendix of the book to get the basics of Ruby, then started reading the book. I don't think I've missed too much. The code is easy enough to understand, as long as you're familiar with object-oriented programming concepts.

      --
      Software sucks. Open Source sucks less.
  34. Stupid name by merc · · Score: 1

    I always feel like donating something to the Red Cross whenever I hear about Ruby on Rails.. think of the children.

    --
    It's true no man is an island, but if you take a bunch of dead guys and tie 'em together, they make a good raft.
  35. Ruby 2.0 Release Date? by frooyo · · Score: 1

    Does anyone know when Ruby 2.0 will be released.

    Being able to gain the performance from having a bytecode/virtual machine setup would be wonderful.

    1. Re:Ruby 2.0 Release Date? by tuffy · · Score: 1
      Does anyone know when Ruby 2.0 will be released.

      Probably on Ruby 2's Day

      --

      Ita erat quando hic adveni.

    2. Re:Ruby 2.0 Release Date? by myz24 · · Score: 1

      Come on that's funny! You moderators must not have one near you...

  36. So... by iluvcapra · · Score: 1

    When is Ruby on Rails getting its own slashdot icon? Every other frickin' web development story is either "Rails is great" or "Watch the J2EE-Rails-Python flamewar"

    --
    Don't blame me, I voted for Baltar.
  37. Nitro? by Colonel+Panic · · Score: 2, Informative

    Rails isn't the only Web app devel framework that Ruby has... It's just that Rails is getting all of the attention. Some folks prefer Nitro over Rails.

    1. Re:Nitro? by booch · · Score: 1

      I'd really like to find someone who could explain the pros and cons of Rails versus Nitro. I've looked at Nitro (and used Rails a bit) and I find Og (Nitro's SQL-to-model portion) to be quite a bit better than ActiveRecord (Rails' SQL-to-model portion). The only reason I'm not really considering using Nitro is the momentum/community that Rails has. For example, I was able to buy a book about Rails, and several more are on the way. I doubt that there are any Nitro books on the way any time soon. I'm also considering using Og with Rails.

      --
      Software sucks. Open Source sucks less.
  38. AJAX quality is suspect by brundlefly · · Score: 3, Interesting

    It's great that Ruby is 1.0.

    But it's unfortunate that the preferred Ruby AJAX design pattern still includes prototype.js, because that library as written is fundamentally dangerous. It's written in a fashion which demonstrates that the author is very adept with JavaScript and functional programming in general; but it also does some unpardonably cute tricks in extending core objects, thereby changing the overall JavaScript environment and making the core AJAX library not play nicely with others. (And if ever there was an environment where you need to have good manners and not piss in the pool, it's the browser + JavaScript environment.)

    The sad thing is that there's nothing about the functionality of prototype.js which requires all that object and syntax wizardry to function correctly. It could easily be re-written to be perfectly safe. But at this point, the bell has been rung; other libs such as Rico now rely on those same insidious tricks, and 1.0 is out the door.

    Sigh. So close, so close.

    1. Re:AJAX quality is suspect by Santana · · Score: 1

      It's great that Ruby is 1.0.

      Ruby will reach 1.8.4 this month. Rails is 1.0 since 2005-12-13

      --
      The best way to predict the future is to invent it
    2. Re:AJAX quality is suspect by jaques · · Score: 2, Insightful
      But it's unfortunate that the preferred Ruby AJAX design pattern still includes prototype.js, because that library as written is fundamentally dangerous. It's written in a fashion which demonstrates that the author is very adept with JavaScript and functional programming in general; but it also does some unpardonably cute tricks in extending core objects, thereby changing the overall JavaScript environment and making the core AJAX library not play nicely with others. (And if ever there was an environment where you need to have good manners and not piss in the pool, it's the browser + JavaScript environment.)
      Agreed. So do others: check out http://www.mochikit.com/ for a js library that doesn't piss in the pool.
      --
      Jaques
    3. Re:AJAX quality is suspect by Anonymous Coward · · Score: 0

      So which library would you use that doesn't have those flaws? Or would you rather fix what's there?

    4. Re:AJAX quality is suspect by brundlefly · · Score: 1

      Pedantically noted. ;) Thanks for the correction.

    5. Re:AJAX quality is suspect by brundlefly · · Score: 1

      I *have* fixed what's there. At least in my own installations.

      But this was not at all a trivial tweak -- it involved some architectural changes with repercussions throughout the entire library and all dependent libraries. And when it comes to making such massive seismic changes to an open-source component, it not so easy as just rolling in the new changes... everybody who relies upon that component needs to buy in on the value of the changes and agree to absorb the cost of migration. Which, frankly, is a difficult thing to champion as a "casual" contributor and in my opinion is the onus of the code owner/author to initiate. YMMV.

    6. Re:AJAX quality is suspect by booch · · Score: 1

      I'm not a big fan of Prototype either. (Although I have yet to find ANY good extensive JavaScript library that I do like.) But Rails doesn't require that you use Prototype. In fact, unless you use the AJAX-specific "tags", you don't need Prototype at all. (Frankly, I'm not a fan of the RHTML either -- I'd much rather use something like ZPT/TAL or Kid that web designers can pull into Dreamweaver.)

      I'm using a different way to do my JavaScript. I'm a big fan of unobtrusive JavaScript. So I just assign specific classes to elements I want to have certain behaviors. Then the JavaScript code just looks for the specific classes, and applies the behaviors to those elements.

      --
      Software sucks. Open Source sucks less.
  39. if i'm new to web development... by Chimera512 · · Score: 1

    i take it i should stick to a very solid LAMP base then look into ruby on the rails once i have some real code under my belt? make sure i don't learn some trendy language that dies in a couple years? and i assume this isn't a good language for someone with very little (essentially no) experience to jump into and try to learn?


    also, how is this implimented? does it preform operations serverside that output the html/xml/whatever code in a similar fashion as php? does it include database software in the ruby framework or do you still need something that is/is like Mysql to handle databases?

    1. Re:if i'm new to web development... by Anonymous Coward · · Score: 0

      Yes
      and
      Yes

    2. Re:if i'm new to web development... by Anonymous Coward · · Score: 2, Informative

      i take it i should stick to a very solid LAMP base then look into ruby on the rails once i have some real code under my belt? make sure i don't learn some trendy language that dies in a couple years? and i assume this isn't a good language for someone with very little (essentially no) experience to jump into and try to learn?

      I dunno, I don't think it's worth starting at the end : ) Ruby is a very nice clean language, and rails builds on that. Ruby isn't going away any time soon - Python and Ruby will probably supplant a lot of Perl over the next 10 years. I'd say you'd be better learning one of them rather than PHP, as you won't learn bad non-oop habits before tackling oop (which really isn't as hard a concept to grasp as people make out). Have a look at this tutorial for a flavour of what Ruby can do.

      I'd say Ruby is the ideal beginners language.

      http://tryruby.hobix.com/

      try 2+ 2
      then perhaps

      zoo = "ardvarks " * 5
      zoo << "parrots " * 2
      zoo.include? "ardvarks"

      Rails performs operations server-side which spit out html/xml whatever, just like PHP, however it separates out the programming stuff from your html templates, and the programming from the database stuff, so that you don't end up with a mess of code and sql and html at the end. You'll need to know about the Model View Controller paradigm (worth reading up on this). Basically

      Model - Database wrappers
      Controller - Programming
      View - HTML templates

      You need to install a database (take your pick), then you edit the config file to point it to your database.

    3. Re:if i'm new to web development... by WWWWolf · · Score: 1
      i take it i should stick to a very solid LAMP base then look into ruby on the rails once i have some real code under my belt?

      Perhaps - it's not exactly the simplest of platforms to get. You'll definitely benefit from understanding the basics of web development.

      make sure i don't learn some trendy language that dies in a couple years?

      A valid concern, though I personally wouldn't be too worried. Even in case Rails might fail to gain momentum, at least Ruby language should be able to stick around - it's already getting established as the part of the landscape. Plus, Rails uses the hot paradigm of MVC web apps - there's competition on this area too, and people are using it a lot in other languages, so knowing the paradigm itself might help.

      and i assume this isn't a good language for someone with very little (essentially no) experience to jump into and try to learn?

      Ruby might, in itself, be a simple and easy-to-learn language, but you'll probably start to appreciate those things only after you know how to program somewhat, as in know how to do many tasks in other scripting languages or how to do complex things in OO languages.

      As for Rails itself, knowing some Ruby and good idea of some things OO can do would be a good idea.

      also, how is this implimented? does it preform operations serverside that output the html/xml/whatever code in a similar fashion as php?

      Yep, that's the basic idea. Though the way you separate your code and HTML, and how you organize the code, is quite different from stock PHP.

      does it include database software in the ruby framework or do you still need something that is/is like Mysql to handle databases?

      Yes, if you are going to do a database-backed app (and most Rails folks usually are doing just that), you need an external database. It tries to make the thing abstract enough so you don't practically need to care much about what DB you use - MySQL and PostgreSQL are both supported, as is SQLite (so you don't need an actual database server running, though sqlite isn't exactly full of neat features) and many others.

      Though there's other things that can be used as the data backends, like Madeleine, which is used by Instiki. But some serious wizardry is needed for that, I hear...

  40. convention over configuration by soundofthemoon · · Score: 4, Interesting

    You're trying to be funny, but you've got the only comment so far that mentions what I consider to be the most significant thing about Rails - convention over configuration. One reason why Rails development is so fast and often enjoyable is that you don't have to muck about with a lot of XML config files. If you just follow the path of least resistance, things just work out right.

    The MVC triad in Rails uses the ActiveRecord class for the model part. ActiveRecord is an ORM (Object Relational Mapping) class that follows a few clever rules about doing the mapping, so most of the time you don't have to repeat your mapping multiple times. If you have a "User" class, it knows to look for a table in the db called "users", and assumes the primary key is an integer named "id". A foreign key to an account record is assumed to be called "account_id". The creation time of a record is assumed to be a datetime named "created_at". All common elements have reasonable defaults, so when you are working on your app, you don't need to spend a lot of time mucking about with config files to specify stuff that is just so fracking obvious that it is a waste of your time to type it.

    Rails is not all things to all programmers, but it has certainly hit the sweet spot for a huge class of web applications - database backed interactive sites. The Rails design is good for probably 90% of the sites that I use most.

    As for coder jollies, well, it's been a while since I enjoyed programming. With Rails I've regained my enjoyment for programming enough that I'm considering doing that for the main part of my work again.

  41. Easy installation by mortonda · · Score: 3, Informative

    For a window platform, download Instant Rails

    Or for linux, install mod_scgi and follow the instructions here

    It's stinkin' easy, I can do it in about 5 minutes. Any hosting admin worth their salt can even script it in about 10 minutes.

    1. Re:Easy installation by Anonymous Coward · · Score: 0

      (AC from before) Thanks, didn't know about that. Everything I've looked at says "either use FastCGI or fasthttpd". Then you go through installing a shitload of packages, half of them not working and/or giving you strange-ass error messages. I'll give your solution a shot.

    2. Re:Easy installation by znmeb · · Score: 1

      Or on Gentoo, type "emerge rails" :)

      --
      -- M. Edward (Ed) Borasky http://linuxcapacityplanning.com
  42. Static Typing Overrated by Dom2 · · Score: 1
    The only problem with using Python, Ruby etc is that as they are not strongly typed, you will not find out some problems at compile time and these problems will only show up at runtime, unlike in Java.

    That's why you have unit tests. And once you start writing them, you'll find that they catch a lot more bugs than static typing ever did.

    I've been using Perl/Python for over 10 years and I can count the number of times static typing would have caught bugs of mine on one hand. I find it thoroughly overrated.

    -Dom

    1. Re:Static Typing Overrated by pkphilip · · Score: 1

      How do you catch UI errors such as errors in the validation code in web pages using unit tests? Unit tests are useful when you have discrete blocks / units of code which can be tested without user intervention - such as business logic code etc, but it is not very useful for testing code such as UI handling code.

    2. Re:Static Typing Overrated by Dom2 · · Score: 1
      Simple -- by minimising the amount of code in the UI and ensuring that it is well partitioned so that it is testable in isolation.

      Now if you'd asked me about testing with databases, that's a bit harder. :-)

      Getting back on topic, the rails support for testing is a real breakthrough. Well worth taking a look at how it handles things.

      -Dom

    3. Re:Static Typing Overrated by meadowsp · · Score: 1

      You can do database tests with JUnit (just give it the same classpath as the rest of your code and you can use your framework code for database connections and so on). For web based tests you can use Apache Cactus for tests in the app server.

    4. Re:Static Typing Overrated by Anonymous Coward · · Score: 0

      As for your saying:
          That's why you have unit tests. And once you start
          writing them, you'll find that they catch a lot more
          bugs than static typing ever did.

      For me, a static type system is mainly a facility to express design intent in (human and machine readable) syntax. It helps me with design and with refactoring and constitutes some form of "implicit documentation".

      I know well that Kent Beck said, he's writing documentation comments in his unit test methods rather than the tested ones. But for me that approach would not work as well.

      You are right in saying that unit tests catch more coding errors. That's what unit tests were invented for. I don't think, however, static typing is primarily an "error catcher" for code; it's rather a mental tool for catching design blunders, because it forces me to think about what I want to do with which items.

      It's also a machine readable documentation that allows for better answers to questions like "Who is calling this method on x?" or "What do I have to change, when I want to refactor this?"

      The answers are more precise and focused because we know the types of x and other involved items. Unit tests don't help here since they were not designed for that; static typing does.

    5. Re:Static Typing Overrated by pkphilip · · Score: 1

      Yes, I agree with you. If as much of the code is partitioned away from the HTML, it will be much simpler to test. However, some of the UI logic will be difficult to test none-the-less.

      I too am a believer in writing as many unit test cases as possible, but sometimes that is not really possible - as you have mentioned, database handling is one place where it gets difficult; and anything to do with generation of UI; for instance generating a gantt graph based on values in the database.

      But yes, I do agree with you; a lot can be tested using unit test cases.

    6. Re:Static Typing Overrated by Beek · · Score: 1

      But what about bringing the database to a known state before your test? Then you need another tool, something like DBUnit.

      And if your functional tests are running Cactus and hitting a database, those tests are gonna be slowwww... They need to be fast if we want them to be run frequently, so now we need to add a mock object framework too...

      Rails has all of this taken care of already. If you'd rather put together a stack of tools yourself, that's fine. But that's another X days to add to the start of your project. And when you hire someone new, expect it to take longer to get them on the same page.

  43. Documentation by TLLOTS · · Score: 1

    Does anyone know of a source for good downloadable Ruby documentation? I did look over the documentation section on the ruby website briefly, but what was offered there was far too web based for my tastes, and I'd personally prefer something closer to a downloadable .chm file like the PHP documentation. Can someone please provide a link to the closest equivalent?

    1. Re:Documentation by RegularFry · · Score: 1

      Try the one-click installer for Ruby from http://www.ruby-lang.org./ If I remember correctly, it comes with a .chm version of the Programming Ruby book, which you can browse at http://www.rubycentral.com/book (or buy the second edition, which is nicer).

      --
      Reality is the ultimate Rorschach.
    2. Re:Documentation by jfmiller · · Score: 1

      You are correct. The documentation for Rails is virtually non-existant. Ruby has some of the best on-line documentation I've seen for a Language, but Rails has not caught up. The only candle in the vast darkness is hidden under a great deal of verbage.

      Uese the command 'gemserver' to start the local documentation server
      point your browser at http://localhost:8808/
      Select either ActiveServer or Active Record [rdoc]

      this will get you as much as there is at the moment. (other then the tutorials that don't help when you actually want to do the nifty thing that convensed you to make a web application in the first place)

      Good Luck
      JFMILLER

      --
      Strive to make your client happy, not necessarly give them what they ask for
  44. Re:Mod_python has easier syntax by eyeye · · Score: 1

    I don't remember the meaning of english being totally changed by adding a tab or a couple of spaces in. Looking at ruby it has quite similar syntax to python but without the liability of worrying about whitespace totally ruining your program.

    --
    Bush and Blair ate my sig!
  45. Re:Mod_python has easier syntax by Hast · · Score: 1

    I think the proper Python alternative to RoR is something like Turbo Gears.

  46. isnt ruby too perlish? by Anonymous Coward · · Score: 0

    The only reason i havent jumped into the ruby/rails wagon is because every time i try to learn it, i get stucked with the perlish syntax that makes me want to throw up, does all the people that comes into ruby are ex-perlers?

    1. Re:isnt ruby too perlish? by krmt · · Score: 2, Informative

      It's funny, I thought this too when I first started playing with ruby. But once I actually started using the language I found that I wrote in it completely differently than perl. Closer to what little python I had written actually.

      Ruby looks like perl because it uses the $ and @ prefixes, but it uses them for completely different purpose: in perl they denote type where in ruby they denote scope. This turns out to be a nice feature, since you should be using some sort of notation in your variable names to denote scope anyway. It also permits the concept of duck typing throughout the ruby community, which is a key feature in making the language natural and easy to use.

      Furthermore, people tend to write ruby with a lot more OO than in perl. Again, much closer to python.

      Finally, good ruby code uses blocks everywhere. You can do code block-like things in perl or python, but in ruby it's very simple, fairly clean, and a very natural part of the language. I think this is what really distinguishes ruby from python fundamentally as a language. RoR, like any app written in a ruby style, makes extensive use of this feature and it allows some of the things that make people so excited about rails.

      Oh, and the culture of the ruby community is such that people tend to write code that's fairly consistent between authors. Python is similar, although this seems to be more a function of the language itself than the community's culture. Perl's culture, on the other hand, encourages creativity and variety between authors, making it hard to read other people's code unless you know most of the camel book. I've never had any trouble reading someone else's ruby code, and I know about as much ruby as I know perl.

      --

      "I may not have morals, but I have standards."

  47. Trollicious by guet · · Score: 1

    So why don't you want to put your name (your anonymous slashdot handle at that) to this? Because it's an easy, cheap shot playing to the peanut gallery.

    Wow, a bunch of li's on a page. That's never been done before.

    Interesting that you think this site, just as an example, is 'just a bunch of li tags'.

    http://www.yakimaherald.com/

    It's been advertised enough. It doesn't need a cult-like following -- "use Ruby on Rails and you get to be one of the cool kids."

    People who talk about cults and zealots tend to enjoy battling straw men - why not discuss real implementations, and real points, instead of declaring victory over imaginary enemies? No one said anything remotely like the statement above, aside from yourself of course.

    Having used Ruby on Rails, I can tell you that it's really not worth the hype. It brings nothing new to the table, it doesn't really improve development times at all (if you, you know, actually try to implement something full-featured), and it's 50-100x+ slower than a comparable PHP or Java Servlet implementation.

    As compared to PHP, it brings a few interesting ideas to the table, including MVC, auto-generated methods and the ORM layer. If you wish to compare bits of Rails to bits of lots of other frameworks, of course you can find something of it in a lot of different places. As to your '50-100' times slower than 'x', I'm afraid that's just nonsense. For most of these frameworks if you have caching set up right you won't be hitting the database very often, and the speed has been shown to be comparable. Either can be faster than the other depending on how you program/cache. Here's a java guy having a look at rails (I think there was a slashdot story about it a while ago). Sounds fair to me.

    http://www.relevancellc.com/blogs/?p=31

    As to improving development times, it probably depends on the programmer. It doesn't have a 'write my app for me' button, but does provide useful helpers and abstractions, a lot of conventions which will help you not make a mess of your code, plus you get to program in Ruby, which is a fun language. Now perhaps you found it too restrictive, or limited in certain ways, if so, perhaps you'd like to post something more constructive and debate the weaknesses of the framework (no officially blessed internationalisation, authentication or sub-applications).

  48. Spit? by Anonymous Coward · · Score: 0
    ...not packed with new features over 0.14.x, but has spit...


    Ewww!
  49. Re:Jebus, has the poster or mod ever used rails??? by mwvdlee · · Score: 1

    If web apps share a lot of commonality, then why would you have to start from scratch every time if you're not using RoR?

    --
    Slashdot social media options: AIM, ICQ, Yahoo, Jabber and Mobile Text. Why no MySpace?
  50. Re:Mod_python has easier syntax by Anonymous Coward · · Score: 0

    like a missing semicolon "totally ruining your program" in other languages. You do test your programs, don't you? Python will quickly tell you where the indentation problem is. Of all the things to complain about...

  51. Can anyone offer a contrast to Gears and Django? by jherber · · Score: 1

    I know the other frameworks are in Python, but I don't have a problem with tabs. Can anyone make a comparison about why Ruby on Rails is better or worse than these other two rapid web prototyping frameworks? I haven't coded in Python in 4+ years, has Ruby become significantly better or different than Python for web, text, and database processing?

    http://turbogears.org/download/
    http://www.djangoproject.com/

    Thanks to anyone who has used all 3 frameworks or has any insight.

    Jim

  52. Symfony by Abstract · · Score: 1

    Anyone who is looking for a PHP port of Ruby on Rails has to take a look at Symfony.

    Based on the best practices of web development, thoroughly tried on several active websites, symfony aims to speed up the creation and maintenance of web applications, and to replace the repetitive coding tasks by power, control and pleasure.

    If you have been looking for a Rails/Django-like framework for PHP projects with features such as:

    * simple templating and helpers
    * cache management
    * multiple environments support
    * deployment management
    * scaffolding
    * smart URLs
    * multilingual and I18N support
    * object model and MVC separation
    * Ajax support

  53. One word by hey! · · Score: 5, Insightful

    Prototype.

    Next time there is a project to X, do a prototype of some of the functions in RoR, ostensibly so you can get it done in a couple of days and you can use it to figure out requirements. After playing with a couple of days, sit back and watch as the app dev group spends a month laying the keel for their "enterprise" class implementation. Continue to use your prototype to demonstrate new requirements (they always come up). If, after three or four months, the app dev group doesn't appear close to being able to deliever any business value, then one question that management should raise is what, exactly, is the property of "enterprise" that justifies the difference in effort between rails and whatever they're using. Then determine if it could indeed be put in the RoR prototype. If so, you're in. If not, you've contributed to requirements understanding and live to fight another day.

    --
    Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
    1. Re:One word by Anonymous Coward · · Score: 0

      Mod parent up!

  54. Re:Can anyone offer a contrast to Gears and Django by arevos · · Score: 3, Interesting

    I've briefly looked at all three frameworks, and here are my impressions:

    Turbogears is made up of separately developed components; CherryPy for the controller and HTTP server, SQLObject for database modelling and Kid for templating. Turbogears is pretty similar to RoR, but has less automation, and has a more Pythonic and component-based approach to development. Sometimes it's a little obvious that the components were created separately

    Django is more like Rails, but is somewhat more specialised. If you want to create a site with an administration section, then Django does a lot of the work for you. Beyond that, Django stacks up pretty equally against RoR.

    Both these frameworks are Python based, which again results in some differences. They may be easier to learn, but may lack a little of the flexibility that Ruby boasts. Ruby doesn't have many features that Python hasn't, but it does have some.

  55. Re:Mod_python has easier syntax by same_old_story · · Score: 1

    django is coming out great...

  56. Nope. by Anonymous Coward · · Score: 0

    You're confusing strict/weak typing and dynamic/static typing. They are essentially orthogonal properties of a typing system. (Although the combo with static/weak doesn't make much sense). See e.g. here.

    1. Re:Nope. by lux55 · · Score: 1

      You are correct. Ruby is in fact strongly typed, as seen by the following quick example:

      >> i = 5
      >> foo = "items: " + i.to_s
      >> put foo
      "items: 5"
      >> foo = "items: " + i
      Type Error: cannot convert Fixnum into String ...

      Anyway, the i.to_s method and type conversion in general are so smooth you forget having used them if you've been away, as I have, from Ruby for more than a few weeks. Since Ruby, being dynamically typed, is able to infer from the value the type it should be, it does blur the lines a bit as to how they _feel_ to program in. Ruby being dynamic, but strongly typed. PHP being dynamic, but weakly typed.

      Perl would have been an example language that is also weakly typed along with PHP. It's funny though that this isn't a drawback in Perl yet it is in PHP. Regardless, all of these do have the same prototyping feel to them, the "fluidity" as the original poster said.

      The real issue I have with Java is the inability to define new objects on the fly. That's not so much of a type issue though, just something that drastically decreases the flexibility of the language for things like web applications. Java also being static typed is just icing on the cake that makes it nearly unbearably slow to code in.

  57. "I use Python because Google uses it" by Anonymous Coward · · Score: 0

    If someone would ask me why I use Python, I would simply say:
    "I use Python because Google uses it" :-)

    Come on. Python is great. Ruby is greater. Use the greater one.

  58. Ruby on Rails on Fedora Core 4 by clear_thought_05 · · Score: 1

    Just thought I'd add that I've found this guide very useful for Rails on FC4: http://digitalmediaminute.com/howto/fc4rails/. Very thorough.

  59. PHP Version of Rails by Anonymous Coward · · Score: 0

    Some developers have started to create a sort of PHP version of Rails at http://www.cakephp.org/

    Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility.

    I'm just using it for a week now, ruby might be better, but after erlang I'm too tired to learn new languages for a while.

  60. Re:Can anyone offer a contrast to Gears and Django by pkphilip · · Score: 2, Informative

    Please check out http://www.webwareforpython.org/ - it is another framework which I haved used and it is quite good.

    Turbogears is similar in many ways to Webware, but there is a bit more setup involved. Atleast I had some trouble with that but this may not be the experience of others.

    Between RoR and django - I prefer django because it can generate the database directly from the Model source code unlike in the case of RoR where it is a bit more involved. Django also generates (optionally) a good administration area which is quite usable even on a production environment; this is also lacking in RoR.

    In the end, I prefer Webware over the rest because it gives me a whole lot more flexibility than either RoR or Django (I haven't used Turbogears a lot, so I can't comment much on that). Webware is closest to the J2EE style of functioning but yet stays clear of J2EE's idiosyncrasies. Also, there are more web hosts supporting python than Ruby and that kinda rules out RoR for most of the work I do.

  61. Re:swap your loyalty cards... by Forbman · · Score: 1

    The irony here, though, is you're complaining about something on a website, which further up is clearly advertised, described, etc., on another website. You complain about the lazyness of the editors [sic], yet it's too much to expect of yourself to do some of your own legwork and investigation?

  62. Rails cost/benefit results by rheotaxis · · Score: 4, Informative
    So far, I love Rails, because I have done the following, with these initial costs:
    1. new domain name, $5/year
    2. Rails host acct, $12/year
    3. my time spent, about 6 to 10 hours a week for last 2 months

    Installed Rails Apps (open source): (sorry, no links to my domain, must avoid /. effect):
    • blog at my own domain using typo
    • agile, extreme programming management tool using eXPlainPMT
    • a to do list using Tracks
    • content management system using MuraveyWeb CMS


    How is this different? I only worry about one Terms of Service, imposed by the web host. I control all aspects of the deployment of the Rails apps. So the blog is not just my blog, its a blog at my domain (or sub-domain if I perfer), and I control the databases that store its content. In fact, I control every aspect of the blog. For instance, I could make the blog appear and disappear based upon phases of the moon. Can you do that with any blog host, just by changing two links at a shell prompt?

    The same goes for every other Rails app I have deployed on my server account. The Rails principles of "don't repeat yourself" (DRY) and convention over configuration, meant that once I installed one Rails app, the experience was immediately applicable to installing the rest. They all have the same directory structure, and the same configuration file for database connection, which is the only configuration file you must edit.

    The rest just works, usually. You have to check your versions, and make sure your app and Rails work at the current version. I admit I have experience building server side web projects using VB6 DLL and ASP.NET, along with equally strong UNIX background, so I was able to tweak a few things and proceed when they didn't work the first time. Don't dispair, I was able to make it work after a few hours of checking on-line forums, and trying some suggestions.
    --
    Software freedom...I love it!
  63. Re:swap your loyalty cards... by TangoCharlie · · Score: 1
    [...]yet it's too much to expect of yourself to do some of your own legwork and investigation?
    Yes, it is.

    The whole point of new sites such as slashdot.org, The Register, The Inquirer, etc... is that they should provide enough info to get you to bother to follow the links through to the real info....

    If slashdot announces that a new version of vim on steroids has been released, then it might be interesting to know what exactly vim was. At the very least the FA which the article points to should say what it is all about.

    I know I could have simply typed "Ruby on Rails" into google and found out exactly what it was... the whole point is that's exactly what I had to do.

    --
    return 0; }
  64. And for an OS X platform... by 5n3ak3rp1mp · · Score: 1

    Download Locomotive to get a working Rails environment on OS X lickety-split.

  65. Component Model by pkulak · · Score: 1

    Does Rails have any kind of a component model yet? Last I checked they abstracted me completly away from the database with ActiveRecord, but I was still left to manually parse fields out of the request. That just doesn't do it for me when there are tools like .NET and Tapestry/Wicket out there.

  66. Come on now. by Some+Random+Username · · Score: 1

    Wasting time having to write unit tests to compensate for a languages shortcomings is just silly. Why not simply use a decent language to start with? I've seen tons of bugs (python in this case) from dynamic typing. The only disadvantage of a statically typed language is a couple extra keystrokes (int foo instead of foo), so why not use one?

  67. That's about the worst example possible. by Some+Random+Username · · Score: 1

    It is an incredibly simple site, and all of the content is actually just static files. Rails isn't handling any loads, its just generating an html file and the webserver is serving that. Maybe if the forum were in rails you would have a point, but its still php.

  68. Another good intro by CommandoB · · Score: 1

    If you're new to programming (or your kid or sibling is), there is a great introduction to programming (that happens to use ruby) at:

    Learn to program, by Chris Pine

    Check it out. It's really fantastic.

    --
    Not that I post on slashdot or anything.
    1. Re:Another good intro by Anonymous Coward · · Score: 0

      Wow, that really is great; thanks for the link. I'll learn it to use Ruby myself and then pass it along to my sister.

  69. Rails learning curve DOCUMENTED by kallistiblue · · Score: 1

    I've read all the hype and I'm convinced that I want to learn Rails.

    I'm documenting my experiences here:
    http://www.railsroad.com/typo/ is going to detail my experiences learning Rails and Ruby.

    There has been lots of hype about the incredible productivity boosts that Rails gives developers. Railsroad.com is going to detail my experiences learning Rails and Ruby.

    Unlike some of the Rails blogs written by self-professed Ruby newbies. I'm a real newbie! I'm not coming from a background of 5 years developing web applications in Java.

    I programmed games in Basic in the early 1980's, BUT I stopped programming when I started dating, so I'm a real newbie.

    I've learned a lot about what users want having created several popular sites. My hope is that Rails is the tool to help me draw my ideas into the real world.

    I promise I'm going to share exactly what I think about Rails and Ruby. No Hype, no B.S.!

    Plus, I think It'll be fun for experienced programmers to laught at my ignorance.

    Now, I've got to get back to work.

    --
    Laugh at my ignorance while I learn Rails - a Real ne
  70. Rails brings the "Rapid" to Rapid App Development by CleverFox · · Score: 1

    I have been writing some internal web applications for my corporation using Ruby on Rails. I will never go back to PHP or ASP.NET. Ruby on Rails lets me write things in 10 hours it would take me 50 hours to write in PHP. The framework is set up to make it easy for you to re-use code and stylesheets so you don't end up writing the same stuff over and over. I've written much more PHP code than Ruby code but I am already much more productive in RoR.

    I love how small and compact RoR apps are. You end up with less lines of code and therefore project maintenance is so much easier. The "migrate" class is amazing. Gives you version control for your database schema. It really speeds up the development cycle.

    Not only that but Ruby on Rails is fun to program in! Everything is so squeaky clean and organized. It gives you a good feeling and is much more readable than the old spaghetti code I used to write in PHP. Ruby on Rails has templating built in so you don't have to go install and learn some third party template program. I love it. I am so much more productive I am blowing away the other web developers who write in non-RoR frameworks. They have no chance at competing with me.

  71. Re:Mod_python has easier syntax by richieb · · Score: 1

    Thanks!!!!

    --
    ...richie - It is a good day to code.
  72. Re:LAMR by gumpish · · Score: 1

    LAMR doesn't spell anything!

    "Lamer".

  73. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  74. Re:Can anyone offer a contrast to Gears and Django by znmeb · · Score: 1

    Don't know about Gears, but there was a whole conference a week or so in Chicago featuring the creators of Rails and Django!! The URL would be http://snakesandrubies.com/event/ I'm not sure if audio/video is posted anywhere yet, but it's coming.

    --
    -- M. Edward (Ed) Borasky http://linuxcapacityplanning.com
  75. RubyOnRails 1.0 already has extensive AJAX support by eventDriven · · Score: 1

    I dare say it's the sexiest thing I've seen yet. If they ever release a version 2 that allows for simple Javascript on the client for AJAX interfaces, there will be only 1 game in town for web development!

    Ruby on Rails 1.0 already has extensive AJAX support. It uses the Prototype library and the Scriptaculous library (which builds on top of Prototype). Thomas Fuchs, the creater of Scriptaculous is a core Rails contributor.

  76. So, now that you're... by Da+VinMan · · Score: 1

    ..an expert on the subject (yes, tongue in cheek; no worries) - I'm curious: Which one would you use?

    Actually, let me stack this up in a little more clear fashion for you. I've been thinking about putting together a startup. I have looked pretty much at every viable open source web framework in existence. I am very well versed with .NET as well and, to a lesser extent, Java web frameworks.

    I am finding the choice of which framework to use for a startup (focusing on web applications) to be absolutely impossible. They are all great in their own ways. To summarize the leading candidates:

    DJango
    TurboGears
    Ruby on Rails
    ASP.NET on DotNet 2.0 (to which I have easy access; so cost is not a factor)

    So, which would you choose?

    BTW - I purposely have not focused on proprietary frameworks other than the ones I already know. If I'm going to stretch myself in new directions, I would prefer to ensure that experience is with open source frameworks. Also, learning curve on any of the above options is also not a factor. I've done small projects with Python and Ruby, as well as my regular work with DotNet.

    --
    Please mod this post only if you think others should/n't read this. I have enough ego^H^H^Hkarma. Thanks!
    1. Re:So, now that you're... by arevos · · Score: 1

      Difficult choice there. As you say, they're all good in their own ways.

      However... overall, for commercial purposes, I'd personally be tempted by Ruby on Rails. I'm a Pythonist at heart, but Rails has several things going for it:

      1. Popularity and recognition.
      2. Code generation that gives you a good starting point from which to develop your application. This can save quite a bit of time.
      3. Maturity. At version 1.0, Ruby's pretty darn stable and well documented.

      In addition, Ruby is a powerful language. More so than Python (though not by much), and certainly more than ASP.NET. This again is another thing in Rail's favour. Not only will does it open up your options, but it also expands your knowledge as a programmer.

  77. Mambo/Joomla clone by efuzzyone · · Score: 1

    I have not tried ruby yet, but are there any CMS similar to Mambo/Joomla for ruby?

    Thanks.

    --
    Creativity uninhibited www.kreeti.com
  78. editor by amazon10x · · Score: 1

    I like that editor he is using in the presentation about schemas. Can someone tell me the name of it and if there is something almost identical to that for use on windows?

    1. Re:editor by kalleh · · Score: 1