Originally post here => https://jimytc.com/posts/2021/03/27/qnote_on_using_type_predicates/
在集合或陣列類型的資料處理中,偶爾會遇到需要使用 Array.map 把所需要的資料從物件中轉化成另一個陣列物件。 例如
Array.map
class Foo { bar?: number
經歷過 Java, Ruby, JavaScript(咦?),最近因為職涯的轉換開始上手 TypeScript。 簡單說 TypeScript 就是 JavaScript 的超集,最大的好處是加強了型別系統。 上手的過程使用了 91 (Joey Chen) 極速開發帶領的 Tennis Kata 練習。
Framework is pretty opinionated in its area, but that also means it handles many repetitive and tedious tasks. When using ORM like ActiveRecord, it saved us so much time defining which model has what attributes. The convention from…
[閱讀筆記] 單元測試的藝術 — 核心技術篇 (Ch3 — Ch6)
回顧
工作單元的可見最終結果有三。
[閱讀筆記] 單元測試的藝術 — 入門篇 (Ch1 & Ch2)
定義們
被測試系統 SUT(System Under Test)
Let the story begin
I started to work on a new production code repository, and I could tell my productivity degraded for almost 7 workdays. But…
同步刊載於https://jimytc.com
這篇想稍微紀錄一下自己改採 GitHub Action 部署的過程,會想使用 GitHub 這個新功能,一部分是想知道有什麼東西之後可以利用的,另外一個讓自己更懶惰一點。哈哈。
Originally post HERE
In my current software development work, we’ve talked about TDD within the team but we haven’t really apply this process for couple reasons. But we do care about the products we shipped. So we all committed to the principle which is…
Just a quick glance at Rust-lang, haven’t really done things with it. But I’m interested in its memory management system, so called “ownership”, and no “null” design.
Rust, borned in 2006, was firstly a personal project but then sponsored by Mozilla since 2009…