Apple Swift language or change everything

Source: Internet
Author: User
Keywords Foreign media Apple Swift language
Tags advantages and disadvantages apple applications change code company content developer

Lead: US financial website Motley Fool commented last week that "Apple's Inc. will change everything" (Apple, Inc.'s Swift Will Change Everything) commented that although there are many advantages and disadvantages, but Apple The company's latest Swift will be a significant programming language.

The following is the main content of the article:

The Apple Worldwide Developers Conference ("WWDC"), which took place last Monday, did not release any hardware, leaving thousands of fruit powder quite lost. But do not forget, "D" in WWDC stands for "Developer," so the keynote address at this conference will certainly emphasize new software, including iOS 8 and focus on smart home and health data gathering Domain Developer Suite.

However, as a software developer, I personally think the most important product released on the day was the entirely new programming language called Swift.

advantage

Specifically, Apple said Swift took years to develop. As its name suggests, this programming language appears to be substantially faster application development than the old Objective-C and C languages. In the meantime, Swift is also very expressive - just like a scripting language - feels more natural in both reading and writing. In fact, while Swift brings familiarity to Objective-C developers, it is friendly enough to be used by novices quickly.

Apple also highlighted the Swift ultra-high speed. Swift also includes automatic memory management capabilities that promise to prevent developers from making some common programming mistakes.

In addition, Apple also introduced Playgrounds feature, eliminating the developer's time, you can render real-time code effects. This way, you do not have to waste time compiling it into an executable program, and you can catch errors before the code is all done.

Disadvantages

But Swift is not without its flaws. First, developers need to learn a new language. This is not a big deal because of the similarities between Swift and Objective-C and JavaScript, but it still takes time to use Swift's new features and unique features. However, because Swift works with Objective-C and C, it is possible to develop mixed-language applications.

However, as developers become accustomed to the language, Apple may impose more control.

This is still exclusive. Swift did not adopt the open standard, only catered to Apple developers. Therefore, if you want to develop multi-platform applications, still need to spend a lot of time and cost to develop multiple versions separately. However, this seems completely unexpected.

Finally, some veteran programmers inevitably complain about Swift's error protection and memory management features. After all, this will prevent new developers from learning key programming methods. However, the old-fashioned programming approach is not expected to keep going, especially as developers spend a lot of their time testing code loopholes that result in less time being devoted to designing applications. If Swift can automatically reduce the burden, developers of innovation and creativity can be carried forward.

Swift may need to improve gradually as well, and time can tell us how it ends up. But if everything goes according to plan, Swift will help Apple software developers design more stable and efficient applications faster.

Mysterious new equipment

Apple recently struggled to ensure that the latest smart devices were not compromised, but the secret was leaked: Some early adopters of the device said it could have the same impact on people's daily lives as the iPod, iPhone and iPad influences. (Book Yu)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.