The Curious Case of the Protocol Default
Apr 12, 2020, 3:45 PM
THE PROBLEM Whiskey Tango Foxtrot There Ain’t No Such Thing As A Free Lunch (T.A.N.S.T.A.A.F.L.) But What Does That Have to Do With Our problem? Throw the Switch, Igor! This Is A “Loophole” CONCLUSION SAMPLE PLAYGROUND...
A Quick Introduction to the Swift programming Language
Dec 15, 2019, 3:44 PM
PRESENTATION Who Is This For? Basic Philosophies History Swift Language Usage What This Presentation Covers Some Basics Main Characteristics More Phun Phacts Why I Love Swift Compiled, but Looks Like A Scripted Language Protocols (AKA...
The Nil-Coalescing Operator (??)
Dec 10, 2019, 10:09 AM
QUICK “TEACH GRANDMA TO SUCK EGGS” NOTE EXAMPLES The Standard if…else Way Using the Ternary Operator Using the Nil-Coalescing Operator Be Careful How You Use the Nil-Coalescing Operator Cascading Nil-Coalescing Operators...
“Some” People Say…
Jun 24, 2019, 6:12 AM
THE BASICS WHAT DOES IT ALL MEAN? SAMPLE PLAYGROUND ABSTRACT Swift 5.1 (Introduced in June of 2019 at the Apple WWDC, and scheduled to “go live” in the fall of 2019) introduces what Apple calls “opaque types.” THE...
Writing A Robust Little Parser in Swift –Epilogue
Apr 7, 2019, 6:53 PM
THE FEATURE REQUEST SWIFT TO THE RESCUE Non-Union A Quick Peek Behind the Enum Curtain So What Does This Have to Do With Unions? ZZZZZZZZZZZzzzzzzz…. CONCLUSION SAMPLE PLAYGROUND ABSTRACT Our wonderful, high-quality little parser has...
Writing A Robust Little Parser in Swift –Part 5
Apr 7, 2019, 2:37 PM
TURN THE VOLUME UP SUCCESS! SUCCESS! (NO, REALLY, THIS TIME) IMPROVEMENTS CONCLUSION SAMPLE PLAYGROUND ABSTRACT In the last post, we created a basic recursive-descent parser function that almost gives us what we want, but we still have...
Writing A Robust Little Parser in Swift –Part 4
Apr 7, 2019, 11:13 AM
FIRST PASS Run In and Grab The String Throw the Switch, Igor! SAMPLE PLAYGROUND ABSTRACT At this point, we have defined the problem domain, have decided on a pattern, and have established a TDD framework. We have an empty function, waiting...
Writing A Robust Little Parser in Swift –Part 3
Apr 6, 2019, 10:31 PM
THE DESCENT Yeah…Yeah. I Know. I Know. INITIAL SETUP TDD Techniques SAMPLE PLAYGROUND ABSTRACT In the previous post, we established a “black box” function signature for our parser, and set up a bunch of tests. Now, we...
Writing A Robust Little Parser in Swift –Part 2
Apr 6, 2019, 9:02 PM
SCOPING THE PROBLEM DOMAIN The Function Signature The Test Set A Couple of Curveballs SAMPLE PLAYGROUND ABSTRACT In the previous post, we talked about the need to write a “middleman” parser engine that takes a varied dataset,...
Writing A Robust Little Parser in Swift –Part 1
Apr 6, 2019, 7:41 PM
FIRST, THE SETUP The Data SAMPLE PLAYGROUND ABSTRACT Lately, I’ve been writing an ONVIF driver for Cocoa, which has helped me to see that Swift is actually an outstanding parser language. I figured that this would be a good...