Swift optimizer considered harmful

For some time I struggled with one weird bug reported to CryptoSwift. Few people report that sometimes they got mangled result of decryption with AES. Turn out the code that produce mangled output was PKCS7 class, with part responsible for removing padded bytes. this very function: public func remove(bytes:…

CryptoSwift, the talk

Earlier this year I gave talk named "CryptoSwift: Cryptography You Can Do". The video was recorded on Swift Summit Conference in London, earlier this year. Thanks to realm.io and Swift Summit team, transcript, video and presentation is available online. I encourage you to check it here: https:…

Let's talk about sections for NSTableView

Today, let's talk about table view in AppKit for OS X. Programming for OS X have a long history behind. History that is not always known to the iOS programmers, however it is the Mother of UIKit. An NSTableView object displays data for a set of related records, with rows…

Natalie - Storyboard Code Generator

A strongly-typed language like Swift is a big blessing. I truly love how refactoring of code becomes a less scary operation. Today if I change the type of a variable, it won't compile (ok, I can hear you ask about "Any"... just don't), and when it won't compile,…

Swift: Raw{Not}Representable enum

Preconditions: Xcode Version 6.3 (6D532l), Swift 1.2 In Swift An enumeration defines a common type for a group of related values and enables you to work with those values in a type-safe way within yout code | Enumerations are first-class types in their own right. Use enum to create…