Arquivo de Abril de 2008

Para lembrar sempre

Quarta, 30 de Abril de 2008 - Lucindo

Hunchentoot e REST, parte 2: suporte a ETags

Domingo, 27 de Abril de 2008 - Lucindo

Bom, esse post é mais um snippet de como implementar um serviço REST usando Hunchentoot. Dessa vez adicionei suporte a ETags no código do outro post. Ficou assim o tratamendo das requisições:
(defvar *data-id* “e8d8993494ffc11:b8e”)
(defun get-data-id (target)
“get the last id for requested data”
*data-id*)

(defmethod handle :around (request-method)
“ETag support for all methods”
[…]

Testes unitários

Domingo, 27 de Abril de 2008 - Lucindo

As to your real question, the idea of immediate compilation and “unit tests” appeals to me only rarely, when I’m feeling my way in a totally unknown environment and need feedback about what works and what doesn’t. Otherwise, lots of time is wasted on activities that I simply never need to perform or even think […]

Mudança de planos

Terça, 22 de Abril de 2008 - Lucindo

David Heinemeier Hansson na Startup School 2008

Domingo, 20 de Abril de 2008 - Lucindo

Como programador ele é um ótimo businessman

Hunchentoot e REST

Domingo, 20 de Abril de 2008 - Lucindo

Um snippet de teste que eu fiz para um serviço REST usando Hunchentoot.
Usando função genérica é possível fazer um “pattern matching” e a implementação fica parecida com Erlang/YAWS (a vir no BedDB).

(eval-when (:load-toplevel :compile-toplevel :execute)
(require ‘hunchentoot))

(defpackage :ht-rest
(:use :common-lisp :hunchentoot))

(in-package :ht-rest)

(defun add-dispatcher (dispatcher-fn)
“Helper function to add dispatcher functions to dispatch […]

(blog ‘lucindo) | http://blog.lucindo.com.br