Tuesday, January 17, 2006

 

Ever closer to Greenspun's Tenth

Anyone who's glanced at LML's should find Markup for Ruby familiar:

html do
head do
title action_name
stylesheet_link_tag 'scaffold'
end

body do
p flash[:notice], :style => "color: green"
self << @content_for_layout
end
end

Friday, January 13, 2006

 

Fits like a glove

I've had a dry spell of coding at home, between the holidays and reading "Ajax in Action", but reading some of the long postings at Planet Lisp should be enough to guilt any slacker back into action.

This has uncovered yet another advantage of Common Lisp, at least for me; how short a time it takes to get back up to speed with the language after being away from it. It takes me considerably less time to get back "in the groove" than with other languages, with less references to language manuals. I don't know how this is for others, but Lisp fits my brain.

I think this is because of the lack of syntax. Instead of having to remember operator precedence, the operators themselves, strings of characters that look like Yosemite Sam swearing, it's just almost-English words and parentheses. The language is built on just a few core concepts that can be mixed and matched, instead of a bunch of rigid rules and details that have to be remembered.

This page is powered by Blogger. Isn't yours?