so many toys, so little time!

Posted by phillip Sat, 02 Apr 2005 22:00:00 GMT

CSS Fiddling

Instead of rebuilding from scratch (using a framework or blogging system i have yet to pick) i played around with the CSS trying to make the page look a little cleaner.

Ruby

Ruby is a modern scripting language from japan, with a quite different but concise syntax and feature set.

a simple example - creating and looping over an array

… in ruby:

theBig5 = %w[lion rhino buffalo leopard elephant]
theBig5.each {|x| puts "a #{x} is a big and dangerous animal!"}

… the same in php:

$theBig5 = array('lion', 'rhino', 'buffalo', 'leopard', 'elephant');
foreach ($theBig5 as $x) {
  print "a $x is a big and dangerous animal!\n";
}

… and in javascript:

theBig5 = new Array('lion', 'rhino', 'buffalo', 'leopard', 'elephant')
for (x in theBig5)
  document.writeln('a ' + x + ' is a big and dangerous animal!')
}

… and in c#:

string[] theBig5 = {"lion", "rhino", "buffalo", "leopard", "elephant"}; 
foreach(string x in theBig5) {
   Console.WriteLine(x);
}

Ruby on Rails

… is a framework for quickly building web applications. The basic components and architecture are already there (filesystem layout, database access, conventions, clean urls, logging, etc.) is already there, relying on standard patterns. So you only implement your stuff using the prepared structure. The application uses the MVC pattern, has some very neat features like ActiveRecords (Access/Modify database data through objects), Routes (Clean URLs without having to wrap your brain around mod_rewrite) and a command-line script to generate code skeletons you then fill with your code. very nice. so all you have to do is learn how to use that and you can develop web applications very fast.

Disclaimer: If you’re a ruby expert, please forgive me any errors or misconceptions. I have been playing with R and RonR for two days only.

XMLHttpRequest

by using this technology, the information on web sites can be updated without reloading the whole page. This way, the user experience is much more application-like. Instead of click-button – page goes blank – wait – new content is there, it’s now click button – wait – page is updated. A lot faster.

Online Examples:

this combination of web technologies technology is generally referred to as “Ajax”

No se puede tocar

Posted in , , ,

Comments are disabled