加载中

In our last blog, we considered Swift to be one of the most popular mobile app development trends that are going to conquer 2017. And that's quite a fact! If you are a up-to-date with the iOS world, you know that Swift took over Objective-C slowly and smoothly in December 2016.

  • However, many have missed that the trend is going somewhere else. Our researchers at  ValueCoders found that some top notch giants like IBM, LinkedIn, Facebook, Uber, and Mozilla were already involved with Swift. But now, worldwide startups (including the fast-growing ones in Silicon Valley) are focusing on Swift, too.  A study from UpWork shows that Swift is one of the top fastest growing skills for startups and freelancers. 

Before we discuss the reasons, here's some crisp information about Swift's background.

在我们最后一篇博客中,我们认为 Swift 将成为最流行的移动应用开发趋势之一,这将会在 2017 年得到验证,这是必须的!如果你对 iOS 世界保持时刻关注,你一定知道 Swift 在 2016 年 12 月份在慢慢地平滑地替代 Objective-C 的地位。

然而,很多人还没意识到这种趋势正蔓延到其他地方。我们在 ValueCoders 的研究人员发现,一些顶级巨人公司,如 IBM,LinkedIn,Facebook,Uber,以及 Mozilla 已经开始使用 Swift。而现在,全世界的初创公司(包括硅谷那些快速成长的公司)也都在关注 Swift。来自 UpWork 的研究表明 Swift 对于初创公司和自由职业者来说是增长最快的技能之一。

在讨论原因之前,这里给出一些关于 Swift 明确清晰的背景信息。

Background of Swift Programming Language

Swift is a programming language from Apple that's characterized as “Objective-C without the C.” It was introduced at WWDC in 2014 and announced as open source in 2015. After it went open-source, IBM and Apple jointly started investing in it. Swift supports iOS, OSX, watchOS, tvOS, and last but not least, Linux. It's had two major version releases to date — Swift 2.0 in September 2015 and Swift 3.0 in September 2016. Now, it is one of the top trending techs on Stack Overflow, passing Objective-C

7 Reasons For Startups To Adopt Swift Over Objective-C

Swift has taken off successfully not only because it’s well-structured and designed, but also because people have supported it. Moreover, independently managed conferences such as the Swift Summit help to enrich the community. Let's see what's there for startups to adopt this language.

Swift 程序语言的背景

Swift 是一门来自 Apple 且被称为“没有 C 的 Objective-C”的程序语言。它在 2014 年的 WWDC 大会上被介绍引进并且在 2015 年正式开源。Swift 开源后,IBM 和 Apple 联手投资支持 Swift 的发展。Swift 不仅支持 iOS,OSX,watchOS,tvOS,还支持 Linux。它已经正式发布了两个主要的版本—2015 年九月份的 Swift 2.0 以及 2016 年九月份的 Swift 3.0,它还是 Stack Overflow 上发展趋势最快的技术之一,超过了 Objective-C。

7个初创公司采用 Swift 而不是 Objective-C 的原因

Swift 已经成功起飞!不仅是因为它结构和设计良好,而且还因为人们都支持它。此外,像 Swift Summit 一类的独立管理的机构也在帮助丰富整个 Swift 社区。让我们来看看那些初创公司采用这个语言的原因吧。

1) Open Source and Growing Fast

An open-source programming language makes it immediately accessible as well as less costly for startup companies. According to studies, open source software/languages collectively help business owners save around $60 billion per year.

Swift is available on Linux, and work is being done to bring Swift to Windows. With the support of the open-source community, Swift shows great potential, and it's growing really fast. Until 2014, it was a monopoly for Objective-C to develop native iOS apps, However, Swift has brought an end to that era. Here's a glimpse of the growth

1) 开源并且发展迅速

一个开源的编程语言使它易于获取,并且对初创公司来说成本更低。根据研究,开源软件/语言总共帮助企业主每年节省大约 600 亿美元。

Swift 在 Linux 上可用,并且正在进行将 Swift 带到 Windows 的工作。在开源社区的支持下,Swift 显示出了巨大的潜力,并且发展非常迅速。到 2014 年止,Objective-C 垄断了开发原生 iOS 应用程序,然而,Swift 已经导致了那个时代的终结。这里是一个增长趋势的一瞥。

2) Less Time to Market and Easy Coding

One of the biggest challenges for startups is shortening time to market. They need quality products in less time. Swift can help you with that.

With Swift package managers, developers can push their packages to collaborate with others, focus on the logic, and utilize different packages to quickly assemble apps in order to reduce time to market. There are also different repositories of Swift package managers, like IBM Swift Package Catalog, which offer high-quality dependency management and easy coding options.

3) Less Code and Even Less Error Prone

Swift, as a functional programming language, supports passing functions as variables. As a result, you produce highly generic code that can do a lot of amazing things, reducing repetition as well as effort.

On the other hand, on behalf of Swift's predictable behavior, when a null optional variable is used, Swift instantaneously triggers a run-time crash. The crash fuels up the bug-fixing process due to its consistent behavior. Swift forces you to fix the issue right away. This in return, reduces development time.

2) 减少面市时间和轻松编码

初创公司面临的最大挑战之一是缩短面市时间。 他们需要在更少的时间内提供更优质产品。 Swift 可以帮助你实现这个目标。

使用 Swift 包管理器,开发人员可以推送他们的包与他人协作,更专注于逻辑,并利用不同的包快速组装应用程序,以减少面市时间。 还有很多不同的 Swift 包管理器仓库,如 IBM Swift Package Catalog,它提供高质量的依赖项管理和简单的编码选项。

3) 编码更少并且更不容易出错

Swift 作为一种函数式编程语言,支持将函数作为变量传递。 因此,你可以编写高度通用的代码,用它可以做很多惊人的事情,减少重复和不必要的付出。

另一方面,说明下 Swift 的可预测行为,当使用 null 可选变量时,Swift 立即触发运行时崩溃。 由于其一致的行为,崩溃加速了错误修复过程。 Swift 迫使你立即解决问题。这反过来,缩短了开发时间。

4) Safer and Easy to Maintain

Safety is a crucial aspect when it comes to mobile applications. In this competitive marketplace, a startup should concentrate on developing a secure app. Moreover, if the app is easy to maintain, then it's a boon indeed.

Swift offers both benefits at a time. Be it the way it handles bugs or calls the pointer variables, it produces safer apps than Objective-C. On the other hand, Swift is much easier to maintain, as it does not have any legacy code to deal with. Objective-C can not evolve until C evolves, but Swift does not have such dependencies, which makes it easier to maintain.

5) Less Costly to Hire Swift Developers

If you want to hire iOS developers to develop native apps, Objective-C and Swift are the only choices. As per a survey from Stack Overflow, Objective-C developers are the highest paid ones, followed by Swift developers. Here's is the list:

Hence, in order to reduce development costs, Swift is much preferable over Objective-C.

6) Swift Has a Bright Future

Swift is a very organized and well-designed programming language from Apple. It is faster than Objective-C, offers unified memory management, and it is intuitive, clean, and expressive, which allows you to express the intent of the code without the language getting in the way.

4) 更安全以及更容易维护

当涉及到移动应用程序时,安全是一个至关重要的方面。 在这个竞争激烈的市场中,创业公司应该致力于开发一个安全的应用程序。此外,如果应用程序很容易维护,那么它确实是一个福音。

Swift 一次性提供了这两个好处。无论是处理错误还是调用指针变量,它都会生成比 Objective-C 更安全的应用程序。另一方面,Swift 更容易维护,因为它没有任何遗留代码来处理。 在 C 语言变革之前,Objective-C 是不能变革的,但 Swift 没有这样的依赖,这使其更容易维护。

5) 较低成本雇用 Swift 开发者

如果你想雇佣 iOS 开发者开发本地应用程序,Objective-C 和 Swift 是唯一的选择。 根据 Stack Overflow 的调查,Objective-C 开发人员是薪水最高的开发人员,其次是 Swift 开发人员。 下面是列表:

既然如此,为了降低开发成本,Swift 比 Objective-C 更可取。

6) Swift 前景更光明

Swift 是一个来自苹果公司的组织和设计非常良好的编程语言。它比 Objective-C 更快,提供了统一的内存管理,它是直观的、纯净的和表达性的,这允许你在毫无语言阻碍的情况下表达代码真实意图。

7) Developers Love It!

One of the most important factors for any programming language is the developers. Developers focus on and embrace modern technologies in order to make the development environment fun and engaging while also making sure their talents don't fade. According to a 2016 study in Stack Overflow, Swift is one of the most-loved languages, receiving votes from 72.1 % of developers. Also, Swift has a large developer community, which makes it more supportive and interesting for startup development.

Bottom Line

In the competitive business environment where time is a deciding factor for startups, it is a major decision to take whether they want to switch to a new programming language. However, if you/ your iOS developers are already using Objective-C, then you have a head-start and don't need to learn an entirely different language.

7) 开发者们喜欢它! 

不管什么编程语言,开发人员都是其中必不可少的元素。为了使开发环境有趣且具有吸引力,以及确保他们的天赋不会随时间而褪色,开发者们聚焦并拥抱现代技术。根据 Stack Overflow 上 2016 年的一份研究,Swift 是最受喜爱的语言之一,获得了 72.1 % 开发者的投票。而且,Swift 有一个庞大的开发者社区。这对于开始阶段的开发来说,可以得到更多支持且更有趣。

结论

在竞争激烈的商业环境下,时间是是否开始的决定性因素,是否转向一门新的语言是一个重大的决定。然而,如果你/ 你们 iOS 开发者已经在使用 Objective-C,你们就有了领先优势,并且学习起来不会困难,因为语言之间有相似之处。

Save
返回顶部
顶部