技術隨筆 / 55 篇文章

Apple Documentation Platform 係用 VueJs 砌
技術隨筆 + VueJs

Apple Documentation Platform 係用 VueJs 砌

碌 Twitter [https://twitter.com/if_var/status/1217306531126890496?s=20]見到 Apple 搵緊 VueJs 高手去做 Documentation Platform,無意中發現有啲奇怪野係 https://developer.apple.com/tutorials/swiftui/tutorials! 估計係佢係 Dev Environment 嘅時候用咗 `console.log` Log 條 Path 出黎,令到 Webpack  Extract 咗佢個 Variable 落 Environment Objects... 不過想力 推其他朋友用 VueJs 可以多個例子去講,相信係繼 GitLab 後又一枝大強心針!

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),明顯正在建

Join GLT Community