• 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

Swift

Swift “Alphabet Cipher” implementation.

March 1, 2021tomkausch Leave a Comment

In 1868 Lewis Carroll published “The Alphabet-Cipher”. They say he did this in a kids magazine ?. While Carroll called his cipher “unbreakable” we know it is not. However it is still interesting to implement such a cipher as a… Continue Reading →

Code Blocks, Swift

Reversed String

September 6, 2020tomkausch Leave a Comment

Reversing a string in Swift is done by using the reversed() method on its characters, then creating a new string out of the result. Here’s the code: Reverse a String without using reversed built-in function in Swift can be done using Swift higher order… Continue Reading →

Algorithms, Code Blocks

How to calculate the ROT13 of string in Swift

April 2, 2019tomkausch Leave a Comment

ROT13 is a simple algorithm that shifts letters in a string forward 13 places. It’s not hard to write a rot13() function, but it is a little harder to wrap it up neatly so you avoid global variables while still making… Continue Reading →

iOS, Swift

Usage of Swift Type aliases

February 2, 2019tomkausch Leave a Comment

Whether or not  type aliases are syntactic sugar or provide more code clarity,  is a common source of debate among developers. While being able to write code in a more concise manner, it can also sometimes make the result harder to read… Continue Reading →

Swift

Effective XCode UI Testing

July 30, 2017tomkausch Leave a Comment

UI testing is a great way to ensure that your UI interactions keep working as you’re adding new features or refactoring your app’s codebase –  it keeps your app functional. Writing and running UI tests is kind of different from… Continue Reading →

Effective Objective-C, iOS, Swift, XCode

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

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

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

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

Post navigation

← Older Articles
Newer Articles →

Thomas Kausch

Recent Posts

  • Giving AI Agents Access to EUDAMED: Building an MCP Server in Swift
  • Vor dem KI-Weltuntergang warnen und gleichzeitig den Dark Flow verkaufen
  • Apple Container: Linux Containers on the Mac
  • start-small-learn-fast-ai-without-strategy
  • AI in the Development Process: Which Tools Are Worth It

Recent Comments

    Categories

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