Although you are using a test driven development to create your latest app, how do you know that you tests are covering all your code? If done correctly it should, as you need to write tests, then when they fail, write the code to make them pass, but how many of us follow that religiously? [...]
Archive for March, 2009
Five second delay with Sqlite and ActiveRecord
Another project I am working on uses Sinatra as a framework, so doesn’t have all the fancy Rails stuff built in. Originally I was using my own database code, but that started to get a bit complicated, so I am using ActiveRecord (as is used in Rails) instead. This worked fine, apart from one thing… [...]
Creating a secure User model in Rails (Part 2)
In the last post I discussed why I wanted a secure user model, and the design for the database. This post one (hopefully) secure implementation.
Design Time
The requirements for this aren’t particularly high, but here is the basics:
When being created, [...]