Author Archives: Stephen Fung

A declarative way of handling property changed notifications

A calculated property is something that is calculated based on the results of some other properties. For example: Subtotal = Unit Cost * Quantity The finalize button should be enabled if the order status is Open The unit cost is … Continue reading

3 Comments

Attaching custom attributes to an enumeration

This post is a response to Ugly Case Statements, where Sunny tackles the problem of running separate code for each element of an enumeration. I’d like to suggest another alternative to handle this. First, I’m not convinced yet that the … Continue reading

2 Comments

10 reasons you should use RubyMine for Ruby on Rails Development

RubyMine is a great integrated development environment (IDE) for Ruby on Rails development.  Here’s ten reasons you should consider using it: Built-in debugger.  Using a debugger instead of print statements will increase your productivity dramatically. Built-in support for ERB, HAML, … Continue reading

4 Comments

Use Mac or Linux, not Windows, for Ruby on Rails development

I started doing my Rails development on a Windows machine.  It was painful; the Rails community just doesn’t care much about Windows, so simple things like running a MySQL database were frustrating to get working.  Many other little things wouldn’t … Continue reading

Leave a comment