Go homepage(回首页)
Upload pictures (上传图片)
Write articles (发文字帖)

The author:(作者)qq
published in(发表于) 2014/6/6 8:32:23
Apple releases Swift language: what developers think? ,

Apple releases Swift language: what developers think?
-Swift language, programming language Swift, Swift code, Swift Code,Swift, Apple-IT news Apple releases Swift language: what developers think?

Introduction : on the WWDC this year, the programming language of the developer's most important message is that the new Swift. Its goal is to make application development easier, faster, and more stable, while ensuring that the end applications are of better quality.

Just past WWDC2014, for ordinary users, the latest attractive Mo iOS8 a variety of new features, and for developers, is undoubtedly the new Swift programming language. The language's design goal is to make application development easier, faster, and more stable, while ensuring that the end applications are of better quality. The Swift to launch within a few day, foreign developers had already been using this programming language, re clones has super hot game Flappy Bird.

What is Swift?

Classic c language is a high-level programming language. Its upgraded version, Objective-C, is the choice of apples for many years. Application Objective-C has more than 30 years, the c language lifespan longer, is almost 40 years old, it's time to update.

In the midst of these programming languages, one type called "scripting languages", such as Python, write and test process is relatively easy, but is not particularly powerful, the practical effect was not ideal. If you want to write a game, you need to fully take advantage of device performance, then it is not the best choice. Using traditional programming languages, such as Objective-C, can better take advantage of device performance, and to develop more complex applications. Compared to traditional language difficult to master, however, compiling and testing process more cumbersome.

Swift builds on strengths in various languages, and to improve their shortcomings. Swift uses the existing Cocoa and Cocoa Touch framework, compatible with Objective-C, you can switch at any time during the development process. Swift has a faster, more secure, more interactive features, will bring a whole new experience for developers.

Advantages of Swift

Apple said at least a few key indicators, Swift execution speed faster than Python and Objective-C procedures. And Swift support for Xcode development environment, just like scripting language, with real-time preview. Developer after you enter the code, right side of the screen will show the effects of the code. In addition, developers can also see the effects of the code in the application is running, which makes them easier to process.

For example, a developer want to write a game, in which balloons with natural patterns of movement up and down. In order to achieve this functionality, he wanted to use a simple mathematical functions: sine function. The arc sine function could produce fluctuates, similar to the floating balloon.

Through Swift, developers can easily balloon assigned to sine, followed in a simple graph of observation values change during application execution. This enables developers to easily observe balloon campaign mode, and is in line with expectations. If there's a problem, developers can immediately make adjustments. Previously, developers are required to run the code by the compiler, followed procedures to obtain good results. Depending on the application of different sizes, this process may take a few seconds, minutes, or even longer.

What do developers think

Swift's performance really, still needs to be tested. On one hand, many developers say Apple's decision, has a 20-year history of Objective-C language does have some outdated, they look forward to the new language.

According to Apple's statement, their development has been going on for a number of years for Swift, programming veteran, to adapt to a new language is easy and Swift for the new style to be more friendly. And Swift's advantage is not only faster, but also support many features of modern programming languages, such as the paradigm of programming, namespaces, and so on. In addition, Apple said Swift learning easier.

But there are a lot of people are not very happy. As reflected in some developers, the biggest problem is that developers would have to learn a whole new language. In addition, because Swift, a simple language, development and application will greatly reduce the threshold of, perhaps there will be some mature developers involved.

Download iBooks Store is now providing Swift development guide. IOS8 and OS x Yosemite in the fall after the official release, developers can submit to the App Store, Mac App Store with its development of applications.




If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)





QQ:154298438
QQ:417480759