• 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

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

Swift implicit parameters

August 24, 2015tomkausch Leave a Comment

Swift comes with some implicitly defined variables – that are variables that are accessible in your code even though you’ve not explicitly defined them. These variables are helpful when logging errors or writing test code. __COLUMN__ (Int): The column number in… Continue Reading →

Swift

Randomness generation with Objective-C and Swift

August 17, 2015tomkausch Leave a Comment

Randomness is the lack of pattern or predictability. We can be sure of one thing, however: in the closed, digital universe of CPU cycles there is no true randomness, only pseudo randomness. Pseudorandomness, is often implemented in a way very… Continue Reading →

Algorithms, Effective Objective-C

Custom Transitions on iOS

August 13, 2015tomkausch Leave a Comment

iOS provides several built-in types of transitions. Navigation controllers push and pop to navigate through an information hierarchy, tab bar controllers switch between sections by changing tabs, and any view controller can present and dismiss another view controller modally for… Continue Reading →

iOS, Objective-C

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