Swift optimizer considered harmful

For some time I struggled with one weird bug reported to CryptoSwift [https://github.com/krzyzanowskim/CryptoSwift]. Few people report [https://github.com/krzyzanowskim/CryptoSwift/issues/57] that sometimes they got mangled result of decryption with AES. Turn out the code that produce mangled output was PKCS7 [https://tools.ietf.…

CryptoSwift, the talk

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

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…

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…

Swift: Raw{Not}Representable enum

Preconditions: Xcode Version 6.3 (6D532l), Swift 1.2 In Swift [https://blog.krzyzanowskim.com/2015/03/09/swift-asserts-the-missing-manual/] > 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…