{
  "version": "https://jsonfeed.org/version/1",
  "title": "iStumbler Labs Blog",
  "description": "It\u0027s just, like, my opinion, man.",
  "home_page_url": "https://istumbler.net/blog/",
  "feed_url": "https://istumbler.net/blog/feeds/feed.json",
  "favicon": "https://istumbler.net/apple-touch-icon-precomposed.png",
  "items": [
	{
	  "id": "https://istumbler.net/blog/2024/08/19/Objective-Swift-Package-Manager.html",
	  "url": "https://istumbler.net/blog/2024/08/19/Objective-Swift-Package-Manager.html",
	  "title": "Updating Objective-C Frameworks for Swift Package Manager",
	  "content_html": "\u003ch3 id=\"intro\"\u003eIntro\u003c/h3\u003e\n\u003cp\u003eYou have a dusty old Objective-C framework that you want to publish as a \n\u003ca href=\"https://developer.apple.com/documentation/xcode/swift-packages\"\u003eSwift Package Manager\u003c/a\u003e \nLibrary. Here\u2019s how.\u003c/p\u003e\n\u003cp\u003eiStumbler Labs publishes a number of Objective-C frameworks and they all need updating \nto work with Swift Package Manager:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/alfwatt/KitBridge\"\u003eKitBridge\u003c/a\u003e \u2014\u00a0KitBridge allows you to create views which can be used in iOS, iPadOS, macOS, and tvOS applications.\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/alfwatt/SparkKit\"\u003eSparkKit\u003c/a\u003e - Small, Simple and Fast; Line, Pie, Dial, Bar, Ring, Stack and Grid Views for macOS, iOS and tvOS\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/alfwatt/CardView\"\u003eCardView\u003c/a\u003e \u2013 A Good looking subclasses of NSTextView \u0026amp; UITextView\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/alfwatt/FourCorners\"\u003eFourCorners\u003c/a\u003e - Utilities to make working with CoreLocation easier\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/alfwatt/LiveBundle\"\u003eLiveBundle\u003c/a\u003e \u2014 LiveBundle is a category which provides dynamic updating of resources from your web server\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/alfwatt/Soup\"\u003eSoup\u003c/a\u003e \u2013 An object oriented persistence framework from iStumbler Labs modeled on the Apple Newton API\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/alfwatt/IcedHTTP\"\u003eIcedHTTP\u003c/a\u003e - A very small HTTP Server framework suitable for embedding into iOS or Mac OS Apps\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eUpdating all of these for Swift Package Manager was a bit of a chore but there\u0026rsquo;s an easy to implement process to make it less painless.\u003c/p\u003e\n\u003ch3 id=\"follow-the-project-layout-conventions\"\u003eFollow the Project Layout Conventions\u003c/h3\u003e\n\u003cp\u003eSwift Package Manager (SPM) expects a particular source code layout, e.g. \u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre\u003e\u003cspan\u003e\u003c/span\u003e\u003ccode\u003e\u003cspan class=\"nx\"\u003eProject\u003c/span\u003e\u003cspan class=\"o\"\u003e/\u003c/span\u003e\n\u003cspan class=\"w\"\u003e  \u003c/span\u003e\u003cspan class=\"nx\"\u003eProject\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003excodeproj\u003c/span\u003e\u003cspan class=\"w\"\u003e  \u003c/span\u003e\u003cspan class=\"err\"\u003e\u2190\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003eNot\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003estrictly\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003enecessary\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003efor\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003ea\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003eSwift\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003ePackage\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003enice\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003eto\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003ehave\u003c/span\u003e\n\u003cspan class=\"w\"\u003e  \u003c/span\u003e\u003cspan class=\"nx\"\u003ePackage\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eswift\u003c/span\u003e\u003cspan class=\"w\"\u003e      \u003c/span\u003e\u003cspan class=\"err\"\u003e\u2190\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003eDefines\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003ethe\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003eproducts\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003edependencies\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eand\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003etargets\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003efor\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003eProject\u003c/span\u003e\n\u003cspan class=\"w\"\u003e  \u003c/span\u003e\u003cspan class=\"nx\"\u003eSources\u003c/span\u003e\u003cspan class=\"w\"\u003e            \u003c/span\u003e\u003cspan class=\"err\"\u003e\u2190\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003eSource\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003ecode\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003efor\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003eall\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003eyour\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003eprojects\u003c/span\u003e\n\u003cspan class=\"w\"\u003e    \u003c/span\u003e\u003cspan class=\"nx\"\u003eProject\u003c/span\u003e\u003cspan class=\"w\"\u003e          \u003c/span\u003e\u003cspan class=\"err\"\u003e\u2190\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003eName\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003eof\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003ethe\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"kn\"\u003elibrary\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003etarget\u003c/span\u003e\n\u003cspan class=\"w\"\u003e      \u003c/span\u003e\u003cspan class=\"nx\"\u003eincludes\u003c/span\u003e\u003cspan class=\"w\"\u003e       \u003c/span\u003e\u003cspan class=\"err\"\u003e\u2190\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003eHeader\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003efiles\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003ego\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003ehere\u003c/span\u003e\n\u003cspan class=\"w\"\u003e    \u003c/span\u003e\u003cspan class=\"nx\"\u003eTests\u003c/span\u003e\u003cspan class=\"w\"\u003e            \u003c/span\u003e\u003cspan class=\"err\"\u003e\u2190\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003eTest\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003etarget\u003c/span\u003e\n\u003cspan class=\"w\"\u003e    \u003c/span\u003e\u003cspan class=\"nx\"\u003eprojectctl\u003c/span\u003e\u003cspan class=\"w\"\u003e       \u003c/span\u003e\u003cspan class=\"err\"\u003e\u2190\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003eCommand\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003eLine\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nx\"\u003eTool\u003c/span\u003e\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\n\u003cp\u003eIt\u0026rsquo;s possible to configure different locations for source files and includes, however it\u0026rsquo;s easiest to follow the SPM convention, as this simplifies the package description and makes it easier for other developers to understand the project structure.\u003c/p\u003e\n\u003ch3 id=\"example-project\"\u003eExample Project\u003c/h3\u003e\n\u003cp\u003eWe\u2019ll use IcedHTTP as an example, here is the finder layout:\u003c/p\u003e\n\u003cp\u003e\u003cimg src=\"/blog/images/2024/OSPM-01-project-layout.png\" width=\"512\"\u003e\u003c/p\u003e\n\u003cp\u003eAnd the Xcode project layout:\u003c/p\u003e\n\u003cp\u003e\u003cimg src=\"/blog/images/2024/OSPM-02-xcode-layout.png\" width=\"512\"\u003e\u003c/p\u003e\n\u003cp\u003eFirst create the expected structure in the Finder: \u003c/p\u003e\n\u003cp\u003e\u003cimg src=\"/blog/images/2024/OSPM-03-expected-layout.png\" width=\"512\"\u003e\u003c/p\u003e\n\u003cp\u003eThen add Sources to your Xcode project as a Group:\u003c/p\u003e\n\u003cp\u003e\u003cimg src=\"/blog/images/2024/OSPM-04-add-Sources.png\" width=\"512\"\u003e\u003c/p\u003e\n\u003cp\u003eMove all the \u003ccode\u003e.m\u003c/code\u003e files and the \u003ccode\u003eInfo.plist\u003c/code\u003e to the Project folder (\u003ccode\u003eSources/IcedHTTP\u003c/code\u003e in this example), and move all the \u003ccode\u003e.h\u003c/code\u003e files to \u003ccode\u003eSources/includes\u003c/code\u003e in the Xcode Project Navigator.\u003c/p\u003e\n\u003cp\u003eYou will need to adjust the \u003ccode\u003eInfo.plist File\u003c/code\u003e Build Setting for each Target, this is a good time to update your build schemes (in particular, I like to add a Composite Target for building All the targets in the project):\u003c/p\u003e\n\u003cp\u003e\u003cimg src=\"/blog/images/2024/OSPM-05-build-settings.png\" width=\"512\"\u003e\u003c/p\u003e\n\u003cp\u003eAt this point check to make sure all your targets build correctly from the Xcode Project\u003c/p\u003e\n\u003cp\u003e\u003cimg src=\"/blog/images/2024/OSPM-06-xcode-build-check.png\" width=\"512\"\u003e\u003c/p\u003e\n\u003cp\u003eNow we can define our Swift Package, create \u003ccode\u003ePackage.swift\u003c/code\u003e at the root of the project, next to the Xcode Project\u003c/p\u003e\n\u003cp\u003e\u003cimg src=\"/blog/images/2024/OSPM-07-add-new-file.png\" width=\"512\"\u003e\u003c/p\u003e\n\u003cp\u003e\u003cimg src=\"/blog/images/2024/OSPM-08-create-package-swift.png\" width=\"512\"\u003e\u003c/p\u003e\n\u003cp\u003eContent of the \u003ccode\u003ePackage.swift\u003c/code\u003e file should look like:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre\u003e\u003cspan\u003e\u003c/span\u003e\u003ccode\u003e\u003cspan class=\"o\"\u003e//\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eswift\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u003c/span\u003e\u003cspan class=\"n\"\u003etools\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u003c/span\u003e\u003cspan class=\"n\"\u003eversion\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"mf\"\u003e5.10\u003c/span\u003e\n\u003cspan class=\"kn\"\u003eimport\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nn\"\u003ePackageDescription\u003c/span\u003e\n\n\u003cspan class=\"n\"\u003elet\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003epackage\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ePackage\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\n\u003cspan class=\"w\"\u003e  \u003c/span\u003e\u003cspan class=\"n\"\u003ename\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026quot;IcedHTTP\u0026quot;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\n\u003cspan class=\"w\"\u003e  \u003c/span\u003e\u003cspan class=\"n\"\u003eplatforms\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003emacOS\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003ev10_14\u003c/span\u003e\u003cspan class=\"p\"\u003e),\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003eiOS\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003ev14\u003c/span\u003e\u003cspan class=\"p\"\u003e),\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003etvOS\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003ev14\u003c/span\u003e\u003cspan class=\"p\"\u003e)],\u003c/span\u003e\n\u003cspan class=\"w\"\u003e  \u003c/span\u003e\u003cspan class=\"n\"\u003eproducts\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\n\u003cspan class=\"w\"\u003e    \u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003elibrary\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ename\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026quot;IcedHTTP\u0026quot;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"nb\"\u003etype\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003edynamic\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003etargets\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026quot;IcedHTTP\u0026quot;\u003c/span\u003e\u003cspan class=\"p\"\u003e])\u003c/span\u003e\n\u003cspan class=\"w\"\u003e  \u003c/span\u003e\u003cspan class=\"p\"\u003e],\u003c/span\u003e\n\u003cspan class=\"w\"\u003e  \u003c/span\u003e\u003cspan class=\"n\"\u003etargets\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\n\u003cspan class=\"w\"\u003e    \u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003etarget\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"n\"\u003ename\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026quot;IcedHTTP\u0026quot;\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003cspan class=\"w\"\u003e  \u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e\n\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\n\u003cp\u003eOnce that file is saved we can open the Swift Package in Xcode (you don\u2019t have the close the Xcode Project, they can both be open which is handy for cross-checking the Package definition and Xcode builds. Note that the Package Icon replaces the Xcode Project icon in the upper left corner:\u003c/p\u003e\n\u003cp\u003e\u003cimg src=\"/blog/images/2024/OSPM-09-open-package-swift.png\" width=\"512\"\u003e\u003c/p\u003e\n\u003cp\u003e\u003cimg src=\"/blog/images/2024/OSPM-10-browse-package.png\" width=\"512\"\u003e\u003c/p\u003e\n\u003cp\u003eAny issues with the Package definition will show up automatically, error messages are generally helpful.\u003c/p\u003e\n\u003cp\u003e\u003cimg src=\"/blog/images/2024/OSPM-11-pacakge-build-check.png\" width=\"512\"\u003e\u003c/p\u003e\n\u003cp\u003eIf you get errors like \u003ccode\u003e\u0027Framework/Framework.h\u0027 file not found\u003c/code\u003e you will need to wrap imports using the \u003ccode\u003eSWIFT_PACKAGE\u003c/code\u003e compile time \u003ccode\u003e#define\u003c/code\u003e:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre\u003e\u003cspan\u003e\u003c/span\u003e\u003ccode\u003e\u003cspan class=\"c1\"\u003e#if SWIFT_PACKAGE\u003c/span\u003e\n\u003cspan class=\"c1\"\u003e#import \u0026quot;Framework.h\u0026quot;\u003c/span\u003e\n\u003cspan class=\"c1\"\u003e#else\u003c/span\u003e\n\u003cspan class=\"c1\"\u003e#import \u0026lt;Framework/Framework.h\u0026gt;\u003c/span\u003e\n\u003cspan class=\"c1\"\u003e#endif\u003c/span\u003e\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\n\u003cp\u003eOnce your package definition is correct, you can see the built product, depending on which run destination you have selected. Choose \u003ccode\u003eProduct -\u0026gt; Show Build Folder in Finder\u003c/code\u003e\u003c/p\u003e\n\u003cp\u003e\u003cimg src=\"/blog/images/2024/OSPM-12-built-products.png\" width=\"512\"\u003e\u003c/p\u003e\n\u003cp\u003eDouble check your Xcode Project to make sure you can still build using your configured targets.\u003c/p\u003e\n\u003cp\u003eCommit your changes to the git repo (you have a git repo, right?) and push them to your favorite git hosting service.\u003c/p\u003e\n\u003cp\u003eWhen you want to \u003ca href=\"https://developer.apple.com/documentation/xcode/publishing-a-swift-package-with-xcode\"\u003epublish a version of your pacakge\u003c/a\u003e, tag your repo with a \u003ca href=\"https://semver.org\"\u003eSepantic Version String\u003c/a\u003e and push to a public repo.\u003c/p\u003e",
	  "date_published": "2024-08-19T00:00:00-07:00"
	},
	{
	  "id": "https://istumbler.net/blog/2018/10/20/functional-reactive-nonsense.html",
	  "url": "https://istumbler.net/blog/2018/10/20/functional-reactive-nonsense.html",
	  "title": "Functional Reactive Nonsense",
	  "content_html": "\u003cp\u003e\u003cimg alt=\"\" src=\"https://cdn-images-1.medium.com/max/309/1*sUrELFhihxAtm21dthWzxw@2x.jpeg\"\u003e\u003c/p\u003e\n\u003cp\u003eThere is a perverse inversion in many Senior Level engineering job postings; they rigidly dictate a particular stack of technology, which the company has typically invested considerable time in implementing and tailoring to the needs of their application. While this makes some sense for a mid-level or junior developer its he opposite of what you should be looking for in a Senior engineer:\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003e\u003cstrong\u003e\u201cIt doesn\u2019t make sense to hire smart people and then tell them what to do; we hire smart people so they can tell us what to\u00a0do.\u201d\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003e\u2014 Steve\u00a0Jobs\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp\u003eI suspect that these postings are the result of a manager trying to maintain a system designed by a \u003cem\u003eforward looking\u003c/em\u003e developer who sold the team on it\u2019s benefits but never quite realized them before departing for greener pastures, leaving an big \u2018ol tech stack in the repo behind them as they go. By suspicions I mean; I\u2019ve seen this happen more than once. I might have done it myself, maybe, long\u00a0ago.\u003c/p\u003e\n\u003cp\u003eTypically these stacks will provide an \u201cOver the Top\u201d solution to programing on the target platform, replacing some or all of the vendors native tools, with more \u201cmodern\u201d or \u201cadvanced\u201d or \u201cconvenient\u201d or \u201cexpressive\u201d or \u201csafe\u201d versions, often in combination, always without quantification. The sales pitches vary from sensible and desirable, such as allowing for cross platform development from a single code base to the outer orbits of architectural astronauts, looking for a \u003ca href=\"https://en.wikipedia.org/wiki/No_Silver_Bullet\"\u003emagic bullet solution\u003c/a\u003e to solve all software development problems with concise self documenting code.\u003c/p\u003e\n\u003cp\u003eThere are a few stacks I could poke holes in but today I\u2019m going to focus on \u003ca href=\"http://reactivecocoa.io\"\u003eReactive Cocoa\u003c/a\u003e ( \u003ca href=\"https://reactnative.dev/\"\u003eReact Native\u003c/a\u003e was a close second). Generally any framework which intends to replace a portion of the native toolkit is likely to have similar issues, namely the tradeoff between Runtime, Development time, and Maintenance time doesn\u2019t add up for real world usage. Let\u2019s look at each of these in\u00a0turn.\u003c/p\u003e\n\u003ch4 id=\"runtime-performance-matters\"\u003eRuntime Performance Matters\u003c/h4\u003e\n\u003cp\u003eCode is CO2. Every line of code which eventually runs on a processor \u003ca href=\"https://en.wikipedia.org/wiki/Landauer%27s_principle\"\u003econsumes energy\u003c/a\u003e. In our current carbon economy this means that on average, nearly every line of code we write will result in the release of Carbon Dioxide into the atmosphere. Heat will need to be dissipated, blowers move air, batteries discharge, systems slow\u00a0down.\u003c/p\u003e\n\u003cp\u003eEvery additional layer of software on top of the hardware platform adds to the performance burden of the system. If you\u2019re paying for the hardware and electricity (in a server farm, for e.g.) then it\u2019s your problem, but if you\u2019re writing software that runs on people\u2019s devices, your convenience is \u003ca href=\"https://github.com/ReactiveCocoa/ReactiveCocoa/issues/1503\"\u003epaid for by your customers\u003c/a\u003e. Packing an over the top framework into your app is a bit like showing up at a friends house for dinner with an entourage. It might make you feel cool, but you aren\u2019t being a very good\u00a0guest.\u003c/p\u003e\n\u003cp\u003ePhysical limits aren\u2019t something we like to admit exist in software development, \u201cMoore\u2019s Law will surely save us!\u201d And for decades, it has, but as we get closer to the quantum realm (and eventually cross over into it) in the chip fabrication process, \u003ca href=\"https://qz.com/852770/theres-a-limit-to-how-small-we-can-make-transistors-but-the-solution-is-photonic-chips/\"\u003ethe pace has slowed\u003c/a\u003e, and the exponential curve for Silicon begins to look more sigmoid in shape. We can no longer expect our processors to get faster at the breakneck pace of the 90s and 00s, optical and quantum processors will eventually become a commercial reality and provide great steps in processor power, but for the foreseeable future they won\u2019t be included in consumer\u00a0devices.\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003e\u003cstrong\u003e\u201cIt takes about a year, but once you get it, you\u2019ll be super productive.\u201d\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003e\u2014 Some Reactive Cocoa Developer\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003ch4 id=\"developers-time-matters\"\u003eDevelopers Time\u00a0Matters\u003c/h4\u003e\n\u003cp\u003e\u003ca href=\"https://en.wikipedia.org/wiki/Reactive_programming\"\u003eReactive Programming\u003c/a\u003e on it\u2019s own might not over-burden your app, in fact there are applications where it is clearly the \u003ca href=\"http://conal.net/papers/icfp97/\"\u003ebest choice\u003c/a\u003e. But for most apps it doesn\u2019t add much except Library size, runtime penalties and additional learning needed for developer to fully utilize it. This is substantial, especially when implemented on top of Apple\u2019s platforms, which already have a highly optimized UI development tools.\u003c/p\u003e\n\u003cp\u003eReactive programming promises a lot, including easier to understand code and better developer experience. Except that in every case I\u2019ve seen, it takes longer to write an app this way, and it can be challenging to debug. Once when working on integrating into a Reactive Cocoa app the lead told me I\u2019d need to maintain my own timer for a query sent to a connected hardware device, because they couldn\u2019t reliably generate and propagate RAC signals once per\u00a0second.\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003eAlways write code like your maintenance programmer has a shotgun, and knows where you live.\u200a\u2014\u200aLarry\u00a0Wall\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003ch4 id=\"maintenance-time-matters\"\u003eMaintenance Time\u00a0Matters\u003c/h4\u003e\n\u003cp\u003eWorking with a new technology stack might seem exciting to you, it might even distract a little from the fact that most apps aren\u2019t very groundbreaking and that writing a shopping cart or picture sharing app isn\u2019t going to get you inducted into the programming hall of fame. You might become tempted by one of the constant sirens of human experience, the deep need for\u00a0newness.\u003c/p\u003e\n\u003cp\u003eWithout this core drive humanity would never have become the super dominant species and we wouldn\u2019t have memes. It\u2019s hard to imagine a world where everyone is always content actually working well in practice. If everyone is a slacker and expends minimal effort to simply survive there would be no growth, no art, no striving for a more perfect\u00a0world.\u003c/p\u003e\n\u003cp\u003eWhile this drive for neoteny May have gotten us here, it\u2019s not helpful when you are trying to engineer a system for performance and reliability and especially when you are planning for long term support. Newness in the service of entertaining the people working on the project isn\u2019t doing the business or its customers any favors and it does a great disservice to whoever has to maintain the product later. In order to improve or make repairs they will have to understand all the underlying tools of the platform as well as all the over the top software, in addition.\u003c/p\u003e\n\u003ch4 id=\"user-experience-matters-most\"\u003eUser Experience Matters\u00a0Most\u003c/h4\u003e\n\u003cp\u003eWhile I\u2019m sympathetic to the desire to do good work and to feel like the products we design and build are using the most modern tools and methods the reality of software product engineering is that it has to address a messy reality, and in doing so it becomes\u00a0complex.\u003c/p\u003e\n\u003cp\u003eThis complexity is not the result of architectural failure, but the day to day reality that our software must navigate the various pressures on it. Good architecture seeks to make the daily tasks of software engineers simple, repeatable and direct. The best platforms deliver this, or more precisely, are managed to consistently maintain these qualities as features are added and\u00a0removed.\u003c/p\u003e\n\u003cp\u003eWhile the native (Objective-c) toolkits of macOS, iOS and (NDK) Android may be out of fashion, but they still deliver the best possible user experience by virtue of their being the foundation on top of which all others are built. You may be able to run fast on stilts, and the feeling of the air in your hair is exhilarating, but when you trip it\u2019s a long\u00a0fall.\u003c/p\u003e",
	  "date_published": "2018-10-20T00:00:00-07:00"
	},
	{
	  "id": "https://istumbler.net/blog/2017/12/27/we-ll-cross-that-bridge-when-it-s-burning.html",
	  "url": "https://istumbler.net/blog/2017/12/27/we-ll-cross-that-bridge-when-it-s-burning.html",
	  "title": "We\u2019ll Cross That Bridge When It\u2019s Burning",
	  "content_html": "\u003ch4 id=\"developing-apps-for-macos-ios-and-tvos-using-kitbridge\"\u003eDeveloping Apps for macOS, iOS and tvOS using KitBridge\u003c/h4\u003e\n\u003cp\u003e\u003cimg alt=\"\" src=\"https://cdn-images-1.medium.com/max/1024/1*4M3tUZsNN2Owjy4tCijm-w.png\" title=\"Behold, OrangeCard running on macOS, tvOS and iOS!\"\u003e\u003c/p\u003e\n\u003cp\u003eSo, you want to write an app for iOS, macOS and maybe even tvOS? There\u2019s been \u003ca href=\"https://daringfireball.net/2017/12/marzipan\"\u003ea lot of talk\u003c/a\u003e lately about the \u003ca href=\"https://github.com/insidegui/UXKitDemo\"\u003eUXKit.framework\u003c/a\u003e inside of Photos.app or possibly another replacement framework to bridge the AppKit/UIKit divide. While this may yet come to pass, there\u2019s nothing stopping us from improving the portability of code across macOS, iOS and tvOS \u003cem\u003eright\u00a0now\u003c/em\u003e.\u003c/p\u003e\n\u003ch4 id=\"so-whats-all-this-about-then\"\u003eSo, What\u2019s All This About,\u00a0Then?\u003c/h4\u003e\n\u003cp\u003eWhile UIKit is clearly derived from the experience of developing AppKit it was a sort of green-field for the developers to create a more modern framework with none of the baggage of AppKit. This lack of baggage makes for more streamlined development but there is collateral damage for experienced AppKit developers who will find some of the changes are hard to adapt to, especially if they need to go back and forth\u00a0often.\u003c/p\u003e\n\u003cp\u003eIn particular, there are a number of support classes which could have been shared between UIKit and AppKit but weren\u2019t: NS/UIImage, NS/UIColor, NS/UIBezierPath and the foundation class NS/UIView. The difference are more than just name deep, the APIs lack some of the the \u003ca href=\"https://en.wikipedia.org/wiki/Object-relational_impedance_mismatch\"\u003eimpedance matching\u003c/a\u003e which makes pairing them with other existing frameworks simpler and faster to implement.\u003c/p\u003e\n\u003ch3 id=\"bridge-over-troubled-waters\"\u003eBridge Over Troubled\u00a0Waters\u003c/h3\u003e\n\u003cp\u003eFirst, a little history, \u003ca href=\"https://github.com/alfwatt/KitBridge\"\u003eKitBridge\u003c/a\u003e is fairly new hotness, started just this year based on some initial ideas prototyped in \u003ca href=\"https://github.com/alfwatt/QRKit\"\u003eQRKit\u003c/a\u003e, which implements a very limited cross-platform view framework using a simple \u003ca href=\"https://github.com/alfwatt/QRKit/blob/master/QRKit/QRDefines.h\"\u003ebridging header\u003c/a\u003e, an NSImage category and strategic use of \u003cstrong\u003e#ifdef\u003c/strong\u003e directives in the implementations. That simple header and category allows QRKit to provide the same API across all it\u2019s target platforms.\u003c/p\u003e\n\u003cp\u003eKitBridge takes that starting point and expands on it to include more classes and more categories, which bring balance to view development. With KitBridge you can always use the UIKit API for the bridged classes on either platform. On iOS and tvOS the native methods are used and on macOS (where there is typically more CPU and memory to go around) the methods are provided by categories. There are some cases where UIKit lacks a trusty AppKit method and those are provided as\u00a0well.\u003c/p\u003e\n\u003cp\u003eBesides expanding on the number of classes that the bridge supports, KitBridge also makes it easier for projects to share a single implementation file between versions, at least for Views, App Delegates and Controllers.\u003c/p\u003e\n\u003ch3 id=\"building-on-top-of-the-bridge\"\u003eBuilding On Top of the\u00a0Bridge\u003c/h3\u003e\n\u003cp\u003e\u003cimg alt=\"\" src=\"https://cdn-images-1.medium.com/max/1024/1*0pWKqZ41IoelUFRczGjLBw.png\" title=\"Who doesn\u2019t love a good block diagram?\"\u003e\u003c/p\u003e\n\u003cp\u003eWhile KitBridge does not cover every possible porting issue (I\u2019ve been adding affordances one by one as I need them for various apps) it does provide a lot of support for writing portable Views and Controllers and already supports two other frameworks which provide a useful set of views: \u003ca href=\"https://github.com/alfwatt/CardView\"\u003eCardView.framework\u003c/a\u003e and \u003ca href=\"https://github.com/alfwatt/SparkKit\"\u003eSparkKit.framework\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eCardView.framework provides a NS/UITextView subclass with a single interface for adding styled text and graphics. CardView was originally extracted from \u003ca href=\"https://desklampx.com\"\u003eDeskLamp\u003c/a\u003e, and made it\u2019s way into OrangeCard and iStumbler. Now that the framework has been integrated with KitBridge, I\u2019ll be bringing OrangeCard to iOS and tvOS from macOS, once the non-UI platform differences are taken into\u00a0account.\u003c/p\u003e\n\u003cp\u003eSparkKit.framework provides a set of data visualization tools with pie, ring, bar, stack, grid and columnar data views, also built on top of BridgeKit. It is enabled by harmonizing the NS/UIBezierCurve interface so that the views have the same drawing code. The most recent release of iStumbler uses SparkKit to draw the Channels and WiPry plugins grid views, and I expect to replace the line graphs and level indicators in an upcoming\u00a0update.\u003c/p\u003e\n\u003ch3 id=\"remaining-work\"\u003eRemaining Work\u003c/h3\u003e\n\u003cp\u003eWhile spackling over the difference between the App and UI Kits helps make portable apps easier, there\u2019s lots to be done still. As the apps I\u2019m building on top of these frameworks evolve I expect KitBridge to evolve as well. Since there seems to be some interest, I wanted to introduce the frameworks because I think they save time when porting apps from macOS to iOS and vice versa, and I hope you enjoy working with\u00a0them.\u003c/p\u003e",
	  "date_published": "2017-12-27T00:00:00-08:00"
	},
	{
	  "id": "https://istumbler.net/blog/2017/11/09/exactly-backwards.html",
	  "url": "https://istumbler.net/blog/2017/11/09/exactly-backwards.html",
	  "title": "Exactly Backwards",
	  "content_html": "\u003cp\u003eFacebook is trialing a revenge porn suppression system which threatens user privacy and could be implemented in a way which does not require sharing compromising photos.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://amp.theguardian.com/technology/2017/nov/07/facebook-revenge-porn-nude-photos\"\u003eFacebook asks users for nude photos in project to combat revenge porn\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eReading the article, here are the steps required by the proposed system to prevent publication of a revenge porn\u00a0image:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003eTake a compromising photo\u003c/li\u003e\n\u003cli\u003eDistribute said photo to 2nd\u00a0party\u003c/li\u003e\n\u003cli\u003eDevelop distrust in 2nd\u00a0party\u003c/li\u003e\n\u003cli\u003eSend compromising photo to 3rd\u00a0party\u003c/li\u003e\n\u003cli\u003e3rd party sends compromising photo to\u00a0FB\u003c/li\u003e\n\u003cli\u003eFB Employees views compromising photos\u003c/li\u003e\n\u003cli\u003ePhoto is hashed and included in a\u00a0database\u003c/li\u003e\n\u003cli\u003eExisting instance of the photo are\u00a0removed\u003c/li\u003e\n\u003cli\u003eAny future posts of the photo are not published\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eSo: to prevent people from seeing your compromising photo you need to show it to a bunch of people, who will leave it sitting around for a while, just in case they need to look at tit again. Sound crazy to\u00a0you?\u003c/p\u003e\n\u003cp\u003e\u003cimg alt=\"\" src=\"https://cdn-images-1.medium.com/max/1005/1*eBPqekT8SojGnjeswmL1kg.png\"\u003e\u003c/p\u003e\n\u003ch3 id=\"a-better-way\"\u003eA Better\u00a0Way\u003c/h3\u003e\n\u003cp\u003eThe article discusses the existing solution to the problem of unseeable content on the Internet: \u003ca href=\"https://en.wikipedia.org/wiki/PhotoDNA\"\u003ePhotoDNA\u003c/a\u003e. While there\u2019s a lot of press-release content about the underlying technology being donated to the \u003ca href=\"https://en.wikipedia.org/wiki/National_Center_for_Missing_%26_Exploited_Children\"\u003eNational Center for Missing \u0026amp; Exploited Children\u003c/a\u003e there\u2019s no indication that the source code is generally available. Thankfully, there are some related, portable, \u003ca href=\"http://phash.org\"\u003eopen source\u003c/a\u003e efforts which overlap the feature set of PhotoDNA considerably.\u003c/p\u003e\n\u003cp\u003eGiven that we have a way to generate a perceptual hash of the photo on the users device, there is no need to send the actual image to anyone. We can implement a system with the following steps.\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003eTake a compromising photo\u003c/li\u003e\n\u003cli\u003eUser designates photos \u0026amp; videos they wish to\u00a0suppress\u003c/li\u003e\n\u003cli\u003ePerceptual Hashes are Generated on\u00a0Device\u003c/li\u003e\n\u003cli\u003eHashes are submitted to a database of suppressed image\u00a0hashes\u003c/li\u003e\n\u003cli\u003eExisting posts matching the hash are hidden and\u00a0reviewed\u003c/li\u003e\n\u003cli\u003eSomeone posts an image which matches one of the\u00a0hashes\u003c/li\u003e\n\u003cli\u003eThe image is flagged for review based on content\u00a0policy\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eThere are a few things that I like better about this method but looking at the specific tradeoffs helps to understand the advantages:\u003c/p\u003e\n\u003ch4 id=\"tradeoff-one-processor-power-vs-network-bandwidth\"\u003eTradeoff One: Processor Power vs. Network Bandwidth\u003c/h4\u003e\n\u003cp\u003eSending the image over the network takes bandwidth and exposes the image to more potential viewers (which is what the system is supposed to be preventing in the first place). Generating perceptual hashes on the device takes processor resources and code, but nothing that my watch couldn\u2019t handle. \u003cstrong\u003eNetwork bandwidth is limited relative to processor power, generating hashes locally is better resource management.\u003c/strong\u003e\u003c/p\u003e\n\u003ch4 id=\"tradeoff-two-user-privacy-vs-intellectual-property-protection\"\u003e\u003cstrong\u003eTradeoff Two: User Privacy vs. Intellectual Property Protection\u003c/strong\u003e\u003c/h4\u003e\n\u003cp\u003eSending the code to generate the perceptual hash to the user exposes it to potential analysis and reverse engineering. Sending the image to a cloud service exposes the image to potentially multiple parties. \u003cstrong\u003eGenerating the hash on the device better preserves user privacy, using open source software will keep the blood-thirsty IP lawyers at\u00a0bay.\u003c/strong\u003e\u003c/p\u003e\n\u003ch4 id=\"tradeoff-three-prior-restraint-vs-content-review\"\u003e\u003cstrong\u003eTradeoff Three: Prior Restraint vs. Content\u00a0Review\u003c/strong\u003e\u003c/h4\u003e\n\u003cp\u003eNow, let\u2019s say I have a photo someone sent that I don\u2019t want published to any social network site. Doesn\u2019t have to be compromising, could just be a bad hair day or maybe me parking my car in two handicapped spots.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003ePrior restraint is always expense.\u003c/strong\u003e The system we\u2019re talking about is explicitly designed to censor images and flag users who post censorable images, the use of the system to suppress content which some simply doesn\u2019t like can\u2019t be overlooked. \u003cstrong\u003eRequiring that each photo be reviewed before submitting isn\u2019t just a privacy problem, it\u2019s too much\u00a0work.\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eThere is no point in having a human review the photos unless there\u2019s a hit against the database of suppressed perceptual hashes, once an image has been submitted which appears in the database it can be held for review without being published (similar to the existing tag review features, which prevent auto-tagging of your face in\u00a0image).\u003c/p\u003e\n\u003ch4 id=\"is-our-machines-learning\"\u003eIs Our Machines Learning?\u003c/h4\u003e\n\u003cp\u003eWhat confuses me about this whole project is that machine learning has been around for some time, and is becoming more and move available to developers on more and more platforms, and despite that we don\u2019t see better tools for automatically detecting this type of\u00a0content.\u003c/p\u003e\n\u003cp\u003eIf my phone can find all \u003ca href=\"https://www.bustle.com/p/what-is-the-brassiere-folder-on-ios-apple-categorizes-your-nudes-under-this-bizarre-keyword-in-the-photos-app-3193263\"\u003eimages of a brassier\u003c/a\u003e in my photo albums, then why can\u2019t Facebook identify that feature of an image, along with the face of an existing users (which it already knows) and flag it for review? Particularly if the recognized user isn\u2019t the one posting the\u00a0image?\u003c/p\u003e\n\u003cp\u003eIf you liked this article, please, \u003ca href=\"mailto:alf@istumbler.net\"\u003esend\u00a0nudes\u003c/a\u003e.\u003c/p\u003e",
	  "date_published": "2017-11-09T00:00:00-08:00"
	},
	{
	  "id": "https://istumbler.net/blog/2017/05/15/meet-the-osbornes.html",
	  "url": "https://istumbler.net/blog/2017/05/15/meet-the-osbornes.html",
	  "title": "Meet the Osbornes",
	  "content_html": "\u003cp\u003e\u003cimg alt=\"\" src=\"https://cdn-images-1.medium.com/max/829/1*kzqE0rPrvzgyF82BdF8a7w.png\"\u003e\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://buyersguide.macrumors.com/#Mac\"\u003eMacRumors Mac Buying Guide\u003c/a\u003e May\u00a02017\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003eThe \u003cstrong\u003eOsborne effect\u003c/strong\u003e is a term referring to the \u003ca href=\"https://en.wikipedia.org/wiki/Unintended_consequences\"\u003eunintended consequences\u003c/a\u003e of a company announcing a future product, unaware of the risks involved or when the timing is misjudged, which ends up having a negative impact on the sales of the current product. This is often the case when a product is announced too long before its actual availability. This has the immediate effect of customers canceling or deferring orders for the current product, knowing that it will soon be obsolete, and any unexpected delays often means the new product comes to be perceived as \u003ca href=\"https://en.wikipedia.org/wiki/Vaporware\"\u003evaporware\u003c/a\u003e, damaging the company\u2019s credibility and profitability. - \u003ca href=\"https://en.wikipedia.org/wiki/Osborne_effect\"\u003eWikipedia\u003c/a\u003e\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp\u003eThe fundamental lesson of the Osborn Effect is that disclosing future plans leads to potentially fatal consequences, particularly in the fast moving early personal computer industry. This is well understood as far as it applies to a single product line, and many technology companies have become tight lipped about future plans after learning this lesson directly, as Apple did watching it\u2019s then peer implode and die, or by hearing the \u003ca href=\"https://despair.com/products/mistakes\"\u003ecautionary tale\u003c/a\u003e we fondly remember them\u00a0by.\u003c/p\u003e\n\u003ch4 id=\"family-problems\"\u003eFamily Problems\u003c/h4\u003e\n\u003cp\u003eOf course, the Osborne effect doesn\u2019t just apply to product lines with a single model with updates released in succession, it also applies to product families like the Mac. When you update one part of the product family other parts can suffer a \u201c \u003cstrong\u003eSecond Hand Osborne Effect\u003c/strong\u003e\u201d as their implied obsolescence becomes tacitly clear. This is particularly true when making fundamental changes, like external I/O\u00a0ports.\u003c/p\u003e\n\u003cp\u003eWhich brings us to the recent problems with the Thunderbolt 3/USB Type C connectors on the new MacBook Pros: they immediately obsoleted the entire Mac desktop line in one fell stroke. With no announced or regular update schedule, it slaps a big red \u003cstrong\u003eDO NOT BUY\u003c/strong\u003e sticker on the box of every iMac, mini and Pro in the\u00a0stores.\u003c/p\u003e\n\u003cp\u003eLeaving Pro and Developer users, who\u2019s offices are typically packed with iMacs and Mac Pros on desks, with a mini or two in the network closet running servers and continuous integration tasks, who want to upgrade in the sort of limbo that makes putting together a \u003ca href=\"http://www.hackintosh.com\"\u003eHackintosh\u003c/a\u003e start to look like a viable\u00a0option.\u003c/p\u003e\n\u003ch4 id=\"the-worst-case-scenario\"\u003eThe Worst Case\u00a0Scenario\u003c/h4\u003e\n\u003cp\u003eThe Osbourne effect \u003cem\u003eis\u003c/em\u003e a killer. You could argue that Apple\u2019s current level of secrecy around new products is the result of a sort of corporate early life trauma: watching someone else die horribly by their own press release must have left some scars on the executives. Theres no arguing that the resulting communications policy works very well for the revenue leading product lines: iPhone and iPad. We have become accustomed to regular annual updates of the iPhone line with slightly less frequent (and trailing) iPad releases. Both coming along with a steady cadence which while unannounced, is clear and predictable.\u003c/p\u003e\n\u003cp\u003eWithout a predictable update schedule, doubt and fear rule the consumer\u2019s buying decisions, and when a \u003ca href=\"https://www.apple.com/macbook-pro/\"\u003eshiny new MacBook Pro\u003c/a\u003e makes it clear that the rest of the product family isn\u2019t the Most Favored and several of them have been neglected for some years, well. You can expect purchases to drop off and while a smaller company would be in big trouble, for Apple the situation is less immediately tenuous but clearly, in some ways it can be worse for a big company: sales decline leads to less attention from the executives, which leads to sales decline and the eventual outcry from users who feel neglected.\u003c/p\u003e\n\u003ch4 id=\"admitting-the-problem-is-just-the-first-step\"\u003eAdmitting the Problem is Just the First\u00a0Step\u003c/h4\u003e\n\u003cp\u003eWhile some were happy with Apple\u2019s recent \u003ca href=\"https://daringfireball.net/2017/04/the_mac_pro_lives\"\u003eexecutive sit-down\u003c/a\u003e with the press and their vague pre-announcement of a \u003cem\u003e\u201cless innovative than Phil\u2019s ass\u201d\u003c/em\u003e version of the Mac Pro next year, it worries me that they\u2019re just admitting they have a problem now. This suggests they haven\u2019t even started in on a replacement for the Pro which means waiting an entire development cycle (more than a year, typically) and nothing new was revealed about the iMac or Mini update cycles which are also staring to get long in the\u00a0tooth.\u003c/p\u003e\n\u003cp\u003eThe key to having a happy family, at home or in your product lineup, is to not show too much favoritism to one child or the other. There are, of course, moments of need or a particular talent which require special attention from time to time. The birth of a \u003ca href=\"https://www.apple.com/watch/\"\u003enew family member\u003c/a\u003e can be a trying time, especially when rushing the rest of the brood through the annual update process and throw in a big move to \u003ca href=\"http://www.businessinsider.com/apple-park-spaceship-campus-headquarters-explained-2017-3\"\u003ethe new\u00a0house\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eSo, like many an \u003ca href=\"https://www.theguardian.com/lifeandstyle/2017/may/13/a-letter-to-my-parents-whose-favouritism-ripped-our-family-apart\"\u003eignored eldest child\u003c/a\u003e the Mac line seems to have been left to itself, and as it ages it\u2019s more and more embarrassing to be living at home, in the basement.\u003c/p\u003e",
	  "date_published": "2017-05-15T00:00:00-07:00"
	},
	{
	  "id": "https://istumbler.net/blog/2017/04/25/the-sad-state-of-wi-fi-apis-in-apple-platforms.html",
	  "url": "https://istumbler.net/blog/2017/04/25/the-sad-state-of-wi-fi-apis-in-apple-platforms.html",
	  "title": "The Sad State of Wi-Fi APIs in Apple Platforms",
	  "content_html": "\u003cp\u003eIt\u2019s \u003ca href=\"https://developer.apple.com/wwdc/\"\u003eWWDC\u003c/a\u003e prediction season again. Spring break for Nerds will soon descend on San Jose with it\u2019s sessions all day, parties all night schedule. Rumors and speculation fly along with wish lists for new features that might be announced in the big keynote. Legions of fans sit huddled over glowing screens watching the video and refreshing news sites to see what other people watching the video are saying about the\u00a0video.\u003c/p\u003e\n\u003ch4 id=\"my-wishlist-is-short\"\u003eMy Wishlist is\u00a0Short\u003c/h4\u003e\n\u003cp\u003eI only ever have one wish for WWDC: \u003cstrong\u003ea single, comprehensive Wi-Fi API on all Apple platforms which can be used for apps released in the App\u00a0Stores\u003c/strong\u003e.\u003c/p\u003e\n\u003cp\u003eSeems simple enough, we have had \u003ca href=\"https://developer.apple.com/library/mac/documentation/Networking/Reference/CoreWLANFrameworkRef/index.html\"\u003eCoreWLAN\u003c/a\u003e on macOS since \u003ca href=\"http://www.apple.com/shop/product/MC573Z/A/mac-os-x-106-snow-leopard\"\u003e10.6\u003c/a\u003e. In fact, your truly got to introduce the feature at WWDC [citation needed] after working with World Wide Developer Relations organization and spending a lot of time persuading my colleges to just let it happen\u00a0already.\u003c/p\u003e\n\u003cp\u003eJust one small wrinkle; there was a question about \u003cem\u003ewhich\u003c/em\u003e Wi-Fi API was going to be published. That WWDC video isn\u2019t available, I presume, because the API that I got up on stage and presented, wasn\u2019t CoreWLAN, and neither the placeholder or the eventual incumbent were my first choice. But no matter, there was an API, it did everything that was needed and it replaced the reverse engineered \u003ca href=\"https://web.archive.org/web/20190718071822/http://www.macstumbler.com/Apple80211.h\"\u003eApple80211.h\u003c/a\u003e file everyone had been using up to that\u00a0point.\u003c/p\u003e\n\u003cp\u003e\u003cimg alt=\"\" src=\"https://cdn-images-1.medium.com/max/460/1*FumEQDdB_Z_EsAlBTk_chg.jpeg\" title=\"We\u2019re done here, right?\"\u003e\u003c/p\u003e\n\u003ch4 id=\"lets-roll-some-wi-fi-apps\"\u003eLet\u2019s Roll Some Wi-Fi\u00a0Apps!\u003c/h4\u003e\n\u003cp\u003eAs happy as I was to help publish the Wi-Fi API and get it introduced it to the world, my real motivation was to update iStumbler. It took a little while after the release of SnowLeopard until I was able to get permission to ship \u003ca href=\"https://istumbler.net/archive/release99/\"\u003eiStumbler Release 99\u003c/a\u003e in February\u00a02010.\u003c/p\u003e\n\u003cp\u003eDespite my selfish motivation, I am very proud to have enabled a number of other Wi-Fi apps, which eventually made their way to, the Mac App store. Even if one of them is an \u003ca href=\"https://web.archive.org/web/20120615033532/http://itunes.apple.com:80/us/app/wifi-manager/id483772322\"\u003eunbelievable facile\u003c/a\u003e compile and submit of the example code for CoreWLAN:\u003c/p\u003e\n\u003cp\u003e\u003cimg alt=\"\" src=\"https://cdn-images-1.medium.com/max/1024/1*cXnkMrtRyKMIfQJOae3zMA.png\" title=\"Something is missing\u2026\"\u003e\u003c/p\u003e\n\u003ch4 id=\"but-then-ios\"\u003eBut then\u00a0iOS\u003c/h4\u003e\n\u003cp\u003eThe development of iOS and iPhone was famously segregated from the existing Mac and OS X development. As such, they did not share their Wi-Fi Client stack (the user-space software which keeps the list of preferred networks and manages the automatic-join process) until fairly recently, after the teams where eventually merged in Apple\u2019s \u003ca href=\"https://www.youtube.com/watch?v=tVq1wgIN62E\"\u003eDeforistallizaion\u003c/a\u003e process.\u003c/p\u003e\n\u003cp\u003eThe iOS Wi-Fi team decided early that they were not going to offer a public API and have been doggedly hardening each release to prevent access to apps who try to use it, even on Jailbroken devices. My understanding is that it\u2019s considered a privacy risk, as a Wi-Fi scan list can be submitted to a number of online services to determine the user\u2019s location (which is exactly what CoreLocation does). If only there were some way to notify the user that an App wanted access to a hardware feature with some privacy or security implication\u2026\u003c/p\u003e\n\u003cp\u003e\u003cimg alt=\"\" src=\"https://cdn-images-1.medium.com/max/1024/1*gFXC-lcHAPbGtCECHg3MLQ.png\" title=\"I just can\u2019t think of a way to get affirmative consent from a user\u2026\"\u003e\u003c/p\u003e\n\u003ch4 id=\"enter-sandbox\"\u003eEnter Sandbox\u003c/h4\u003e\n\u003cp\u003eMuch has been written about the limitations of the App Sandbox and the Mac App store over the past few years, despite the (relatively modest) amount of work involved, I\u2019d be very happy to have iStumbler in the Mac App store. Sadly, I missed the window to submit it before the App Sandbox became a requirement, which as you can see from the \u003ca href=\"https://developer.apple.com/library/mac/documentation/Security/Conceptual/AppSandboxDesignGuide/DesigningYourSandbox/DesigningYourSandbox.html\"\u003eApp Sandbox Design Guide\u003c/a\u003e precludes using CoreWLAN:\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003eWith App Sandbox, your app cannot modify the system\u2019s network configuration (whether with the System Configuration framework, the CoreWLAN framework, or other similar APIs) because doing so requires administrator privileges.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp\u003eWhich means iStumbler stuck outside of the App Store and it\u2019s throngs of paying customers, and instead has to rely on discovery and sales via my \u003ca href=\"https://istumbler.net/store/\"\u003eweb site\u003c/a\u003e (hint-hint). But it\u2019s worse for the developers who have Wi-Fi apps already on the store: they can\u2019t be updated with new features, because that would require sandboxing. Which isn\u2019t\u00a0allowed.\u003c/p\u003e\n\u003cp\u003eThis creates a tenuous situation for people trying to make a living writing applications which utilize Wi-Fi. You can imagine my dismay when 10.11 shipped and iStumbler started emitting this\u00a0warning:\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003eairportd[#]: WARNING: iStumbler (#) is not entitled for com.apple.wifi.scan, temporarily allowing request with background priority\u200a\u2014\u200a\u2014 all entitlement requirements will be strictly enforced in a future\u00a0release\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp\u003eThankfully the warning is gone from 10.12, but for a year or so there it looked like we were headed deep into Kafka territory: A Public Wi-Fi API exists, but you can\u2019t use it outside of the sandbox without entitlements and we don\u2019t allow \u003ca href=\"http://stackoverflow.com/questions/37529193/what-is-the-entitlement-for-a-mac-app-to-use-corewlan-to-access-wi-fi-in-the-san\"\u003ethose entitlements\u003c/a\u003e to be used for Developer ID or Mac App Store\u00a0apps.\u003c/p\u003e\n\u003ch4 id=\"but-who-cares-really\"\u003eBut Who Cares?\u00a0Really?\u003c/h4\u003e\n\u003cp\u003eYou really should. If you\u2019ve ever stared at your screen waiting for something to load, spent an evening debugging a family member\u2019s broken Wi-Fi connection, had to call a nerdy family member over to fix a broken Wi-Fi connection or generally wondered \u201chow does this magic technology which brings me kitten photos by the exabyte work?\u201d then you have some skin in the\u00a0game.\u003c/p\u003e\n\u003cp\u003eAccess to the internal workings of your computer might break the feeling of magic for some, and there are things which you don\u2019t need or want to see, but we all care very much about our connection to the rest of humanity and having the tools to make sure that our Wi-Fi is connected, performing well and reliably is critically important to our sense of well-being in a more and more interconnected world.\u003c/p\u003e\n\u003ch4 id=\"a-modest-proposal\"\u003eA Modest\u00a0Proposal\u003c/h4\u003e\n\u003cp\u003eI\u2019m going to preface this by admitting that it\u2019s a big ask to get Apple to change their course on this. User privacy protections, concerns over battery usage, the need for additional testing to make sure that even aggressive use of the public APIs don\u2019t degrade system performance unacceptably all take time and political will to make\u00a0happen.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eApple should publish a single, well documented and comprehensive Wi-Fi API which works on all Apple Devices which can be deployed to the App Stores\u003c/strong\u003e. Let the user know that an app wants to use Wi-Fi, and let them decide if they want to enable Wi-Fi access in the foreground or background in the same manner as location services, the address book or\u00a0camera.\u003c/p\u003e\n\u003cp\u003eIt might seem like a niche feature, \u003cstrong\u003ebut network connectivity problems are difficult problems to diagnose and resolve.\u003c/strong\u003e Hard problems require a robust and ever changing set tools to collect information and improve the user experience.\u003c/p\u003e\n\u003cp\u003ePretty please?\u003c/p\u003e",
	  "date_published": "2017-04-25T00:00:00-07:00"
	},
	{
	  "id": "https://istumbler.net/blog/2016/09/29/the-macintosh-factory.html",
	  "url": "https://istumbler.net/blog/2016/09/29/the-macintosh-factory.html",
	  "title": "The Macintosh Factory",
	  "content_html": "\u003ch4 id=\"infoworld-march-19-1984\"\u003eInfoWorld March 19,\u00a01984\u003c/h4\u003e\n\u003cp\u003e\u003cimg alt=\"\" src=\"https://cdn-images-1.medium.com/max/1024/1*9Ae5ZnX23oG25pp6j0qs8w.png\"\u003e\u003c/p\u003e\n\u003cp\u003e\u003cimg alt=\"\" src=\"https://cdn-images-1.medium.com/max/1024/1*KICkaz43KYqWG0FYnquTJA.png\"\u003e\u003c/p\u003e\n\u003cp\u003e\u003cimg alt=\"\" src=\"https://cdn-images-1.medium.com/max/1024/1*h1s70cc548jz4YEgRWRQSQ.png\"\u003e\u003c/p\u003e",
	  "date_published": "2016-09-29T00:00:00-07:00"
	},
	{
	  "id": "https://istumbler.net/blog/2016/09/08/missing-headphone-jack-apple-s-w1-chip-heralds-the-death-of-bluetooth.html",
	  "url": "https://istumbler.net/blog/2016/09/08/missing-headphone-jack-apple-s-w1-chip-heralds-the-death-of-bluetooth.html",
	  "title": "Missing Headphone Jack!? Apple\u2019s W1 chip heralds the death of Bluetooth",
	  "content_html": "\u003cp\u003e\u003ca href=\"http://www.theverge.com/2016/9/7/12829190/apple-w1-chip-iphone-7-wireless-headphones\"\u003eApple first wireless chip is the new W1 for wireless EarPods\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eApple\u2019s iPhone 7 and Watch Series 2 announcements today included an interesting new piece of hardware, the Apple W1 wireless chip. The AirPod promotional video is long on benefits and short on details but here\u2019s what we know from the introduction.\u003c/p\u003e\n\u003ch4 id=\"its-not-bluetoothtm\"\u003eIt\u2019s not Bluetooth\u2122\u003c/h4\u003e\n\u003cp\u003eWhich is to say, it\u2019s not an interoperable product based on the \u003ca href=\"https://bluetooth.org\"\u003eBluetooth SIG\u003c/a\u003e\u2019s specifications and testing processes. Notorious for being \u201c \u003ca href=\"http://daringfireball.net/linked/2015/11/13/bluetooth-next-year\"\u003egreat next year\u003c/a\u003e\u201d and for vendors ignoring standard profiles in order to lock users of their hardware into their software, poor audio quality, flakey connections and an inability to synchronize with AirPlay due to a lack of timing signals. Bluetooth is basically the Android of Personal Area Networking, and it\u2019s clear that Apple has had enough and want\u2019s to move the ball into it\u2019s own\u00a0court.\u003c/p\u003e\n\u003cp\u003eApple will continue to support Bluetooth on various devices to the extent that they must to maintain market share. Given their current heft, they have the ability to reduce that demand once 3rd parties are onboard and producing Lightening and W1 enabled accessories. A few generations from now, after automakers have implemented W1 and the need for bluetooth interoperability (and why not create a lightening adapter for bluetooth and car charging to hasten the process).\u003c/p\u003e\n\u003ch4 id=\"its-in-the-iphone-7-watch-series-2-and-ear-pods-now-tomorrow\"\u003eIt\u2019s in the iPhone 7, Watch Series 2 and Ear Pods Now, Tomorrow\u2026\u003c/h4\u003e\n\u003cp\u003eConsider the requirements for high quality streaming audio with long batter life: very low latency and power usage, coupled with just enough CPU and DSP to decode and decompress the audio. More and more electronics manufactures are using SoC solutions wrapped around radio cores, for simplicity and power savings. And the AirPods system, as demonstrated, requires at least three, possibly four W1 chips (One for the phone and each pod, and potentially a fourth for the\u00a0case).\u003c/p\u003e\n\u003cp\u003eI have on my desk for e.g. a Wi-Fi Access Point which is based on a standard QCA chipset with enough headroom to run Linux on the radio module itself. Just add a flash chip for storage and solder it to a board. Moore\u2019s Law may have stalled but before it did we reached a very high level of integration and power efficiency, and while further gains may not be quite as fast, they will no doubt continue to come. The W1 is emblematic of this advancement, a fully integrated device controller on a single chip, with dramatic power and cost\u00a0savings.\u003c/p\u003e\n\u003cp\u003eThe W1 is very likely to be suitable for desktop HID devices (mouse, keyboards, game controllers, both of which I personally use USB versions of, primarily for reliability reasons), portable speakers, microphones, small cameras and printers, remote controls and potentially much of the Internet of Things ecosystem which we can expect to continue to promise great things \u201cnext year\u201d for some time unless someone comes in and re-writes the user expectation for ease of use and reliability.\u003c/p\u003e\n\u003ch4 id=\"what-next-for-apple-wireless-chips\"\u003eWhat Next for Apple Wireless\u00a0Chips?\u003c/h4\u003e\n\u003cp\u003eThe W1 is a clear shot across the Bluetooth bow, Apple is clearly serious about user experience for it\u2019s wireless audio products and this product decision reflects a clear vote of no confidence in the future of the SIG and the technology.\u003c/p\u003e\n\u003cp\u003eWhat Apple does or doesn\u2019t do about Wi-Fi moving forward will tell us a lot about where they want to take this new interest in chip-level RF engineering.\u003c/p\u003e\n\u003ch4 id=\"links\"\u003eLinks\u003c/h4\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"http://www.slashgear.com/the-iphone-7-headphones-savior-wont-be-bluetooth-06454864/\"\u003eThe iPhone 7 headphones savior won\u0026rsquo;t be Bluetooth\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://thinkerbit.com/articles/more-on-bluetooth-5-in-next-iphone\"\u003eThinking more about Bluetooth 5\u0026rsquo;s inclusion in the next iPhone\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e",
	  "date_published": "2016-09-08T00:00:00-07:00"
	},
	{
	  "id": "https://istumbler.net/blog/2016/06/07/stop-talking-about-your-tools-and-get-to-work-on-making-great-apps.html",
	  "url": "https://istumbler.net/blog/2016/06/07/stop-talking-about-your-tools-and-get-to-work-on-making-great-apps.html",
	  "title": "Stop talking about your tools and get to work making great apps\u2026",
	  "content_html": "\u003cp\u003e\u003ca href=\"https://duckduckgo.com/?q=static+vs+dynamic+typing\u0026amp;t=osx\u0026amp;ia=web\"\u003eStatic vs. Dynamic\u003c/a\u003e? \u003ca href=\"https://duckduckgo.com/?q=strong+vs.+weak+typing\u0026amp;t=osx\u0026amp;ia=about\"\u003eStrong vs. Weak\u003c/a\u003e? \u003ca href=\"https://duckduckgo.com/?q=Functional+vs.+Objective+programming\u0026amp;t=osx\u0026amp;ia=qa\"\u003eFunctional vs. Objective\u003c/a\u003e? \u003ca href=\"https://duckduckgo.com/?q=duck+vs+strong+typing\u0026amp;t=osx\u0026amp;ia=web\"\u003eDuck vs. Strict\u003c/a\u003e? \u003ca href=\"https://www.youtube.com/watch?v=oBkMztuHlVg\"\u003eTabs vs. Spaces\u003c/a\u003e? \u003ca href=\"https://duckduckgo.com/?q=which+is+better+vi+or+emacs\u0026amp;t=osx\u0026amp;ia=web\"\u003evi vs. emacs\u003c/a\u003e! \u003ca href=\"https://medium.com/@istumbler/code-review-you-are-doing-it-wrong-2ec72db44f2a#.duw2w434l\"\u003eCode Review\u003c/a\u003e, \u003ca href=\"https://duckduckgo.com/?q=code+style+guides\u0026amp;t=osx\u0026amp;ia=web\"\u003eCode Style\u003c/a\u003e, \u003ca href=\"https://duckduckgo.com/?q=source+control+systems\u0026amp;t=osx\u0026amp;ia=about\"\u003eSource Control\u003c/a\u003e, \u003ca href=\"https://duckduckgo.com/?q=source+control+systems\u0026amp;t=osx\u0026amp;ia=about\"\u003eBuild Systems\u003c/a\u003e, \u003ca href=\"https://duckduckgo.com/?q=source+control+systems\u0026amp;t=osx\u0026amp;ia=about\"\u003eCompilers\u003c/a\u003e and \u003ca href=\"https://duckduckgo.com/?q=LAMP\u0026amp;t=osx\u0026amp;iax=1\u0026amp;ia=images\"\u003eStacks\u003c/a\u003e; oh,\u00a0my.\u003c/p\u003e\n\u003cp\u003eIf you read the technology press, particularly those sites targeted towards developers and the myriad blogs produced by developers, you would think that the above questions and areas of concern are the most important things to consider when designing and developing an application. They\u00a0aren\u2019t.\u003c/p\u003e\n\u003cp\u003eThe choice of tools is not the biggest factor in determining the quality or speed with which your products ship. The more time you spend arguing about them the less time you spend working on the things that will contribute to your Apps\u00a0success.\u003c/p\u003e\n\u003ch4 id=\"a-bad-worker-will-never-find-a-good-tool\"\u003eA Bad Worker Will Never Find a Good\u00a0Tool\u003c/h4\u003e\n\u003cp\u003eNo other industry invests in the tools the power of success or failure; attributes the qualities of the tools to the thing produced or make such sweeping judgements of people based on their choice of tools. Perhaps this has to do with the ultimate plasticity of the digital medium, and the heady feeling of walking on stilts that you can get from working with a well orchestrated stack of technology: write one small line of code, and watch the system take great strides towards your intended\u00a0goal.\u003c/p\u003e\n\u003cp\u003eIt\u2019s this sense of great power and precise control that ties people in the technology field so tightly to their tools it ends up branding them: \u201cJava Developer\u201d, \u201cC Coder\u201d and \u201cJavaScript Developer\u201d are commonly used to describe the human resources we\u2019ve all become, and all imply a fairly specific set of skills, traits and prejudices (ActionScript developers in particular). While familiarity with a particular set of tools is important to being a productive programmer, sometimes the tools you know best aren\u2019t the right ones for the\u00a0job.\u003c/p\u003e\n\u003cp\u003eTo the extent that \u003ca href=\"https://web.archive.org/web/20160610145500/http://www.cracked.com:80/blog/6-harsh-truths-that-will-make-you-better-person_p2/\"\u003eour jobs define who we are\u003c/a\u003e, our choice of tools says something about our particular temperaments and goals. But the critical skills are adaptability and the willingness to learn new technologies in order to deliver Apps which are designed with the User first in mind. Deciding on which tools you want to use for a particular App is putting the cart before the horse, figure out where you want to go and find out the best way to get there then choose the right tools for the task at\u00a0hand.\u003c/p\u003e\n\u003ch4 id=\"type-systems-are-sm-for-software-engineers\"\u003eType Systems are S\u0026amp;M for Software Engineers\u003c/h4\u003e\n\u003cp\u003eOne of the social environmental hazards of living in San Francisco is occasionally meeting people who are very open about their kinks. Sure, it can make for titillating cocktail hour chatter, but unless it\u2019s an interest you share, the extended details can leave you feeling like you need a shower. It can get sticky quickly and there are some obvious parallels to the endless discussion of type systems in the software engineering world:\u003c/p\u003e\n\u003cp\u003e\u201c\u003cstrong\u003eStrong vs. Weak\u003c/strong\u003e\u201d typing is totally a Top \u201cI need you to do this exactly the way I tell you\u201d vs Bottom \u201cyou might have to coerce me first\u2026\u201d approach to the question of, uh, coupling.\u003c/p\u003e\n\u003cp\u003e\u201c\u003cstrong\u003eStrict vs. Duck\u003c/strong\u003e\u201d type systems have advocacy groups arguing as stringently about what qualifies one to use a particular method as others do about who can use a particular bathroom.\u003c/p\u003e\n\u003cp\u003eIt can feel safer to work inside of carefully crafted constraints, with strict rules on what you can and can\u2019t do\u2014if you\u2019re into that sort of thing\u2014but even the best type system doesn\u2019t save you from having to rigorously test your app. Most of the problems you\u2019ll find with the app will be about usability, not the type of crashing bugs that type systems can help prevent, but never completely cure.\u003c/p\u003e\n\u003cp\u003ePersonally, I\u2019d be content with a safe word which would let me escape both discussions. I always liked Guido\u2019s \u201c\u003ca href=\"http://docs.python-guide.org/en/latest/writing/style/#we-are-all-responsible-users\"\u003ewe\u2019re all adults here, right\u003c/a\u003e?\u201d attitude generally, and I appreciate that \u003cstrong\u003evoid\u003c/strong\u003e* will always be there for me when I need\u00a0it.\u003c/p\u003e\n\u003ch4 id=\"apps-are-delivered-on-platforms\"\u003eApps are Delivered on Platforms\u003c/h4\u003e\n\u003cp\u003eHere\u2019s the thing, neither your favorite tool or the one chosen type system will deliver an app. Apps are built by developers, using tools targeting platforms that users purchase devices to run. Multiple tools, with different languages, for different purposes to produce different kinds of output: code, resources, documentation, marketing materials, plans, release check-lists and on and\u00a0on.\u003c/p\u003e\n\u003cp\u003ePlatforms have native tools for app building, and learning those tools in order to deliver the App you want to your target users is a much smaller problem than figuring out who they are and what they want in the first place, then learning all the other tools you\u2019ll need to manage delivery distribution and marketing of the product of that set of\u00a0tools.\u003c/p\u003e\n\u003cp\u003eGreat apps are focused intently on their users and are honed over many revisions based on feedback from them. The easiest apps to write are the ones \u003ca href=\"https://istumbler.net\"\u003eyou want\u003c/a\u003e for \u003ca href=\"https://desklampx.com\"\u003eyour self\u003c/a\u003e. Harder is writing apps which serve a \u003ca href=\"https://istumbler.net/labs/orangecard.html\"\u003eparticular purpose\u003c/a\u003e, or \u003ca href=\"https://web.archive.org/web/20170215191328/https://qrtv.us/\"\u003etest some ideas\u003c/a\u003e you have in a clean and concise\u00a0way.\u003c/p\u003e\n\u003ch4 id=\"tools-are-just-tools\"\u003eTools are Just\u00a0Tools\u003c/h4\u003e\n\u003cp\u003eTake away the Platforms and Tools and the digital scaffold of Source Control, Build Automation and Integrated Development Environments and the only thing left is the App itself, how it meets the needs of it\u2019s users and how to shape the ideas that the developer or team has into a working\u00a0product.\u003c/p\u003e\n\u003cp\u003eFocusing obsessively on tools, as a developer, team or industry is worse than wasted time, it misses the point of developing software. Instead of arguing over \u003cem\u003ehow\u003c/em\u003e we should be agreeing on the \u003cem\u003ewhat\u003c/em\u003e and \u003cem\u003ewhy\u003c/em\u003e of our creative endeavor: build the best apps and systems we can so that people will be delighted by\u00a0them.\u003c/p\u003e",
	  "date_published": "2016-06-07T00:00:00-07:00"
	},
	{
	  "id": "https://istumbler.net/blog/2016/06/02/wi-fi-s-service-discovery-problem.html",
	  "url": "https://istumbler.net/blog/2016/06/02/wi-fi-s-service-discovery-problem.html",
	  "title": "Wi-Fi\u2019s Service Discovery Problem",
	  "content_html": "\u003cp\u003ePicture yourself in a conference room; you are a visitor here, sitting in front of a laptop looking at a document that you need to send to your host, who works here. You host needs to review the document before sending it on for approvals. There is a lot of money hanging on these approvals and you are anxious to get the document reviewed.\u003c/p\u003e\n\u003cp\u003eIt\u2019s not a huge file, but it\u2019s not small either, too big for email, let\u2019s say a whopping 100 Mb. And it just so happens that the internet connection in this conference room is slow, very slow something like 100 Kb/s, even if you could upload the file to a sharing site your host will have to download it again, taking twice as\u00a0long\u2026\u003c/p\u003e\n\u003cp\u003eThe good news? Both your laptop and your hosts are equipped with the latest Wi-Fi and Bluetooth radios. Bluetooth won\u2019t help you much, since it\u2019s not fast enough to transfer the file in a reasonable amount of time, but if you have recent laptops you should be able to get more than a gigabit per second using the Wi-Fi\u00a0Radios.\u003c/p\u003e\n\u003ch4 id=\"bonne-chance\"\u003e\u003cstrong\u003eBonne Chance!\u003c/strong\u003e\u003c/h4\u003e\n\u003cp\u003eAssuming that you and your host have some way to share files locally, and that both the client and server are on the same network, all we need to connect is to figure out what network addresses to use. Thankfully there are standards for doing this. And the beautiful thing about standards is that there are so many to choose\u00a0from:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://en.wikipedia.org/wiki/Bonjour_%28software%29\"\u003eBonjour\u003c/a\u003e, based on the \u003ca href=\"https://www.ietf.org\"\u003eIETF\u003c/a\u003e \u003ca href=\"https://tools.ietf.org/html/rfc6762\"\u003emDNS\u003c/a\u003e and \u003ca href=\"https://tools.ietf.org/html/rfc6763\"\u003eDNS-SD\u003c/a\u003e RFCs, promoted and branded by\u00a0Apple\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://en.wikipedia.org/wiki/Universal_Plug_and_Play\"\u003eUPnP\u003c/a\u003e, based on, uh, Microsoft stuff, I guess, promoted by the \u003ca href=\"http://openconnectivity.org\"\u003eOpen Connectivity Foundation\u003c/a\u003e (totally not a standards group)\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://en.wikipedia.org/wiki/Service_Location_Protocol\"\u003eSLP\u003c/a\u003e an older IETF RFCs, now considered more or less\u00a0obsolete\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eHere we have our first problem: Windows and MacOS implement two different protocols, and neither implements the other. Android implements both natively but doesn\u2019t provide it\u2019s own browser or basic set of tools so you\u2019ll need to find an app to complete our proposed file transfer.\u003c/p\u003e\n\u003ch4 id=\"administrative-denials-of-service\"\u003eAdministrative Denials of\u00a0Service\u003c/h4\u003e\n\u003cp\u003eProvided you\u2019re lucky enough to have two devices that \u003cem\u003ecan\u003c/em\u003e discover each other, they then have to be on the same network to use any of the service discovery protocols we\u2019ve discussed so far. More specifically, they need to be in the same \u003ca href=\"https://en.wikipedia.org/wiki/Broadcast_domain\"\u003ebroadcast domain\u003c/a\u003e so that service discovery messages can be heard by other devices. Broadcast domains typically extend across an entire Wi-Fi \u003ca href=\"https://en.wikipedia.org/wiki/Service_set_(802.11_network)\"\u003eSSID\u003c/a\u003e or IP \u003ca href=\"https://en.wikipedia.org/wiki/Subnetwork\"\u003eSubnet\u003c/a\u003e. However most business guest and internal Wi-Fi networks are \u201cseparate but equal\u201d networks, with guest not allowed to connect to the internal\u00a0network.\u003c/p\u003e\n\u003cp\u003eEven if both laptops join the guest network many enterprise Wi-Fi networks provide a \u201c\u003ca href=\"http://security.stackexchange.com/questions/16751/wireless-client-isolation-how-does-it-work-and-can-it-be-bypassed\"\u003eclient isolation\u003c/a\u003e\u201d or \u201c\u003ca href=\"http://superuser.com/questions/730288/why-do-some-wifi-routers-block-multicast-packets-going-from-wired-to-wireless\"\u003emulticast filtering\u003c/a\u003e\u201d mode which prevents clients on the network for talking to each other, which prevents service discovery from happening.\u003c/p\u003e\n\u003ch4 id=\"screw-it-well-go-direct\"\u003eScrew It, We\u2019ll Go\u00a0Direct\u003c/h4\u003e\n\u003cp\u003eClearly this is a bad situation: two laptops sitting right next to each other on a table which have an array of communications tools but can\u2019t talk to each other, even if they are compatible, due to the network configuration. Unfortunately it\u2019s not uncommon, so the \u003ca href=\"https://en.wikipedia.org/wiki/Wi-Fi_Alliance\"\u003eWi-Fi Alliance\u003c/a\u003e (WFA) got together and developed the \u003ca href=\"https://en.wikipedia.org/wiki/Wi-Fi_Direct\"\u003eWi-Fi Direct\u003c/a\u003e specification which allows Wi-Fi Devices to connect to each other without the Access Point getting in the\u00a0way.\u003c/p\u003e\n\u003cp\u003eThe earliest Wi-Fi Direct devices shipped in 2011. Apple, at about the same time, developed \u003ca href=\"https://en.wikipedia.org/wiki/AirDrop\"\u003eAirDrop\u003c/a\u003e and released it in \u003ca href=\"https://en.wikipedia.org/wiki/Mac_OS_X_Lion\"\u003eMacOS 10.7\u003c/a\u003e. So, once again we have a platform divide: MacOS devices can connect directly (but not with iOS, for a few more years) but AirDrop doesn\u2019t interoperate with Wi-Fi Direct and now we have Apple on one side and Everybody Else on the other.\u00a0Again.\u003c/p\u003e\n\u003ch4 id=\"now-what\"\u003eNow What?\u003c/h4\u003e\n\u003cp\u003eWithout a cross-platform story Wi-Fi Direct has had lackluster success, and the WFA has not taken the time to specify the IP networking environment for Wi-Fi that would make existing IP service discovery protocols work. They have added a new and exciting twist with \u003ca href=\"http://www.wi-fi.org/discover-wi-fi/wi-fi-aware\"\u003eWi-Fi Aware\u003c/a\u003e which overlaps with Wi-Fi Direct in scope and functionality, and allows for pre-association advertising and discovery of services (which Wi-Fi Direct also supports) and then connection to an Infrastructure, IBSS, P2P or Mesh Wi-Fi network on which the application can do further service discovery to get an IP address and finally connect for application layer traffic to\u00a0flow.\u003c/p\u003e\n\u003cp\u003eWhile it\u2019s not unusual for WFA to publish a specification like this, the situation is clearly fraught. While the industry players shuffle for dominance in the service discovery and connectivity market, users are left with the simple and apparently insoluble problem: \u201cWhy can\u2019t I connect to the device right next to\u00a0me?\u201d\u003c/p\u003e",
	  "date_published": "2016-06-02T00:00:00-07:00"
	}
  ]
}