• Home
  • Author
  • Privacy Policy & Terms

Swift & Small Pieces

ARTICLES ABOUT SWIFT , OBJECTIVE-C, ALGORITHMS and Cryptography BY THOMAS KAUSCH

Get in Contact

Menu Close
  • Home
  • Author
  • Privacy Policy & Terms

Protocol-Oriented Programming

March 24, 2016tomkausch Leave a Comment

When Apple announced Swift 2 at the WWDC in 2015, they also declared that Swift was the world’s fist protocol oriented programming language.  However protocols have been present in Java and  Objective-C since many years. So why is Swift different? And what does protocol-oriented… Continue Reading →

Languages, Objective-C, Swift

Objective-C Code Reviews

February 15, 2016tomkausch Leave a Comment

This Week I’ve been asked to do a code review, to determine the overall health of a existing App code base. Unlike a code walkthrough, where someone familiar with the code shows the main components, this is a code review where… Continue Reading →

iOS, Objective-C

Command Pattern in Swift 2

January 16, 2016tomkausch Leave a Comment

Today I wonder how simple and elegant I was able to implement the command  pattern with Swift 2. I started as usual with a bunch of classes until I realised that Swift closures  provide exactly what is needed to implement the command objects.… Continue Reading →

Swift Design Patterns

iOS9 App Transport Security (ATS)

January 13, 2016tomkausch Leave a Comment

App Transport Security (ATS) enforces best practices in the secure connections between an app and its back end. ATS prevents accidental disclosure, provides secure default behavior, and is easy to adopt; it is also on by default in iOS 9… Continue Reading →

iOS, Security

Kindergarten programming

January 4, 2016tomkausch Leave a Comment

Today I tried to explain my 6 years old daughter what programming means and what an algorithm does. I encountered scratchjr and was impressed how fast she “wrote” her first program on the ipad. Even if you’re not part of the Kindergarten… Continue Reading →

Algorithms, Languages Scratch, teaching

Adaptive Layout by overriding size classes

January 3, 2016tomkausch Leave a Comment

With Adaptive Layout  you are able to conditionally install Auto Layout constraints or views. Since iOS8 it is easier than ever to write universal apps for iPhone and iPad devices.  Overriding the size class can be an incredibly useful tool in… Continue Reading →

iOS, Objective-C, Swift Adaptive Layout, Size Class

Self-sizing UITableViewCell’s

December 28, 2015tomkausch Leave a Comment

Before iOS 7, we had to use either the rowHeight property on UITableView, or the tableView(_:, heightForRowAtIndexPath:) delegate method to specify the height of a table view cell; to make matters worse, we often needed complex calculations to determine the height of… Continue Reading →

Swift Adaptive Layout, Size Class, UITableViewCell

Adaptive Layout and the Size Class

December 27, 2015tomkausch Leave a Comment

Apple introduced the concept of adaptive user interfaces in iOS 8 relying on a combination of Auto Layout and size classes. Building user interfaces that adapt to changes in size class became even more important when Apple added slide over… Continue Reading →

Swift Adaptive Layout, Autolayout, Size Class

When Code Smells – change it

October 1, 2015tomkausch Leave a Comment

When your  code smells it is often not awful code that makes your hold your nose. Rather it’s a simple indication that something may need to be changed. However when you don’t change  and ignore  you probably will end with a… Continue Reading →

Effective Objective-C

When to use Implicitly Unwrapped Optionals

September 20, 2015tomkausch Leave a Comment

Since the introduction of Swift, our behavior towards nil values have greatly changed. Swift brings type safety, and also works hard to prevent sending messages to nil by introducing Optionals. Optionals force you to write guards around your optional code at… Continue Reading →

Swift

Post navigation

← Older Articles
Newer Articles →

Thomas Kausch

Recent Posts

  • Xcode 26.3 MCP Server
  • How I use MCP to automate iOS development
  • Coding with LLMs
  • AI Evolution: What It Means to Be a Developer
  • Vibe Coding (book review)

Recent Comments

    Categories

    Algorithms Augmented Reality Code Blocks Concurrency Dev Tools Effective Objective-C Encoding & Decoding Date iOS Languages Objective-C Pyhthon Security Swift Uncategorized Virtual Reality XCode
    © 2026 Swift & Small Pieces. All rights reserved.
    Fashionista by aThemes