For the past couple of months, 8BIT has been migrating source control over to Codebase and Deploy. I’m a big fan of both of these applications.
Category: Notes (Page 46 of 50)
Notes on programming-related problems that I’ve encountered while working on various projects.
I’m working on a small application in which currency – specifically USD – will be stored in a MySQL database.
Because Rails supports a variety of number formats, it’s not completely obvious which is the best to use when storing monetary values.
Using a decimal with a certain level of precision seems to be the most scalable option.
Devise is my preferred gem for introducing user authentication into a Rails project. In Rails 3, it’s easy to install but if you attempt to run the devise:install generator, you may receive this message:
Could not find generator devise:install
In a recent project, I was attempting to dynamically display an overlay on top of an image that contained the image’s alternative text. The overlay was to display whenever the mouse hovered over said image and hide once the mouse blurred on the image.
Unfortunately, my first attempt at this resulted in a lot of flickering.
When you build an app always look out for the non-essential features. Make sure they don’t make it into your v1.0. They slow down your release, they dilute your focus, they require resources that pull you away from perfecting the core of your app, and they open the door to more bugs at launch.
(via Signal versus Noise)

