« August 2006 | Main | October 2006 »

September 2006

September 04, 2006

How to use Regular Expressions in Cocoa (Part 2)

In the [first part of this series](http://tearesolutions.com/2006/09/how_to_use_regular_expressions.html) we saw how you can add support for regular expressions to your cocoa project. The ruby guys & gals would gasp at the complexity of the previous article. Heck, even the Java folks have it better than that (at least in v1.4, 8 years after the original release). Surely we can be at least equal to a sucky language like Java? Let's see if we can make regex support simpler, even if we can never achieve the lovely eloquentness of Ruby: return true if "Dave Teare" =~ /^dave.*$/i In this article, we'll make our Objective-C as nice as Java by adding a "matches" method to NSString.

Continue reading "How to use Regular Expressions in Cocoa (Part 2)" »

How to use Regular Expressions in Cocoa (Part 1)

It is amazing that in today's day-and-age there are still languages that don't come with Regular Expressions baked-in. After all, it is the 21st century! Today I was sad to learn that Cocoa & Objective C fall into this camp. Luckily the nice guys over at OmniGroup have open-sourced several of their frameworks, including OmniFramework which has regular expression support via the OFRegularExpression class.

Continue reading "How to use Regular Expressions in Cocoa (Part 1)" »

September 02, 2006

Increase Your Sales with Permission Marketing

Seth Godin is a very interesting guy. I've heard about him before but have been too busy to read up on him. Also, until recently I viewed marketing as something developers "didn't do". Luckily, there are some great videos of Seth on Google that quickly motivated me to go buy his book. The first movie is about common things that are broken. He references the [This is Broken](http://www.thisisbroken.com/) website to describe things engineers, business owner & marketers do that are completely stupid. It is very humorous, but every example is a real example of stupidity that can cause lost sales, injury, or death. The next video is a talk Seth gave at Google.

Continue reading "Increase Your Sales with Permission Marketing" »