“Prototype-ing” an app

I am currently working on a small open-source web application (more on this later…) following the so called web 2.0 kind of approach. Like you would expect from a web 2.0 style app, we will soon put online a beta ;-)
I decided to use the famous Prototype library and add on top of it script.aculo.us (Prototype based) as well as the brand new event:Selector (Prototype based too). It is simply amazing how powerful and beautiful are those tools, they give me a new pleasure to code in javascript. Thanks to those fantastic creators!

Follow-me …

I have not yet covered the all prototype power but everytime I look at it, I discover something that really take out some pain from my brain as well as from my hands (coding long lines of code). Prototytpe is part of Ruby on Rails but can be use in any application and with any type of server app. My app is not (yet) RoR based, simply PHP but it just integrate the same way. If you want to use it too, please go directly to Prototype 1.5_pre0, it hads some nice and so useful tricks such as the $$() function.

What to say about scriptaculous? Just have a look to their website and demo and you will see how easy it is. Nice AJAX “widgets” that I use a lot in another app for a customer and billing system (more on this later too..) and of course a lot of effects that make nice web application…just don’t put too much effects, remember the blink tag in the early days of the web (for those not too young!).

event:Selectors is a brand new tool, also based on Prototype which have been written to replace the very famous Behaviour. Not that Behaviour is bad, but I fully agree with Justin Palmer, when you use Prototype for your application, Behaviour repeat a lot of un-usefull things…so he decided to kind of rewrite Behaviour based on Prototype goodies and of course he added to it a few (I should say a lot…) extras for our pleasure, such as joining several css for a same function or re-apply automatically all the rules after every httpxmlrequest (AJAX), and many more…but I let you discover all these by yourself!

I will come back later to discuss more with some details…stay stune!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>