![]() ![]() So far, Swift does not have exception handling. Let’s look at some aspects that we’ve found really useful in more detail. Finally we can have typesafe collections instead of NSArrays containing hopefully this type of object. Generics were also notably missing from Objective-C. We also really like its stronger, static type system which, with type inference, is pleasant to use. Value types (types with value semantics, such as Swift’s structs) can make it easier to reason about code. Swift supports some features developers have grown used to in other programming languages, such as custom operators and function overloading. We’re excited to see what improvements upcoming versions of the language will bring. ![]() If your native language is Haskell (or similar), you might feel like there’s still room for improvement. Swift was a nice and welcome step forward for us since we were used to programming in Objective-C. ![]() They also did away with existing (but less-than-ideal) concepts where they saw fit. If you follow some of its authors, you can tell that they’ve borrowed good concepts from different places, including the functional programming world. It seems like a step forward, language-wise. Swift can get us further down the path of enlightenment than Objective-C and some other languages might. Who cares about syntax (as long as it’s somewhat reasonable)? There are much more important aspects to a language, such as allowing you to express your concerns easily, and not encouraging bad behavior. Quite frankly, that seems like the wrong way to look at it. Some said that now that they "don’t have to put up with Objective-C’s syntax anymore", they could jump into iOS development. When Swift was released, many people looked at the syntax of the language and drew comparisons and conclusions. Accordingly, we want to keep crashes to a minimum. you can’t pause it or leave the app we do this to prevent cheating). Furthermore, once a test starts, you have to finish it (i.e. Since exams take about 20 minutes and will eventually be paid, crashing during an exam would constitute a pretty bad user experience. Much more important to us was stability and robustness of the app. We did not notice any performance issues with Swift, but we also did not have to look. ![]() In addition, video is being recorded during tests to prevent cheating, but that’s about it. It presents mostly static content with a few controls. Upon launch, Test Center for iOS was featured by Apple in their "Best New Apps" category in over 50 countries.įrom a performance standpoint, Test Center is not a very performance-sensitive app. To prevent cheating, tests are monitored by real people. Test Center users receive an adaptive test to ascertain their language level. This is useful, for example, if you’re a foreigner who wants to apply for a new job or enroll at a university in the US or England, as these oftentimes require some official certificate that verifies your fluency. In addition, we launched Duolingo Test Center, which allows you to certify your knowledge of a language. If you want to learn a new language, Duolingo is the go-to way to do so on your iPhone or iPad. You might be familiar with our main app, Duolingo, a popular language learning app with over 60 million users (Dec 2014), which Apple chose as App of the Year 2013. We’ll refer to some technical concepts and provide links to existing tutorials and documentation where appropriate.įor context, we’ll first briefly explain what this new app does and what the main goals were. This post is intended for developers who don’t have too much experience with Swift and are wondering how it holds up in a real-world context. In this article, we’d like to share our experiences, give our general thoughts on the new programming language, and point out some nice things Swift provides that we can use to make our apps more solid. It has seen significant numbers of users. Recently we launched a new Swift-based app, which was then prominently featured by Apple. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |