def ~; end

Pratik lately is doing a great work refactoring ActiveRecord to make a full use of relations. Speaking in code language, this means that in Rails 3 you will be able to do: User.where(:name => “Jose”).order(“birthday”) And it will return a relation. The relation can be further manipulated and the query is only triggered when you … »

Run, I18n, run!

A new I18n gem just got released and it comes with two new backends extensions: Fast and InterpolationCompiler. First, what is a backend? I18n.t, I18n.translate, I18n.l and I18n.localize methods are actually just wrappers to I18n.backend, which is actually who does all the heavy lifting. This means that you can change your backend to other stuff, … »

One in Three: Inherited Resources, Has Scope and Responders

Inherited Resources always had a hate/love history with Rails Edge. Just after DHH posted about respond_with, it was already there in Inherited Resources. This initial implementation provided a nice test suite and several use cases for a improved Rails’ implementation, based in Responders, which encapsulates all the behavior in one class, and can be added, … »

Subdomains and sessions to the rescue!

We have been working on an application that allows administrators to create accounts for their users. Each account will be accessible under a subdomain, so we needed to setup a subdomain environment inside our application, and also in our development machine. In addition, we must be able to let the users signed in among several … »

Classificação de textos no Dev in Sampa 2009

UPDATE: Graças ao @agaelebe o vídeo da apresentação está disponível aqui. foto por: Silvio Tanaka. Veja outras do Dev in Sampa no flickr. O Dev in Sampa ocorreu neste final de semana e creio que excedeu as expectativas de todos presentes! As palestras foram muito interessantes, algumas de opiniões fortes, como a do @fnando dizendo que … »

Estaremos no Dev in Sampa

O Dev in Sampa acontecerá no dia 28 de novembro (sábado) e, obviamente, será em São Paulo. O José Valim participará falando sobre “Tópicos de machine learning: classificação de textos”. Será uma palestra baseada no seu trabalho de mestrado na Politécnica de Turim, na Itália. Além disso, teremos palestras sobre jogos em Python, Arduino, testes … »