My Book
-
Recent Posts
Archives
- January 2019
- May 2017
- April 2017
- January 2017
- November 2016
- October 2016
- July 2016
- June 2016
- May 2016
- April 2016
- February 2016
- December 2015
- November 2015
- April 2015
- March 2015
- November 2014
- September 2014
- July 2014
- June 2014
- January 2014
- November 2013
- October 2013
- September 2013
- June 2013
- March 2013
- January 2013
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- November 2011
- October 2011
- July 2011
- May 2011
- April 2011
- January 2011
- November 2010
- October 2010
- September 2010
Categories
- Android
- Auto Layout
- Books
- CocoaTouch
- Debugging
- Genetic Algorithms
- Interface Builder
- iOS 6
- iOS Programming for .NET Developers
- iOS7
- iOS8
- Jobs
- MacBook Pro
- MonoTouch
- Networking
- Objective-C
- Streaming Media
- Sustainable Coding
- Swift
- Thoughts
- Tic-tac-toe
- Tips and Tricks
- Two Letters
- UICollectionView
- UITableView
- Uncategorized
- User Experience
- XCode 3
- Xcode 4
Meta
Author Archives: Josh Smith
DRY Fusion data munging kata in Swift
I worked through one of Dave Thomas’s programming exercises, called a kata, and pushed my Swift 2.2 code to GitHub. The code shows how to apply the Don’t Repeat Yourself (DRY) principle to two similar but different data processing programs. The end result of … Continue reading
Creating an iOS Wizard UI in Swift
I published a reusable framework, written in Swift, for implementing the Wizard UI design pattern, named Wizardry. It simplifies creating a user interface composed of multiple view controllers that enables the user to complete a task. This is a particularly important UI design pattern for mobile apps … Continue reading
Stones on a beach
Suppose that you arrange stones into a spiral on a sandy beach. After meticulously arranging your stone spiral, the world seems hell-bent on destroying it. A dog steps on some of the stones, a big wave carries some of them … Continue reading
Posted in Thoughts, Uncategorized
8 Comments
Find keys by value in Swift dictionary
Here’s a helper method that might come in handy when working with a Swift dictionary. It finds every key mapped to a particular value. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears … Continue reading
Striving for excellence as a software developer
I’ve been a professional software developer for over a decade, and have been writing code since I was a kid. Over the years I have read a lot of advice from software developers with far more experience than me, to expand my thinking and … Continue reading
Posted in Sustainable Coding
4 Comments
Finding unused resource strings in an iOS app
If you work on an iOS or OS X app that uses Strings files to store localized display text, over time those files can accumulate entries that are no longer used. Perhaps a developer forgot to remove a resource string when refactoring … Continue reading
Posted in Swift, Tips and Tricks, Uncategorized
Tagged Swift
Comments Off on Finding unused resource strings in an iOS app
Creating Tic-tac-toe in Swift: User interface
This blog post is the third and final update about my Tic-tac-toe game, written in Swift. The source code is available on GitHub: https://github.com/ijoshsmith/swift-tic-tac-toe The app now has a user interface, which allows you to play against the computer or against another … Continue reading
Higher-order functions in Swift
This article reviews some very useful higher-order functions available in Swift’s standard library, by showing a simplified implementation of each function. Along the way, I’ll explain how all of the higher-order functions are based on a single loop. Let’s get higher Similar to how a rock … Continue reading
Creating Tic-tac-toe in Swift: Artificial intelligence
This blog post is the second update about my Tic-tac-toe game, being written in Swift. The source code is available on GitHub: https://github.com/ijoshsmith/swift-tic-tac-toe Over the past week I wrote an intelligent agent which implements the Tic-tac-toe strategy devised by Allen Newell and … Continue reading
Creating Tic-tac-toe in Swift: Gameplay and data model
This blog post is an update on my work-in-progress Tic-tac-toe game, being written in Swift. The source code is available on GitHub: https://github.com/ijoshsmith/swift-tic-tac-toe I’ve reached the first major milestone. The program is capable of playing Tic-tac-toe against itself, although there … Continue reading