ruby

Ruby -vs- PHP Showcase: nsupdate script

This a showcase of a Ruby script competing with a PHP script. The main focus is on useability and ease of implementation. The scope is a single simple script (say 10 to 100 lines).

(originally from Mar. 2007)

Please note that I don't intend to benchmark the competitors. As I said the scope is limited and the focus on getting it done now. Then both could be run in client mode (off-web), CGI or fully embedded, I'm confident you can optimize if the need comes up. Also note this is an example to promote the use of Ruby not bash PHP.

Tags: 

session :no_cookies => true, :except => [ :login ]

Do all those new web2.0ish sites need to throw cookies at the casual viewer just on the first page? Isn't there a short and sweet way to stop rails from throwing cookies like there is nothing to them? Ok, that's not a question. Rails always delivers!

Tags: 

Option Switch Helper for Rails

There are always some options for your page. Perhaps the number of items to display (articles, picture, projects, ...). Or the sort key for those. Preferably you set some sane defaults. But you'd like to enable your visitors to change those?

Subscribe to RSS - ruby

triq.net blog © 1999-2011 Christian Zuckschwerdt — powered by seven of drupal — run on lamp