Ben Allfree :: Painless Programming

Guaranteed results for iPhone, Rails, PHP, .NET, Flash, and more

Ruby on Rails 2.x

December 13th, 2008 · No Comments

⇒ Having an Opinion I believe in using the right tool for the job, just like you do. I am technology agnostic, just like you are. We are thinking people, not drones driven by marketing. But on this site, I have to stand for something and make a clear statement so you know what I'm about. [...]

Tags: , , , , , , , ,

A home for Rails observers and notifiers

November 5th, 2008 · No Comments

I was having a look at [http://www.railsenvy.com/2007/2/28/rails-caching-tutorial#advanced] and came across this great little snippet of code:

Rails::Initializer.run do |config|
# …
config.load_paths += %W( #{RAILS_ROOT}/app/sweepers )
# …
end

It got me thinking that a folder for observers and notifiers would greatly improve my quality of life. I might even add a [...]

Tags:

Next-Driven Development in Rails

November 1st, 2008 · No Comments

TDD says: Do the simplest thing next.
NDD says: Do the thing you need next the simplest way you can.

Tags: , , , , ,

Project Health Test

October 15th, 2008 · No Comments

Find out if your project has the tell-tale signs of disaster.

Tags: , , ,

Rolling your own framework is good

September 20th, 2008 · No Comments

I’m building PrestoScript in Ruby and the more I get into it, the less I am in anyone’s framework but my own. Why is that? Is there a certain class of problems that are frameworkless? I’ve been thinking lately that generalized frameworks could be a farce. I always explain to clients that Ruby on Rails [...]

Tags: , , , , , , ,

Beyond Ruby’s ActiveRecord

September 12th, 2008 · 2 Comments

ActiveRecord is one of the hidden treasures of the Rails framework from which Rails derives so much of its productivity. It features beautiful uses of the Ruby language, especially Ruby’s dynamic programming features.
ActiveRecord also makes it easy to be inefficient though. Efficient data access is not something that happens magically, and if ActiveRecord is left [...]

Tags: , , , ,

Excited about Joomla

July 5th, 2008 · No Comments

I’ve been talking with more clients lately about Joomla. The Content Management System (CMS) is not dead, oh no, not dead at all. I’m not sure how PHP’s Joomla compares with a CMS like DotNetNuke, but my suspicion is that Joomla is far more widely used and probably has more modules and plugins too simply [...]

Tags: , , , , ,

Functional programming languages

May 20th, 2008 · No Comments

Functional programming languages have a templating feature, called a macro, that allows you to write code that writes code.
Writing code that writes code is an interesting idea, and is one of the cornerstones of Ruby on Rails. Rails promises to write code that works as long as you promise to use database and file [...]

Tags: , , ,

Rails for PHP

March 20th, 2008 · No Comments

Well, it looks like Akelos (http://www.akelos.org/) is taking the lead in the “Rails for PHP” race. It seems to have a better MVC architecture than cakePHP, especially where ActiveRecord is concerned.
MVC frameworks are an important design concept for modern Web 2.0 applications. I frequently consult on this topic and have a lot to say, too [...]

Tags: , , , , , , ,

Ben wins GoPotato contract!

March 10th, 2008 · No Comments

GoPotato.tv is an online publisher of comedy programs. They chose Ben to revamp their site using Ruby on Rails.

Tags: , , , , , ,