Archive

Archive for the ‘Ruby on Rails’ Category

Ruby on Rails 0.13 and Script.aculo.us

July 6th, 2005 ramin View Comments

Looks like Ruby on Rails 0.13 has been released and with this release comes 225+ features and bug fixes. One of the coolest features added to this version of Rails is he addition of the Script.aculo.us Javascript libray.

Script.aculo.us is based on the Prototype javascript library and extends the basic visual effects provided by that library to create some really cool visual effects. Effects like: Appear, Fade, Puff, SlideUp and Down, BlindUp and Down, DropOut, Shake, Pulsate, Squish, Fold, Grow, Shrink and Highlight.

Besides the cool visual effects, Script.aculo.us also provides Drag 'n Drop functionality, dynamic element sorting that saves using Ajax, Google suggest functionality which also uses Ajax and some more that I'm sure I've forgotten about. This thing is simply amazing.

Categories: Javascript, Resources, Ruby on Rails Tags:

Agile Web Development with Rails (BetaBook)

May 26th, 2005 ramin View Comments


Hey Rails fans, the beta version of the upcoming Rails book from the Agile series was announced today. Grab it while its hot!

http://www.pragmaticprogrammer.com/titles/rails/index.html

If you order the beta version now, you will get the final copy when its released. No extra charge. The beta release is an experiment by the Pragmatic Programmers site to see how the community response to it and also to give developers an early look at the book. This benefits both parties, as it allows the developers to get their hands on the book sooner and also helps the authors by allowing the readers to suggest fixes to typos and errors.

Categories: Ruby on Rails Tags:

Backpackit – The Review

May 1st, 2005 ramin View Comments

My first impression of Backpackit when I saw my homepage was, "hmm.. pretty simple", but not in a simple to use way, but rather the design and layout was very simple and nothing too fancy. This can be both good or bad, depending on the type person you are. It definitely has some nice subtle details, like a slight drop shadow on the main container, nice looking buttons and a good selection for the font size. But beyond that, it just seemed a little boring to me. Some rounded edges would've made it a look a little nicer, but really not all that important.

One thing that bothered me was the showing and hiding of the different sections as you click on the top buttons (List, Notes, Images, Links, etc.) As you click on each button the corresponding section appears. However, the previous section(s) don't hide, so the effect is sort of jumpy and awkward and hard to see what you just opened. You will see what I mean when you test drive it on Tuesday. I would've liked to see some nice Fade in and Fade out effects or even the Fade Anything Technique (FAT) effect on those sections when they appeared and disappeared. Just minor little annoyances or future enhancements.

But enough about the look-n-feel, let's talk about the functionality and the use of the application. The main idea behind Backpackit is for you to be able to organize your day-to-day information all in one place. You can create to-do lists. You can send yourself little notes, images, files, etc. You can set quick little reminders - which are then alerted to you by both email and an SMS message on your mobile device (one of the more useful features - IMHO)

The ability to email yourself the contents of one of your pages is a pretty neat feature also. It would be nice to be able to email the same page to your friends as well, but I guess a simple email FWD would solve that problem. As for emailing content to the page itself; every page that is created has a unique email addresses generated to go along with it. This was another annoyance about the application, but it seems like it is a necessary step to prevent spam and make your pages more secure. You can generate random emails until you find one that you like, but remembering these email addresses is quiet difficult. One suggestion that the FAQ page makes about the email addresses is to add them to your email program's contact list and give them friendlier names based on the content of the page you are updating (for example, BP Homepage). This is not a bad solution, but I would still rather have an easier email address to remember with maybe username/password in the subject line or body.

Overall, the application has its uses and is very simple and intuitive to use. The email commands are quiet simple as well. To send yourself a note, you create an email with a subject like so,

todo: Pick up little sister from school

Or you can optionally just put the word "todo" in the subject line and use the email body to create a more descriptive todo item.

If you just send an email with a subject line and body text, a special section is created on your page called "Emails". The email section contains emails that you send to yourself. The subject line becomes a link and the body text becomes the target to that link. This is a good way to send yourself bits of information, like a cool website or link that you found online. Or maybe a recipe or a funny news article that you want to look at later. I normally use my Del.icio.us account for this purpose, but that thing is getting way outta hand and too cluttered. Emailing myself the information may be a better alternative. Now if only those email addresses were a little easier to remember!

Well, thats all I have time for now. I have concluded that Backpackit could be used in a number of useful ways. For me, I am not sure if I can justify paying for the upgrades. I can save myself the money and just send myself emails and use Del.icio.us. But for those of you who are very disorganized and constantly send yourself notes and reminders, it might be worth the $5 a month.

Categories: Ruby on Rails Tags:

Ruby Templating Engines – Do we really need them?

April 27th, 2005 ramin View Comments

When I first learned about Ruby and Ruby on Rails, I quickly went through some sample code and looked at the syntax of the code. I must be honest and confess that the Ruby syntax was not what I was expecting, or used to. Coming from a strictly Java and PHP world, the lax syntax of Ruby was a big turn off to me. No curly braces? No semi-colons? What on earth is going on here?!?!

Well, I just needed to step out of my habit. I still haven't had much experience with Ruby, but I have come to accept the syntax and learn to work with it. I understand that Ruby allows you to use curley's and semi-colons, but when there is no strict structure enforced, you get different developers writing in different styles, and that get pretty ugly.

The next thing I looked at was how Rails handled its view in the Model-View-Controller paradigm. Being a front-end developer, the View is very important to me. When I first got involved with JSP's, I hated how developers would put scriptlets all over the html page and mix the logic in with the presentation. The same problems occured in PHP. Now here was a brand new framework on a relatively young language, and yet it seems like the same problems exist on Rails. Rails (and Ruby) use the same scriptlet syntax as asp, php, jsp, etc. To embed some logic or code into your html, you use < %= %> to print out a value and < % %> to process other Ruby code. To the defense of Rails, there isn't much "logic" within the html templates, but the scriptlet tags are still there and some reason it just bothers me.

Instead of complaining, I decided to see if there were any Ruby templating engines out there. I was glad to find quiet a few. Some good ones and some not so good. I found a nice listing of the more popular ones on this page:

http://www.rubygarden.org/ruby?HtmlTemplates

I haven't had the chance to delve into each one in detail, but from what I've read and the tutorials I've seen, my favorite ones are:

- Xtemplate http://xtemplate.sourceforge.net/index.html
- Amrita2 http://amrita2.rubyforge.org
- Iowa http://enigo.com/projects/iowa/index.html
- Kwartz http://www.kuwata-lab.com/kwartz/index.html

When I have a better understanding of each one, maybe I will create a comparison chart and discuss their advantages and disadvantages.

Categories: Ruby on Rails Tags:

Ruby on Rails 0.12.0 is out!

April 19th, 2005 ramin View Comments

These Ruby on Rails guys are pretty quick with their releases. They don't just release tiny bug fixes either, there are "a total 96 changes" in this release. Amazing.

Read more about this release

Categories: Ruby on Rails Tags: