Dondo Land

Bryan Donovan's Weblog

All | General | Music | Rails

20061204 Monday December 04, 2006

 Confessions of a Sun Rails Developer

I'm really glad to see that Sun is supporting the JRuby project now, and seems to be supporting scripting languages in general. I feel like now I don't have to give excuses at work. I've been developing web applications used Sun-wide internally for over a year and a half now. I work as a quality engineer in Operations, so I'm not really surrounded by Java developers, but I've still received the occasional question asking why I didn't develop in Java (or Perl, another favorite here). The truth is that I just don't know much Java, and some attempts to learn J2EE a couple of years ago frustrated me a bit. Also, I already knew some PHP, so I developed in PHP at Sun for a couple of years until I got good at it. Then I found Rails and tried it out. I immediately got it installed on my server and started developing in Rails from then on.

I like Rails because it provides that perfect mix of coding ease and structure. The Ruby language is extremely flexible, easy to understand, and truly object-oriented. PHP provides much of this, but the language is much more verbose. PHP seems to be a gateway language for many new developers (myself included, aside from some C/C++ in college), and not surprisingly, there are a lot of bad PHP applications out there (I am the guilty author of some). Ruby, on the other hand, is being learned for the most part by new Rails developers. The Rails framework definitely helps new developers create well-organized applications from the beginning. Basically, if PHP would have become popular because of a framework, we wouldn't have as much bad PHP code out there. I really like PHP still, but I like the Ruby/Rails stack better. When I do write PHP code, I try to structure it as well as possible, usually with a variety of PEAR libraries and using CakePHP as a framework (CakePHP follows a lot of Rails-like conventions, and is a very good framework). I wish the PHP books I read when I first started out used a good framework to teach with. However, if they had, we might not have needed this "Rails Revolution".

With JRuby, I hope to see Ruby get faster, and maybe I'll learn Java so I can write fast, compiled portions of my future Rails apps. Long live Java and Ruby!



(2006-12-04 09:04:08.0/2006-12-04 09:04:08.0) Permalink Comments [2]
Trackback: http://blogs.sun.com/bdonovan/entry/confessions_of_a_sun_rails

Trackback URL: http://blogs.sun.com/bdonovan/entry/confessions_of_a_sun_rails
Comments:

I have yet to try Ruby on Rails, basically because I yet to have a need to. However, if there is one area where Java shines, it is in frameworks. Some argue that there are too many. The most general and therefore complex framework is the Java EE spec (which is a spec of frameworks). You also have Struts, Spring and a host of others (you could even write your own custom one, which I did at my formor employer). While I do enjoy developing applications in "scripting" languages, such as PHP (I despise PERL). The beauty is you get your application up and running fairly quickly. However, my personal belief is that low up front cost, comes back to (more so) you during the maintence phase. This is an area where I believe that Java fairs better than (insert your favorite scripting language here). It is great that Java 6+ has scripting support, but be warned that I would rather maintain Java source than most other scripting languages.

Posted by Abraham Tehrani on December 04, 2006 at 10:45 AM PST #

The great thing about a Rails app is that it's easy to maintain due to the well-designed framework, yet is much more concise and easy to read than Java. The downside (to me anyway) is that a Rails app will be slower than a Java app, all else being equal. I haven't run into problems with slow apps yet, mainly because I can cache the expensive code.. and I haven't had to deal with huge amounts of traffic yet.

Posted by Bryan on December 05, 2006 at 04:04 PM PST #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed

« November 2009
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
     
       
Today


XML







Today's Page Hits: 35