Every few years I run into someone who knew me in elementary, junior, or senior high school and one of their first questions usually falls into one of two camps: How did you handle all that bullying?Why were you such a little ass-hole sometimes? The answer to the first one is that, well, I didn't … Continue reading A Little Self Reflection
Within the Swift Foundation Library there exists a function called withoutActuallyEscaping(_:do:) that has, at least for me, become one of those hidden gems that is extremely useful for things beyond its original intention. As it's documentation states: Allows a nonescaping closure to temporarily be used as if it were allowed to escape.Apple Documentation - Swift … Continue reading Helpful Swift Trick #1 – withoutActuallyEscaping(_:do:)
Okay. I've really heard enough in this debate between the pro-vaccine and anti-vaccine people. Personally I have gotten the vaccine but I also don't want the government forcing people to get it either. It's a very dangerous precedent for the government to have that much control over us. History is filled with examples (*cough* American … Continue reading This is Really Getting Stupid – And Scary!
I've been busy in my increasingly rare free time adding some very useful tools to my Rubicon library for Swift. Most all of them came out of direct needs for my XML parsing library but I decided to include them in Rubicon so that they can be used in other projects. 1) RingByteBuffer This is … Continue reading Updates to Rubicon Swift Library
Now I can program my robot using Swift!!!! SwiftyGPIO
Have you ever had one of those days where you just can't seem to get anything right? Well, when it comes to my professional life (work), I seem to be having one of those days for the last month or so. No matter how hard I try I just can't seem to get it right. … Continue reading Bad Month
I am so very TIRED of seeing stupid posts like the one below. To me it shows one area where public education has completely failed our children by not teaching them important things like basic economics. This leads to our kids having this grossly fairy tale-like, over simplified view of economics. Our kids end up … Continue reading Please Take an Economic Class… or Two.
As promised a while ago I've sat down and hammered out a better replacement for Swift's NSRegularExpression class. As I said then, NSRegularExpression is not actually a Swift class but rather an Objective-C class that has been bridged over to Swift via Swift's excellent ability to interface with C, C++, and Objective-C libraries directly. But … Continue reading A Better RegularExpression
Did you know that, just like Python, Bash scripts, etc., you can run a Swift source file right from the command-line as if it was an already compiled executable? You betcha! 😎 The Swift REPL program honors the SHEBANG line in a Swift source file. #!/usr/bin/swift import Foundation print("") print(" Int8 - size: \(MemoryLayout<Int8>.size); stride: … Continue reading Scripting with Swift