Live data from Hacker News

Swift open source – let the revolution begin

jessesquires.com

11–20 of 58 posts

Re: Swift open source – let the revolution begin

#11
Swift is a good language, but compared to things like Python, the syntax is still not as clean and intuitive.

It's definitely a much better improvement of Obj C and I would have never built 3 apps in the app store without it, but I don't see it going out of the iOS dev environment anytime soon.

Re: Swift open source – let the revolution begin

#12
post #11

Swift is a good language, but compared to things like Python, the syntax is still not as clean and intuitive. It's definitely a much better improvement of Obj C and I would have never built 3 apps in the app store without it, but I don't see it going out of the iOS dev environment anytime soon.

I'm not sure that this is completely the same, but when node.js was introduced it provided a server-side programming language that a ton of web developers were familiar with.

Swift is doing something similar now that it's open source there is a huge community of iOS (and to a smaller extent Mac) developers who are excited that they can code on other platforms (or will be able to in the near future) using a language they already know and love.

Re: Swift open source – let the revolution begin

#13
post #7

Earlier quoted context omitted.

Yeah, it's looks good on your GitHub profile to be a 'contributor' to Swift.

This brings up an interesting problem to solve: How to tell if something is a "real" contributor rather than someone who sends the occasional spelling fix. I imagine recruiters would be interested in some way to easily tell this.

Is it too much to ask that they actually look at the content of the pull requests?

Re: Swift open source – let the revolution begin

#14
The open source release has been pretty amazing so far, and I believe it's without precedent in Apple's history (with the possible exception of ResearchKit).

I was afraid they would just toss a snapshot over the wall and leave the community to struggle with maintaining it (if anyone cared to). At best, I thought we might get some regular snapshots and discussion.

Instead, everything is out in the open, the team at Apple is apparently pushing to the same repository we get to see, they have an open bug tracker, they're actively soliciting and discussing proposals from the community, accepting patches from the community, etc.

This is business as usual for most open source projects, of course, but to see it coming from Apple blows my mind a bit. It's really great to see.

Re: Swift open source – let the revolution begin

#15
post #14

The open source release has been pretty amazing so far, and I believe it's without precedent in Apple's history (with the possible exception of ResearchKit). I was afraid they would just toss a snapshot over the wall and leave the community to struggle with maintaining it (if anyone cared to). At best, I thought we might get some regular snapshots and discussion. Instead, everything is out in the open, the team at Ap…

There is some precedent at Apple: WebKit is also developed in the open.

Re: Swift open source – let the revolution begin

#16

I'm excited about Swift but is there any reason someone who is not making money as an iOS dev but knows objective C well should drop everything in learn it (serious question)? My initial opinion was swift does a lot of things much better, (no header files, new operators, etc.) but learning a new language takes a long time + it appears a majority of code is still in objC

Programming in Swift with protocols[1], generics, and value types is so much more productive than Objective-C for me. The amount of reusable code that you can write now is very high - even throwing away what type safety Obj-C can offer and making everything an "id" couldn't do many of the things you can do.

It's not clear from your post if you're trying to make money as an iOS dev but failing, or if you're making money writing for a different platform, but happen to know Obj-C. If the former, you should learn Swift - but you don't need to "drop everything" to do so, it's just a language. If the latter, whatever, doesn't matter either way.

[1] Unlike in Obj-C where they were relegated mostly to delegates/data sources and a few obscure framework classes (remember IKImageBrowserView?), in Swift they're practically the base of the language - almost every type you write should probably be based on a protocol.

Re: Swift open source – let the revolution begin

#17
post #15
post #14

The open source release has been pretty amazing so far, and I believe it's without precedent in Apple's history (with the possible exception of ResearchKit). I was afraid they would just toss a snapshot over the wall and leave the community to struggle with maintaining it (if anyone cared to). At best, I thought we might get some regular snapshots and discussion. Instead, everything is out in the open, the team at Ap…

There is some precedent at Apple: WebKit is also developed in the open.

Didn't it have to be because of KHTML?

Re: Swift open source – let the revolution begin

#18
post #15

Earlier quoted context omitted.

There is some precedent at Apple: WebKit is also developed in the open.

Didn't it have to be because of KHTML?

No, originally Apple just provided huge patch sets. Here is some history from 2005, a few months before WebKit moved to a public CVS repo: https://blogs.kde.org/2005/05/13/webcore-khtml-firefox-know-...

Re: Swift open source – let the revolution begin

#19
post #18

Earlier quoted context omitted.

Didn't it have to be because of KHTML?

No, originally Apple just provided huge patch sets. Here is some history from 2005, a few months before WebKit moved to a public CVS repo: https://blogs.kde.org/2005/05/13/webcore-khtml-firefox-know-...

Good example! And yes, KHTML's license requires Apple to release the source code for their changes, but it doesn't require them to do so in anything like a nice fashion. You can comply with the (L)GPL with tarballs and silence-implying-raised-middle-fingers rather than public repositories and bug trackers.

Re: Swift open source – let the revolution begin

#20
post #5

I'm excited about Swift but is there any reason someone who is not making money as an iOS dev but knows objective C well should drop everything in learn it (serious question)? My initial opinion was swift does a lot of things much better, (no header files, new operators, etc.) but learning a new language takes a long time + it appears a majority of code is still in objC

sometime in the future, Apple will begin releasing swift-only APIs. it's unclear that one should "drop everything", but swift usage will only increase in the future. in addition, as a company, it will become difficult to hire new people if you don't try to move to swift at some point. ymmv, of course. i'm new to iOS land and i write objective-c exclusively during my day job. that being said, the difficulty in iOS dev…

I mean sometime in the future will probably be pretty far away for Obj-C developers.

“Objective-C is not going away. We still love Objective-C as a language; we still very much depend on Objective-C and do a tremendous amount of work in Objective-C here internally at Apple,” Federighi told Ars. “We’ll be supporting Objective-C and continuing to evolve it as necessary to fit into this evolving world. We do think that Swift is the language that we recommend for new developers to our platform who are investing for the future and building new apps. We think Swift is absolutely the right place to start. But we’ll continue to maintain, advance, and support Objective-C for as far as we can see.”

From http://arstechnica.com/apple/2015/12/craig-federighi-talks-o...

Post reply on HN