Wednesday, March 16th, 2011

Project Euler: Problem1/Variation2 – Add all the natural numbers below one thousand that are multiples of 3 or 5

My previous post contained my first variation for solving Problem 1 of Project Euler. A basic loop was intentionally used to illustrate a brute force method of determining the answer. The solution is easy to understand and the code is very simple. For Variation 2, I decided to simply refactor Variation 1 so that it [...]

Wednesday, March 16th, 2011

Project Euler: Problem1/Variation1 – Add all the natural numbers below one thousand that are multiples of 3 or 5

Problem 1 on Project Euler was posted on October 5th, 2001 (just days before my birthday). I’m solving the problem nearly 10 years later! And since it’s one of the early ones, it’s quite simple. The problem description is as follows: If we list all the natural numbers below 10 that are multiples of 3 [...]

Wednesday, March 16th, 2011

Code Katas and Project Euler

After reflecting on yesterday’s post on the importance of practice for a little while, I realized that I wanted to start doing some katas. A friend of mine mentioned Project Euler, which I had never seen before. Apparently over 150,000 registered users exist on Project Euler, which tells me there are a LOT of coders [...]

Tuesday, March 15th, 2011

The Importance of Practice

Software developers who wish to excel should be craftsmen. This idea of craftsmanship in software development is not entirely a new concept, but it appears to be making a run around the software blogs. In a succinct but likely overly simplified description, craftsmanship is simply taking pride in your work and striving to be the [...]

Wednesday, November 10th, 2010

How to Develop Apps that Support iOS 3.x and 4.x on Both iPhone/iPod and iPad Platforms

Excuse the exceptionally long title of the article, but I just couldn’t figure out how to communicate this very specific example in any other way. In most cases, you want to develop your application once, but have it supported on all of the devices and firmware versions that Apple still supports. You don’t want to [...]

Saturday, November 6th, 2010

A Must Have Deploy Script for Your Cocoa Mac Apps

Matt Gallagher over at Cocoa with Love just wrote: Deployment for a Cocoa Mac application normally involves a few common steps: committing code into a repository, updating version numbers and packaging the application as a DMG disk image. In this post, I’ll show you a combination bash/perl/Applescript to handle all these tasks in a single [...]

Wednesday, November 3rd, 2010

As a Developer: Why I Still Prefer the App Store over the Android Market

If you’re a developer, you have no doubt spent time thinking about whether you will publish mobile apps on the Apple App Store or the Google Android Market, and where you will spend a majority of your time. As an indy developer, you know that it’s important to maximize your profits in order to stay [...]

Monday, September 27th, 2010

Migrating a Rails app from MySQL/PostgreSQL to MongoDB

NoSQL databases are becoming immensely popular. They’re the in thing right now. That alone isn’t a good reason to choose to use a piece of technology, but there are a lot of other advantages to using NoSQL in attribute rich data applications. There are already a ton of resources discussing why you should choose NoSQL [...]

Monday, September 27th, 2010

Refactoring a Ruby on Rails Navigation Helper

I was going through some code in an older Rails application’s code base of mine in order to migrate it from 2.1.x to 2.3.9 and finally to 3.0.0. My primary task at hand was to migrate the code to Rails 3.0.0, so I avoided getting too sidetracked into modifying code that didn’t need it specifically [...]

Tuesday, April 28th, 2009

Script It: Convert A List Apart articles to PDFs

Several times a week, I find that I need to automate a task to save me considerable amounts of time. The following is an example of this need. I wanted to share the thinking behind the task and the code with you. Improvements and suggestions are welcome. Submit them as comments to this article. This [...]