News for hackers. Stuff that matters.
Re:Swift Changes Considered Harmful by mrpippy on Saturday February 18, 2017 @03:59PM (#13676642)
I think his main complaint is that Apple should stop publishing sample code (which they update sporadically at best) in Swift when the language is changing so much. At WWDC this year I believe virtually all code shown on screen was Swift, but ObjC would have been fine for almost everything.

More broadly, I think Apple should have marketed Swift as "beta" until at least v3, to really make clear (especially to managers) what it means to have a language with constant source-breaking changes.

Re:Swift Changes Considered Harmful by edblarney on Saturday February 18, 2017 @04:17PM (#13676742)
" should stop publishing sample code (which they update sporadically at best)"

Ah? No. 'Sample code' is essential, often more valuable than the docs.

They are a $700 Billion dollar company.

You know what they can afford to do?

Have more sample code, better documentation - and update all of the goddam samples, moreover, to make it clear in each sample, which version applies.

Re:Swift Changes Considered Harmful by mrpippy on Saturday February 18, 2017 @05:47PM (#13677128)
You cut the quote off too early, I think they should have sample code in ObjC rather than Swift
Re:Swift Changes Considered Harmful by melling on Saturday February 18, 2017 @04:20PM (#13676753)
Objective C is going to "die" fast. It's basically an Apple only language, and the community is quickly moving to Swift.

If you don't know either language, simply compare the code. Objective C is a much noisier language.

https://h4labs.wordpress.com/2016/02/09/should-i-use-objecti...

Apple doesn't dwell on the past. Most of their examples are in Swift for a reason.