Typescript 3.7 搶先推出Optional Chaining 及 Nullish Coalescing
技術隨筆 + TypeScript + Javascript

Typescript 3.7 搶先推出Optional Chaining 及 Nullish Coalescing

Optional Chaining 及 Nullish Coalescing 可以大大提升 Source Code 可讀性,冇呢兩個 Features 要寫 Equivalent 嘅 Implementation 其實好難。 interface Foo { bar?: Bar } interface Bar { baz(): string } function getFooOrUndefined() : Foo | undefined { return undefined } const foo: Foo | undefined = getFooOrUndefined() const omg = foo?.bar?.baz() ?? 'omg' 阿 Gap 將上述 Typescript Compile 變做 Javascript 比大家作一個參考: "use strict"; var _a, _b; function getFooOrUndefined() { return undefined; } const foo = getFooOrUnd

Android Studio 3.6 終於有 Live 3D Layout Preview & Kotlin 的看法
技術隨筆 + Android

Android Studio 3.6 終於有 Live 3D Layout Preview & Kotlin 的看法

Full Video終於可以有效率啲幫啲唔係自己寫嘅 UI Debug,相信會對部電腦嘅硬件需求高咗(終於發揮到你部新買嘅 6核/8核機 😆) Jetpack Compose 亦如箭在弦 - 變天的新 Kotlin-based 技術,過往阿 Gap 嘅睇法Recap [https://gaplo.tech/jetpack-compose-disruptive/],好多人問阿 Gap: > 學習 Kotlin 係咪一個 Must? 阿 Gap 於不同時期對 Kotlin 的看法 阿 Gap 早喺 2016 年開始學習 Kotlin,並於同年出咗一隻 100% Kotlin Android App,當時已經覺得係一個 Must,寫 Android 嘅基本配置! 直到 Google 2017 年中,將 Kotlin 納入 First Class Support ,阿 Gap 更加大大力咁推,希望更多香港 Developer 早啲認識 到 2018 年,Google 終於正式推出小型 Kotlin-based Development Tools (Android KTX),明顯正在建

Patreon - 支持 Gap R&D 一些有趣的 Technical Blogs
GLT 討論社群 - 與 Gap 零距離討論 IT 日常、與社群交流最新技術
Join GLT Community