UITextField Max Length (The Right Way)

Any long time developer of iOS knows that limiting the length of a UITextField is fairly simple. All you have to do is implement  textField:shouldChangeCharactersInRange:replacementString:. The problem is, when compared to other languages, this can seem really tedious and dumb. In other languages/platforms, all you have to do is set some property on your UITextField , and you’re…

Xcode 6 – Reset Simulators from the Command Line

In Xcode 6, apple made some interesting changes to the way iOS simulators work. They are actually really interesting. The short story is, you can create your own simulators. Pick your own OS and device hardware, and a simulator is born. All you have to do is open Xcode and go to  Window -> Devices and in the bottom…

TypeScript – Getting Started

I’ve been using JavaScript a lot more than I used to. To be perfectly honest, I’m not a big fan of the language. There are some cool things that you can do, and I can understand how it could be nice and fast for small projects, but for any kind of enterprise web application, things…

Swift – Immediately Invoked Closures

This makes the 3rd post I’ve done tonight. I know that doesn’t mean anything to most people, but I started off trying to write a post on immediately invoked closures, I got sidetracked. twice. Immediately Invoked Closures are also known in other languages as Immediately Invoked Functions or Immediately Invoked Function Expression (IIFE). But honestly, what…

Swift – Basic Closure Syntax

I’ve already ranted about how Swift is not the one true gospel (over here), but let me reiterate. Swift has it’s problems. I don’t think it’s perfect. There are some things I like about it. One of the things that I love about it is lazy properties. A lazy property is one that will be…

A Swift Rant

I will not ask forgiveness for the pun that is the title to this post. I love wordplay, and puns. It’s humor for the intelligent. I’ve been playing with Apple’s new Swift language for quite some time now. And let me start off by saying, Swift is not perfect. Contrary to what Apple would like…

Scala – Getting Started

I’ve been interested in learning more languages for quite some time, and recently I decided that it’s about time to add another one. Most recently I added Ruby to the mix, and I feel like I know it just well enough to get by. Modules are still a mystical and annoyingly complex box, but for…