Ruby on Rails 1.0 Released 332
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.
Re:"mostly right"??? (Score:5, Insightful)
Re:"mostly right"??? (Score:2, Insightful)
Re:"mostly right"??? (Score:5, Insightful)
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.
Re:"mostly right"??? (Score:4, Insightful)
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.
Re:"mostly right"??? (Score:3, Insightful)
Jebus, has the poster or mod ever used rails?????? (Score:4, Insightful)
You speak of momentum. (Score:5, Insightful)
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.
Ahem... (Score:3, Insightful)
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 [joelonsoftware.com].
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!
Re:"mostly right"??? (Score:2, Insightful)
Re:Why rails annoys me... (Score:0, Insightful)
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.
Re:Give ruby a quick try first (Score:3, Insightful)
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.
Re:Give ruby a quick try first (Score:3, Insightful)
Re:Ruby on Rails more "secure" than PHP? (Score:3, Insightful)
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.
Re:Give ruby a quick try first (Score:1, Insightful)
There's no back button on a command line. Why should there be on a web page that emulates one?
Re:Commercial/Enterprise use? (Score:2, Insightful)
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.
Re:Ruby on Rails more "secure" than PHP? (Score:3, Insightful)
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.
Re:A better solution than PHP. (Score:2, Insightful)
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 [phpwact.org] (though none as popular as RoR at the moment). Some are trying to imitate Struts and others trying to mimic [cakephp.org]RoR [phpontrax.com].
In fact, Zend is quite aware of RoR's popularity is in the process of creating its own framework to compete: the Zend Framework [shiflett.org].
One word (Score:5, Insightful)
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.
Re:AJAX quality is suspect (Score:2, Insightful)
Re:Why rails annoys me... (Score:2, Insightful)
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.
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.
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.
Re:Ahem... (Score:2, Insightful)
"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.
Re:Why rails annoys me... (Score:2, Insightful)
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.