This is my blog. I'm a web developer at Loadsys. We make web applications using CakePHP. I'm also interested in Ruby and the frameworks Rails and Sinatra. I'll also try to write some about JavaScript. Typically I use jQuery, and I'm getting into Backbone.js and CoffeeScript.
04/23/2012
As your web applications become large, the need for good quality test suites becomes more important. You have to be able to verify at any point in time that the code you are shipping works. Unit testing is a good place to start. Unit testing is isolating your smaller bits of functionality and testing that they perform correctly for a different types of input. You can also test that the output is what you'd expect for the given input. With a solid test suite in place, you'll be able to spot regression bugs (bugs that cause existing functionality to break) much earlier. In this post, we're goin...04/19/2012
I've been looking for an alternative input type for date values. Came up with this solution using jQuery, Date.js, and Twitter Bootstrap. It's pretty simple, so I'll just add all the code here. Date.js is a date library that extends the functionality of the native Date.parse() in javascript. We can pass it a string and it will return a date object or null. We are going to leverage that to make an interactive text field that will give the user feedback about whether their date string is valid or not. First off, we'll need some markup, and for that we'll use the Twitter Bootstrap input markup:...04/19/2012
If you don't know, Vagrant is a command line ruby tool that utilizes VirtualBox to boot up headless (or GUI) virtual machines that are configured with a single Vagrantfile. There are a ton of advantages to a setup like this. You could start multiple virtual machines, and as long as they are configured correctly, they can communicate over the network. Now you have a distributed environment on your local machine for testing your application stack. You could create a virtual machine environment that is exactly the same as the production environment to run test suites or do some click through test...