Max Chiang單例模式 Singleton Pattern設計模式有分為 創建型模式(Creational Pattern)、結構型模式(Structural Pattern)和行為模式(Behavioral Pattern),這次要介紹的單例模式屬於創建型模式。創建型模式可以讓創建物件的方法更加彈性靈活,也能提升重用性。Jun 10Jun 10
Max Chiang時の魔術師 ⌛ Kotlin.time 的 Duration API在 Android 開發中,可以使用 Kotlin.time 的 Duration API 來表示時間長度或時間間隔的類型。為什麼我們需要使用 Duration 呢?讓我們透過一個例子來理解:Dec 2, 2023Dec 2, 2023
Max ChiangArchitecture: Organizing modules & Entities — MAD Skills(5/5)Architecture 是 2022 Google 推出的 Android 官方架構指南:本篇文章將介紹如何劃分 modules & EntitiesJun 30, 2022Jun 30, 2022
Max ChiangArchitecture: 概述常見的架構原則有三點: 可擴充、提升 App 的穩定性 和 提升 App 可測性。為了滿足上述需求,App 架構定義…Jun 27, 2022Jun 27, 2022
Max ChiangArchitecture: The Domain Layer — MAD SkillsArchitecture 是 2022 Google 推出的 Android 官方架構指南:本篇文章將介紹 Architecture 中的 Domain LayerJun 5, 2022Jun 5, 2022
Max ChiangArchitecture: The UI layer — MAD SkillsArchitecture 是 2022 Google 推出的 Android 官方架構指南:本篇文章將介紹 Architecture 中的 UI LayerMay 26, 2022May 26, 2022