'Mocha - the fun, simple, flexible JavaScript test framework'

Mocha 是 Node.js 上的單元測試框架。該單元測試框架能讓我們撰寫測試案例、運行單元測試、及產生測試報告等。 ...

May 9, 2019 · 1 min · 490 words · Larry Nung

Chai - A BDD / TDD assertion library for node

Chai 是 Node.js 的 BDD / TDD 斷言套件。 使用前先從 Registry 下載套件。 ...

May 7, 2019 · 2 min · 572 words · Larry Nung

Node.Js - Getting started

Node.Js 安裝完後,開個 Js 檔來撰寫簡單的 Hello World 程式。 ...

May 6, 2019 · 1 min · 161 words · Larry Nung

Two-phase commit protocol

Two-phase commit protocol 簡稱 2PC,也就是所謂的二階段提交。可用來解決分散式服務架構下各服務之間交易資料一致性問題。 ...

May 2, 2019 · 2 min · 651 words · Larry Nung

DotLiquid - Drops

使用 DotLiquid 做範本渲染時,如果需要使用到非基礎型別當作參數,我們可以為其建立對應的 Drop 型別。 ...

May 2, 2019 · 1 min · 329 words · Larry Nung

DotLiquid - LiquidTypeAttribute

使用 DotLiquid 做範本渲染時,如果需要使用到自訂型別當作參數,自訂型別可加掛 LiquidTypeAttribute 指定範本會使用到的屬性。 ...

April 30, 2019 · 1 min · 337 words · Larry Nung

DotLiquid - Getting started

要在 DotNet 中使用 Liquid 範本,可先加入 DotLiquid 套件參考。 ...

April 27, 2019 · 1 min · 345 words · Larry Nung

Saga pattern

Saga pattern 是用來解決分散式服務架構下各服務之間的交易資料一致性問題。 ...

April 24, 2019 · 2 min · 870 words · Larry Nung

gRPC - Create service with ASP.NET Core

在 .NET Core 3.0 後,我們可透過 gRPC Service 範本建立方案或是專案,如果是用方案範本,除了 gRPC 的 Server 專案外,還會有 Client 的專案。 ...

April 19, 2019 · 1 min · 299 words · Larry Nung

tree - Install with HomeBrew

在 Mac 下可以透過 HomeBrew 安裝 tree 命令。 brew install tree ...

April 19, 2019 · 1 min · 65 words · Larry Nung