• 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

The Objective-C error model

June 8, 2015tomkausch Leave a Comment

Many modern languages have exceptions. If you come from Java you’ll most likely using exceptions all the way to handle error cases. For objective-C you are going to have to go back and forget everything you knew about exceptions and… Continue Reading →

Effective Objective-C

Swift Game Bench

May 25, 2015tomkausch Leave a Comment

Some weeks ago I have finished GameBench a simple two player board game framework implemented in the Swift language. It comes with a simple Connect4 App so you can learn how to use it and implement your own board games. SwiftGameBench framework… Continue Reading →

Algorithms, Swift

Prefere Typed Constants versus Pre-processor #define

May 25, 2015tomkausch Leave a Comment

When you write testing code you will often want to define a constant. Typical constants that you might want to factor out are your test fixtures. Often Objective-C programmers take the approach of defining the constant like this: #define USER_NAME… Continue Reading →

Effective Objective-C

Algorithm to find the area of a Polygon

May 13, 2015tomkausch Leave a Comment

Today I came across the following problem: “If you know the coordinates of the vertices of a polygon with square edges, find the surrounded area. Or more formally given an array of the X and Y coordinates enumerated in a clockwise… Continue Reading →

Algorithms

Post navigation

Newer Articles →

Thomas Kausch

Recent Posts

  • REST Client Code Generation in Kotlin Multiplatform
  • Sunday afternoon Problem: Lazy Sequences as a Dynamic Programming Primitive in Kotlin
  • How Kotlin’s Inline Functions Make Lambdas First-Class Citizens for Functional Programming
  • Koog
  • Kotlin Multiplatform (KMP) and xcframework: Sharing Logic with iOS Without the Pain

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