6 ms·
Truly I wish Swift was cross platform, then I would commit myself to learning it and doing cool things with it. As it stands though, it's just another walled g
by scrollaway 12y ago
Truly I wish Swift was cross platform, then I would commit myself to learning it and doing cool things with it.
As it stands though, it's just another walled garden. Aren't developers tired of those yet? Even microsoft started opening up .NET a lot more. Who, in 2014, creates a new programming language and thinks it's a good idea to lock in the developers to Apple products?
Maybe the language will be a revelation and it'll be implemented by volunteers on Linux and what not. But until then, what's the point?
Tell me, iOS/OSX developers, why bother? I want to know why people think it's a good idea to learn Swift at this point (other than purely for technical curiosity which is great).
- interpol_p 12y ago> Tell me, iOS/OSX developers, why bother? Learning Swift really isn't a big deal. If you want to make something, then just make it. If you need to learn something that might not be permanently useful: so what? Really, the knowledge you learn when developing an app is not "wasted" because the language is proprietary. The important parts will relate to design and architecture, not implementation details such as language used. Once you are a competent programmer you don't really "learn" new languages, anyway. You just jump in and use them, then look up reference when you get stuck. It's a trivial thing in the scope of building an application or a game. > Maybe the language will be a revelation and it'll be implemented by volunteers on Linux and what not. But until then, what's the point? What's the point of developing in Objective-C? For practical purposes it is a proprietary language. Yet it is used by many people and used successfully. The point is to build something that will be used. Your argument applies equally to many successful languages and development environments. I don't think Swift should really bother you, considering what it is designed to replace.
- IanCal 12y ago> Learning Swift really isn't a big deal. Often I feel that learning a new language is more like learning a local dialect or slang than a truly new language. Some languages are very different, but I'd wager that if you're looking to learn swift you've probably worked with another very similar language before. Sure there'll be some stumbling blocks, but you can get to a point of "this works, but probably isn't the best or fastest way for this language" fairly quickly by trying things and copy-pasting errors into google. > If you need to learn something that might not be permanently useful: so what? Indeed, and unless it's a really poor language you'll probably take something useful away from it. Maybe it'll be a language-feature that saves a lot of boilerplate that makes you wonder if you can implement in your own favourite language. Maybe it'll be an awesome package manager or module structure. Maybe it'll just be fun or make you think more about how different approaches work for different situations.
- josephlord 12y agoI may yet be disappointed but expect Apple to Open Source it after release as they normally do with their LLVM/Clang changes. It is still in Beta and still in flux at the moment (language not just implementation).
- 72deluxe 12y agoHave Microsoft given their official blessing to the multi-platform ports of .NET then? If not, .NET and associated languages are in the same position as Swift, surely? Plenty of people write software for Windows using .NET, which happens to be the main fashionable system to use on Windows, and isn't typically popular on Mac OSX. But this does not make .NET rubbish - it just happens to be designed for Windows and isn't natively available on Mac OSX from Apple. Does this make .NET and associated languages "bad" or "not worth learning"? Just because Mono is available on other platforms thanks to the huge effort from the community does not necessarily mean it would be a good choice to use for a cross-platform product, as the real journey and path of the platform is still in the hands of Microsoft. This is the same as Java used to be. But it didn't stop people writing plenty of software in Java, thanks to the main platforms supported by the Java VM. Did this make Java "not worth learning"? I suppose Apple doesn't really need to care about making a language for other platforms. From the perspective of developers on Apple platforms, the need for a cross-platform language/system would seem redundant. As other posters have mentioned, the niche Objective-C language has found plenty of developers, and that's typically available on Apple devices (unless you count GNUstep). Does this make Objective-C "not worth learning"? And remember that just because Swift is on one platform doesn't mean you CAN'T do cool things with it. It just means that you can only do them on one platform. That is in Apple's best interests. Does it really need to be available on every platform to be usable? For example, they don't serve pizza at my local Chinese takeaway. This doesn't stop the food there from being great. And it doesn't make pizza less delicious when I buy it from elsewhere. But I'd be foolish to complain about the lack of pizza from the Chinese takeaway and refuse to eat the lovely Chinese food they serve there. Chinese food and pizza are both delicious, and they're only available from different places, but that doesn't diminish their taste. I suppose the witty solution to the problem you face is to just learn C or C++ and do cross-platform stuff with that.
- DCKing 12y agoThis is quite an unfair comparison. First of, Microsoft does support the development of .NET and associated components. It is definitely not an active support relationship, but MS answers the questions Mono developers have and has provided some help for the Moonlight project. Furthermore, it seems Microsoft is making an effort to make ASP.NET on Linux more attractive. Having said that, it doesn't even matter what Microsoft does with .NET. If Swift stays 'closed' as it is, you can use it to develop Mac and iOS applications. If .NET stays 'closed' as it is, you can use your .NET experience to develop Windows desktop applications, 'Windows Store' applications, web applications and services, client side web programming, Windows Phone apps, apps for iOS and Android with Xamarin, Linux desktop applications, and even operating system development or protocol verification if you're an adventurous academic. All of these things are being done right now by people, and good tools exist for those things. I realize that people on HN don't like Microsoft's lock-in or tools, but experience with .NET does give you access to a very diverse set of areas to program in. Now I'm quite convinced that Apple will open source Swift (they appear to have informally confirmed they'll be doing exactly that [1]). And then its basis on LLVM will make sure that it can be used in other places as well. But I doubt Swift's uptake outside of Apple apps will be bigger than Objective-C's simply because, unlike Microsoft, Apple won't use or promote Swift anywhere for anything else than Apple apps. The point is that 'openness' of a language itself does not matter much for the value to learn it. It depends on how much you can do with the language. Even if you assume "You can never use Swift outside of Apple's context" and "You can never use .NET outside of Microsoft's context" are both true (which they are not), Microsoft's context for .NET is much broader than Apple's is for Swift. [1]: https://twitter.com/mxweas/status/474581160454942721 https://twitter.com/mxweas/status/474581160454942721 [2]: Of course one can argue that developing Mac+iOS applications itself presents more value than all of the .NET things I mentioned combined. But that was not the point of this discussion.
- laichzeit0 12y agoTo be fair, learning a new language is a joke. It doesn't require a substantial investment of time. You're most likely going to be gluing API calls together and that's where you'll spend 80% of your time: Learning APIs. Even then this is more likely looking things up in documentation or googling for answers on StackOverflow. Whether you glue them with Python, Ruby, Objective-C, Java, Swift, etc. it really doesn't matter. If a new programming language is your only gripe then you have a way bigger problem on your hands when it comes to writing applications :)
- cabalamat 12y ago> To be fair, learning a new language is a joke. It doesn't require a substantial investment of time. I suspect Peter Norvig would disagree with you there -- http://norvig.com/21-days.html http://norvig.com/21-days.html > You're most likely going to be gluing API calls together and that's where you'll spend 80% of your time For certain problems this is the case, and you can get away with writing Python/Ruby/etc in Swift syntax. For other problems it isn't the case. Choice of language does matter; if it didn't, would Apple have invented Swift in the first place?
- nknighthb 12y agoLearning to program is not the same as learning a new language. Norvig is talking about something utterly different that has no relevance here. It's even hinted at in his own words -- "Learn at least a half dozen programming languages.".
- cabalamat 12y ago> Learning to program is not the same as learning a new language. Norvig is talking about something utterly different that has no relevance here. At least in parts of his essay, Norvig is talking about learning a new language when one already knows how to program. For example, where he says: In 3 days you might be able to learn some of the syntax of C++ (if you already know another language), but you couldn't learn much about how to use the language. In short, if you were, say, a Basic programmer, you could learn to write programs in the style of Basic using C++ syntax, but you couldn't learn what C++ is actually good (and bad) for.
- SideburnsOfDoom 12y ago> Tell me, iOS/OSX developers, why bother? I want to know why people think it's a good idea to learn Swift at this point I'm sure that swift is of great interest to people who need to write iOS apps, and who like to use modern languages.