← Blog

Complaining About NSURLSession

I think one of the most infuriating APIs on Apple's platforms are the networking ones: NSURLSession and related friends.

06:08 PM ‐ Dec. 28, 2020

A few years ago, they released the NSURLSession family of APIs to replace NSURLConnection. They could have, and should have, simply copied Python's requests library or Axios or something. Instead, NSURLSession has all of the disparities and over-modularization that NSURLConnection had, with some new features.

06:08 PM ‐ Dec. 28, 2020

Takes likes two-dozen lines to just set up a simple HTTP GET request, plus some to handle failure states and such. What where they thinking?

06:08 PM ‐ Dec. 28, 2020