• Home
  • Author
Swift & Small Pieces
ARTICLES ABOUT SWIFT , OBJECTIVE-C, ALGORITHMS and Cryptography BY THOMAS KAUSCH

Get in Contact

Menu Close
  • Home
  • Author

Swift

What is an actor model?

September 15, 2023tomkausch Leave a Comment

The actor model was proposed decades ago (1973) by Carl Hewitt as a way to handle parallel processing in a high performance network — an environment that was not available at the time. As a quick summary an actor is a message… Continue Reading →

Algorithms, Concurrency, iOS, Swift

guard & defer

June 30, 2022tomkausch Leave a Comment

“We should do (as wise programmers aware of our limitations) our utmost best to … make the correspondence between the program (spread out in text space) and the process (spread out in time) as trivial as possible.”  —Edsger W. Dijkstra, “Go… Continue Reading →

Swift defer, guard

Fast Queue implementation for SWIFT

January 26, 2022tomkausch Leave a Comment

The Swift Standard Library currently implements the three most essential general-purpose data structures: Array, Set and Dictionary. These are the right tool for a wide variety of use cases, and they are particularly well-suited for use as currency types. But sometimes, in order to… Continue Reading →

Algorithms, Code Blocks, iOS, Swift, Uncategorized

Producer-Consumer Problem with GCD and Sempaphors using Swift (Part 1)

January 2, 2022tomkausch Leave a Comment

The producer–consumer problem also known as the bounded-buffer problem is a classic example of a multi-process synchronisation problem. It is defined as follows: The Producer generates items in random time intervals and writes them into a bounded buffer. The Consumer consumes these items… Continue Reading →

Algorithms, Code Blocks, Concurrency, Swift concurrency, swift

Latest Swift running with Docker

December 17, 2021tomkausch Leave a Comment

Swift is a programming language that is designed to work with Apple’s ecosystem. However, it can run on Linux. It is not just written for Apple products. If you do not have Mac hardware or you do not want to… Continue Reading →

Dev Tools, Swift Swift5.5

Explore Frameworks and Packages with Playgrounds

August 29, 2021tomkausch Leave a Comment

Xcode Playgrounds help developers explore Swift language and Apple framework APIs and provide a scratchpad for experimentation. Since Xcode 12 playgrounds have been integrated with the new build system and can also used with Frameworks and Package dependencies. As long… Continue Reading →

Swift, XCode

Types and meta type in Swift

April 11, 2021tomkausch Leave a Comment

Knowing the type and meta-type in Swift is not as common as in Smalltalk or Objective-C. Where in objective-c, you can instantiate an object out of a class name or modify classes at runtime this is not possible in Swift.… Continue Reading →

iOS, Languages, Swift Meta Type, Self versus self, swift, Type

How to handle iOS massive ViewController syndrome?

March 15, 2021tomkausch

The Cocoa frameworks and the Model-View-Controller pattern go hand in hand. A typical iOS application, for example, is composed of models, views, and view controllers. The model and view layers are glued together by the controllers of the application. Those… Continue Reading →

iOS, Swift Data Source, Design, Patterns, UIViewController

Encoding & Decoding dates in Swift

March 13, 2021tomkausch Leave a Comment

In this article, you’ll learn all about encoding and decoding Dates in Swift to JSON, exploring the basics and advanced topics like custom dates and custom encoding. Overview Many programming tasks involve sending data over a network connection, saving data… Continue Reading →

Encoding & Decoding Date, Swift Date, Decode, Encode, ISO-8601

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

Post navigation

← Older Articles

Thomas Kausch

Recent Posts

  • Teilen und Primzahlen (Kinder)
  • Random walks on Graphs
  • Download .ipa Files from iOS AppStore
  • What is an actor model?
  • Info.plist handling with Xcode 13

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
    © 2025 Swift & Small Pieces. All rights reserved.
    Fashionista by aThemes