• 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

Author: tomkausch

nil / NULL / NSNull / Optionals

July 13, 2017tomkausch Leave a Comment

In Objective-C, there are three different varieties of nothing . The reason for this goes back to how Objective-C bridges the procedural paradigm of C with Smalltalk-inspired object-oriented paradigm. C represents nothing as 0 for primitive values, and NULL for… Continue Reading →

Uncategorized

A “Swifty” Longest Palindrome Substring Algorithm

July 13, 2017tomkausch Leave a Comment

In computer science, the longest palindromic substring  problem is the problem of finding a maximum-length substring of a given string that is also a palindrome. For example, the longest palindromic substring of “bananas” is “anana”. Some people will be tempted… Continue Reading →

Algorithms, iOS, Swift

Generate XCode Project via Swift Package Manager

December 9, 2016tomkausch Leave a Comment

Swift package manager provides a convention-based system for building libraries and executables, and sharing code across different projects. Before you can use it you should make it available on MacOS by installing Swift Open Source Toolchain. Install  Package Manager Download the latest package release –… Continue Reading →

Uncategorized

Greedy and simple

September 14, 2016tomkausch Leave a Comment

Greedy algorithms  look for a simple, easy-to-implement solution to complex problems. These algorithms work by recursively constructing a smaller instance  of the the same problem with a rule that is easy to understand and straightforward. The advantage is they are… Continue Reading →

Algorithms, Swift

Zeiss VR ONE as a premium Google “Cardboard” replacement

September 8, 2016tomkausch Leave a Comment

Today I found a one year old Zeiss VR One in the office. Everybody thought it does not work with Google’s cardboard app because it is missing the input button – what makes it useless. So I had a look at Google’s… Continue Reading →

Augmented Reality, iOS, Virtual Reality Cardboard, Zeiss VR One

A swift Apple programming language history

May 17, 2016tomkausch Leave a Comment

As a teenager I was used to implement simple mathematical algorithms on my Sharp pocket computer in BASIC. My first real Application was an AI board game written in the Pascal language on a Mac Classic II. It was a… Continue Reading →

iOS, Languages, Objective-C, Swift

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

Post navigation

← Older Articles
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