• 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

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

State machines to the rescue

September 16, 2015tomkausch Leave a Comment

Today I came across code that implemented a complex  login process. The login flow was quite complex but what made the code really difficult to understand was how it was implemented. Notifications, delegates, and long  case switch statements were used to implement the login flow.… Continue Reading →

Effective Objective-C

Post navigation

← Older Articles
Newer Articles →

Thomas Kausch

Recent Posts

  • Word2Vec versus Attention & LLM
  • Word2Vec from Scratch: How Neighbor-Prediction Turns Words into Geometry
  • Running Qwen2.5-Coder Locally with MLX and Wiring It Into OpenCode
  • REST Client Code Generation in Kotlin Multiplatform
  • Sunday afternoon Problem: Lazy Sequences as a Dynamic Programming Primitive in Kotlin

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