3 ms·
Was not "marketing" one of the biggest driving factors of moving to Swift, though? Objective-C ranked highly in usage, but largely because of it being necessar
by kiawe_fire 6y ago
Was not "marketing" one of the biggest driving factors of moving to Swift, though?
Objective-C ranked highly in usage, but largely because of it being necessary for iOS development.
At the same time, it was common outside of the Apple bubble for devs wanting to make something for iOS to complain about having to learn this "weird language with square brackets" that "only Apple uses", and "why can't we just use something like Java like we can with Android?"
With, of course, zero knowledge of Objective-C's Smalltalk roots, or its purported ethos.
I know it's more complicated than "square brackets bad", with all the C code mixed in, and memory release pools and all, but in general, Apple did still have a marketing problem courting outside developers to build native apps without resorting to "web view" wrappers.
I love Swift, I really do, but I would love something that feels more directly Smalltalk-esque even more. Swift decidedly feels like the goal was to make something that looked familiar enough to the C / Java / Javascript / C-like devs to get them on board, without tossing out some of the core benefits of the Smalltalk ethos. Which, apparently, means using C-like methods with parentheses at first... until you reach special cases where you don't.
Smalltalk is, IMO, a great example of how something can both be very expressive yet very minimal... but that inherently means ditching some very familiar syntax. As soon as you do that, you lose a lot of C-like developers (be it rightfully or wrongfully so).
- mpweiher 6y ago> Apple did still have a marketing problem courting outside developers Apple categorically did not have a problem courting outside developers at this point in time. They hit 20m registered developers in 2018: https://techcrunch.com/2018/06/04/app-store-hits-20m-registered-developers-at-100b-in-revenues-500m-visitors-per-week/?guccounter=1 https://techcrunch.com/2018/06/04/app-store-hits-20m-registe... Yes, this was after the Swift announcement, but the trajectory was in place way before that. WWDC has been completely sold out for how many years? At first, it sold out in a couple of weeks, then a couple of days, then a couple of hours and finally a couple of minutes or even seconds. Then they started doing the lottery and even that was a while ago. > but that inherently means ditching some very familiar syntax Swift has tons of unfamiliar syntax. And you don't have to adopt Smalltalk as-is. Objective-Smalltalk, for example, has class definition syntax and uses curly braces. Those are not big deals. Keyword syntax, on the other hand, is a big deal, as the example of Swift shows. Because you do want argument labels, and you do want to pass closures. But that just gets messier and messier.