With pattern matching, you can accomplish more with less typing, and it helps give Swift its modern language feel. This chapter picks up where “Swift Apprentice: Fundamentals - Chapter 4: Advanced Flow Control” left off and shows you powerful Swift idioms that let you work with switch statements, tuples, optionals…
Android & Kotlin
Common Design Patterns and App Architectures for Android
Mar 29 2021 · Article (30 mins)
Discover how to make your Android code cleaner and easier to understand with these common design patterns for Android apps. “Future You” will appreciate…
…might be wondering: Which architecture pattern is right for me? Honestly, there’s no perfect universal app architecture. An architecture that works best for one project might not work best for your project. There are many different aspects to consider when establishing an architecture for you and your team…
iOS & Swift
Design Patterns by Tutorials: Updated for iOS 12 and Swift 4.2!
Oct 22 2018 · Article (15 mins)
…excited to announce that the second edition of our book Design Patterns by Tutorials is now available — check out what’s been updated in the latest edition…
iOS & Swift
Getting Started With Core Haptics
Aug 3 2020 · Article (35 mins)
…this Core Haptics tutorial, you’ll learn how to create and play haptic patterns, synchronize audio with haptic events and create dynamic haptic patterns that respond to external stimuli…
Android & Kotlin
Regular Expressions in Kotlin
Mar 14 2022 · Article (30 mins)
…simple string methods could make you write more code than needed. Imagine you want to check whether a string is a phone number. The pattern for a phone number is three number strings separated by dashes. For example, 333-212-555 is a phone number, but 3333/2222…
iOS & Swift
Design Patterns by Tutorials: Full Release Now Available!
Jun 6 2018 · Article (10 mins)
…excited to announce that the full release of our book Design Patterns by Tutorials is now available — check out what’s been added to the latest edition…
Design patterns are reusable, templated solutions to situations you’ll see again and again as you build apps. Design patterns in iOS can help you create logically-constructed code that leads to well-architected apps, by using generic solutions that experienced developers have encountered many times before…
Android & Kotlin
Advanced Object-Oriented Programming in Kotlin
May 22 2024 · Multimodal Module (1 hr, 7 mins)
This article describes the MVVM Design Pattern and its components, data binding, and other design patterns and architectural concepts for the Android platform…
Searching for patterns in text is a common task you'll encounter in your programming travels. Swift provides a power type called Regex to perform that task. Using standard syntax, you can express complicated matching patterns to extract information from text. You can use an all-new regex builder syntax…
Flutter & Dart
Getting Started With the BLoC Pattern
May 11 2022 · Article (25 mins)
…popular BLoC pattern to build your Flutter app architecture and manage the flow of data through your widgets using Dart streams…
AI
New
Python for AI: A Crash Course
Nov 16 2024 · Multimodal Module (3 hrs, 37 mins)
…computer, it enjoyed a revival in the 1980s on home computers like the Apple II and Radio Shack TRS-80. ELIZA looks for patterns in the user’s input and matches them with pre-written responses. For example, if the user entered “I feel uncertain,” it would choose from…
Design patterns aren’t concrete implementations, but rather, serve as starting points for writing code. They describe generic solutions to problems that many experienced developers have encountered many times before. What does this mean exactly...? Learn this and more in this chapter…
iOS & Swift
Getting Started With the VIP Clean Architecture Pattern
Jan 31 2022 · Article (30 mins)
…this tutorial, you’ll learn how to utilize the VIP clean architecture pattern to develop apps for Apple platforms while building a SwiftUI for ordering an ice cream…
Android & Kotlin
Android Test-Driven Development by Tutorials
Jul 21 2021 · Book
…team, like managers, QA testers, analysts and designers. Reusable abstraction: Reusability saves time. Later in the chapter, you’ll see that you can reuse patterns within different parts of an app, across different apps as well as on other platforms. You’ll also see that you can use architecture patterns…
iOS & Swift
Core Graphics Tutorial: Patterns and Playgrounds
Mar 3 2021 · Article (25 mins)
Learn how to draw a repeatable pattern and use Playgrounds to prototype drawing a complex image…
Android & Kotlin
New
Kotlin Multiplatform by Tutorials
May 7 2025 · Book
…issue. Although the term software architecture is relatively new in the industry, software engineers have applied the fundamental principles since the mid-1980s. Design Patterns The broad heading of software architecture consists of numerous subtopics. One of these is architectural styles — otherwise known as software design patterns. This topic…
Looking at Data Management Patterns Apps that require a lot of data can find themselves overwhelmed by the volume they need to deal with. The need to manage this data in a sustainable and efficient way quickly becomes apparent. As an engineer, it’s your responsibility to ensure your…