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

Get in Contact

Menu Close
  • Home
  • Author

Effective Objective-C

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

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

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

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

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

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

Thomas Kausch

Recent Posts

  • Swift 6 & Foundation
  • How to Use VSCodium for Swift Development with Continue AI
  • Use MLX LM for large language models on Apple silicon with MLX
  • Download .ipa Files from iOS AppStore
  • What is an actor model?

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