littlecodeguy's profile picture. 曲中作樂,打曲為生,Full-Stack Web Developer / #Web3 / #ReactJS / #NodeJS / #Typescript

LittleCodeGuy

@littlecodeguy

曲中作樂,打曲為生,Full-Stack Web Developer / #Web3 / #ReactJS / #NodeJS / #Typescript

Pinned

有些人努力過,但最後方棄,亦有些人承擔了後果。多年過去,放鮮花的人繼續放不下,也有人從不當成一回事。 #hongkong #littlecodeguy

littlecodeguy's tweet image. 有些人努力過,但最後方棄,亦有些人承擔了後果。多年過去,放鮮花的人繼續放不下,也有人從不當成一回事。
#hongkong #littlecodeguy

Rinkeby 等 testnets deprecating, 要轉場去 Görli #web3 #Ethereum


Typescript小貼士:Type Guard Array Manipulation 經常用到 `filter()` 但 typescript 唔會幫你 infer 個 output type,所以好多時都要用 `as` 去 override 個 type, 但最好嘅方法係用 type guard function 去比 hint typescript。 littlecodeguy.com/post/2022-08-0… #TypeScript #hongkong #littecodeguy

littlecodeguy's tweet image. Typescript小貼士:Type Guard

Array Manipulation 經常用到 `filter()` 但 typescript 唔會幫你 infer 個 output type,所以好多時都要用 `as` 去 override 個 type, 但最好嘅方法係用 type guard function 去比 hint typescript。

littlecodeguy.com/post/2022-08-0…

#TypeScript #hongkong #littecodeguy

#NestJs 9.0 嘅 REPL 好期待

What would you say to a @nestframework REPL? 🔥 navigate through modules ✨ directly call service/repository' methods ⚡️ debug providers all that without leaving your terminal!



喺津巴布韋做嘢,一定要識用 BigInt,銀紙面值可以去到 10 之後有 303 個零。BigInt 係一個新 Javascript type 去解決呢個問題,冇精準度上限,但用唔返 Math functions,只有一般 + * - % ** 同 bitwise operators 可以用。 littlecodeguy.com/post/2022-07-2… #javascript #bigint #hongkong #littlecodeguy

littlecodeguy's tweet image. 喺津巴布韋做嘢,一定要識用 BigInt,銀紙面值可以去到 10 之後有 303 個零。BigInt 係一個新 Javascript type 去解決呢個問題,冇精準度上限,但用唔返 Math functions,只有一般 + * - % ** 同 bitwise operators 可以用。
littlecodeguy.com/post/2022-07-2…
#javascript #bigint #hongkong #littlecodeguy

除咗要捉因為用咗 production 場做 QA 亂 send notifications 果個 TVB 員工,應該捉埋設計賣 Mirror 飛系統果個城市電腦售票網員工,寫DDoS攻擊自己個系統。#網絡罪行立法


前幾日同一個移居到台灣嘅朋友講起 #ERC721#ERC1155 嘅分別時,佢話我哋傾嘅內容太敏感,先想起就到 721,當時用緊 Google Meet....


#Nx vs #Turborepo,最近嘅 projects 都轉用 Nx 作起手,當選用嘅 frameworks 比如 #Nextjs / #Nestjs / #Angular / #React 都有相應 Nrwl packages 時感覺係爽嘅,但冇嘅時候就會好想反回 Yarn workspace 算,所以成日想了解下 #Turborepo 世界嘅人係點生活。 medium.com/dcardlab/nx-vs…

medium.com

Nx vs Turborepo,怎麼在大型 Monorepo 優化開發體驗?

隨著前端的程式碼規模在 Dcard 越來越大,其中一個遇到的狀況就是,CI 的執行速度、local 的開發體驗都開始受到影響。


搵做 datacenter 嘅朋友食飯,佢話自從 #加密貨幣 熊市,班大陸佬唔交租走曬佬,掉低曬啲礦機喺度,而家唔知點處理...


LittleCodeGuy reposted

Craiyon.com I Luv U LOL

edkun197's tweet image. Craiyon.com I Luv U LOL
edkun197's tweet image. Craiyon.com I Luv U LOL
edkun197's tweet image. Craiyon.com I Luv U LOL
edkun197's tweet image. Craiyon.com I Luv U LOL

因為人才流失所以青年人畢業後機會多咗?講呢句嘢嘅人有冇到個腦,走咗果啲係最少十年經驗嘅 Senior 喎 ?! 請多幾個都係冇經驗架啦...


同事 WFH 住元朗,Google Meet 成日斷線,最後跳埋出去 Slack 話佢住朗屏所以唔穩定,再問點解,佢話因為 Long Ping...


用消費劵嚟得到回流數據,呢招高。


Typescript小貼士:Declare globals 唔好咩都 `as any` 啦,用得 Typescript 就係為咗 type safe 同更 declarative,如果要加一個 object 比 window 我哋可以用 declare global 去 extends Window interface,咁咪唔使咩都 any 囉。 littlecodeguy.com/post/2022-07-1… #typescript #hongkong #littlecodeguy

littlecodeguy's tweet image. Typescript小貼士:Declare globals

唔好咩都 `as any` 啦,用得 Typescript 就係為咗 type safe 同更 declarative,如果要加一個 object 比 window 我哋可以用 declare global 去 extends Window interface,咁咪唔使咩都 any 囉。

littlecodeguy.com/post/2022-07-1…

#typescript #hongkong #littlecodeguy

本來想放個 site 喺 IPFS 更加 #去中心化 但貪方便用 fleek.co 做 deployment 點知佢哋 down 咗...


而家做網頁時好多時都需要做 light/dark mode,除咗轉 text 顏色 仲要轉埋 icon 顏色,唔想下下改 <img /> src,可以用 CSS value: `currentColor` 去改變 SVG fill property。 littlecodeguy.com/post/2022-07-1… #svg #css #健康碼 #hongkong

littlecodeguy's tweet image. 而家做網頁時好多時都需要做 light/dark mode,除咗轉 text 顏色 仲要轉埋 icon 顏色,唔想下下改 &amp;lt;img /&amp;gt; src,可以用 CSS value: `currentColor` 去改變 SVG fill property。

littlecodeguy.com/post/2022-07-1…

#svg #css #健康碼 #hongkong

大家知唔知原來 HTML 有 progress bar element <progress />,仲可以配合新嘅 css accent-color property 去做 customization littlecodeguy.com/post/2022-07-1… #css #html #littlecodeguy #hongkong

littlecodeguy's tweet image. 大家知唔知原來 HTML 有 progress bar element &amp;lt;progress /&amp;gt;,仲可以配合新嘅 css accent-color property 去做 customization

littlecodeguy.com/post/2022-07-1…

#css #html #littlecodeguy #hongkong

Loading...

Something went wrong.


Something went wrong.