Category Archives: Programming

Quick Hits: Becareful when returning inc’ed vars

I noticed this in some MonoTouch code that I wrote recently, but I think it makes sense across other languages as well.  Let’s say you write a method that returns an incremented variable like this: private int MyAwesomeFunction(int pVar) { … Continue reading

Share
Posted in MonoTouch, Programming, Quick Hits | Tagged , | 1 Comment

TDD Makes Software Go Faster

One of the gripes I hear about TDD is that it takes too much time. People look at the idea of it and think, “So I have to write code and tests and update the tests when the code changes? … Continue reading

Share
Posted in Programming, tdd, Testing | Tagged | Leave a comment

Quick Hits: Unit Testing iPhone Apps

I have a few things to add to the woefully incomplete official documentation on setting up automated tests in your iPhone apps: You need to add your main application executable target as a direct dependency of the test target, so … Continue reading

Share
Posted in iPhone, Programming, Testing | Tagged , , , , | 8 Comments

UINavigationController Tricks

For an iPhone UI I’m developing, I need to have one UINavigationController nested inside another, and to have the inner UINavigationController’s events push a view on to the outer one’s stack. CocoaTouch didn’t give this to me for free, but … Continue reading

Share
Posted in iPhone, Programming | Tagged , , , , | 7 Comments

Google Maps events in Mobile Safari and PhoneGap for iPhone

Having trouble getting your Google Maps div to respond to events like you want in Mobile Safari or a PhoneGap app for iPhone? So was I. Disabling pinch-zoom is simple enough, but getting a finger drag to (a) not move … Continue reading

Share
Posted in Google Maps, hacks, HTML, iPhone, Javascript, Programming | Tagged , , , , | 4 Comments

FasterCSV and noob-ish silliness

Here are two things I discovered this weekend: Thing 1: FasterCSV is really cool!  It’s easy to use and does exactly what it should.  Here’s Scott Becker’s exporting tutorial.  For importing, i’ve hacked together bits from Peter Larkmund’s travels and … Continue reading

Share
Posted in Programming, Quick Hits, Rails | Tagged , | Leave a comment

F@#$ing get V1 out

I’m not new to software development, but unlike Gabe and Brad I’m new to hacking rails.  I’ve created simple tutorial apps in rails (an online store, a blog, etc.) and I now feel comfortable enough to  create something for the … Continue reading

Share
Posted in Programming, Rails | Tagged | Leave a comment

Playing with JRuby, Part 1A

First, thanks to Lopex, Charles/Headius, and Thomas for their well-coordinated effort to alleviate some of my JRuby ignorance in my earlier post. And for not going out of their way to make fun of my janky “benchmarks” – like I … Continue reading

Share
Posted in Programming | Tagged , , | Comments Off

Playing with JRuby, Part 1

As part of a new project, I’m experimenting with JRuby, to see (a) if the alleged performance gains are all that and (b) see how far the Java integration – especially interface implementation – can be pushed. On the performance … Continue reading

Share
Posted in Programming | Tagged , , | 8 Comments

Hadoop Streaming for Rapid Prototyping of Distributed Algorithms

Note: This article assumes that you know a little about MapReduce, or that if you don’t, you might skim the enclosed links so you know what I’m talking about when I get to the examples, or check out the Hadoop … Continue reading

Share
Posted in Programming | Tagged , , , , , , , , | 20 Comments