Powered

Fun with themes

Posted by David Morton Tue, 22 Aug 2006 05:22:27 GMT

With the new blog software comes the ability to do a new look than the typical typo theme that is overdone. This theme is a tribute to the textmate editor for Mac; somehow appropriate in honor of the new macbook pro on its way here!

Posted in ,  | 4 comments | no trackbacks

PHP vs Ruby, Why Rails just isn't the same in any other language

Posted by David Morton Sun, 22 Jan 2006 22:55:00 GMT

I just looked at another front runner to Rails, called CakePHP. In this example there is a fundamental concept that shows how beautiful Ruby is compared to PHP.

The view, as done by PHP:

 <td><?php echo $post['Post']['id']; ?></td>
 <td>
  <?php echo $html->link( $post['Post']['title'], 
          "/posts/view/{$post['Post']['id']}" ); ?>
 </td>

Now, that <?php echo stuff is rather verbose, and the method to access attributes is way too long. The equivalent section in Ruby:

 <td><%= @post.id %></td>
 <td>
  <%= link_to @post.title, :action => 'view', :id => @post %>
 </td>

Now, tell me, which one is easier on the eye?

Posted in  | 6 comments

Instant Rails preview 7 released

Posted by David Morton Fri, 16 Dec 2005 00:13:00 GMT

Within 24 hours of Curt Hibb’s asking me to join the Instant Rails project, I found myself rebuilding the whole thing over and over to get typo installed, and upgrade all the gems needed for rails 1.0 and stuff, as well as fixing the new bugs with SCGI and rails.

As of Rails 1.0 and Instant Rails preview 7, the recommended way to run SCGI is to mount scgi on /dispatch.fcgi and make the .htaccess to match. No need to jump through hoops to install typo: it is installed by default now!

I am flattered by Curt’s invitation to help on the Instant Rails team, and I’m looking forward to showing that it truly is not difficult to set up a rails server.

Posted in  | no comments

Older posts: 1 2