Recent posts

DevOps - 整合測試 Integration Test

4 minute read     Posted on:

Introduction to Integration Test 光是擁有 unit test,其實是不夠的 因為 unit test 測試的範圍只有 function 本身 跨 function 之間的整合,是沒有涵蓋到的

神奇的演算法 - Binary Indexed Tree

2 minute read     Posted on:

Binary Indexed Tree 又名 Fenwick Tree, 是一種特殊資料結構,適用於需要大範圍的紀錄更新資料 像是下圖,假設我想要知道,達到 20% 採購率有哪些國家,達到 50% 的又有哪些 一般的作法是我可能開一個 map 去紀錄對吧 看起來會像以下這樣

Prisma + Webpack + Docker 踩坑筆記

4 minute read     Posted on:

Preface 前陣子為了其他系列的部落格文章的 lab,在練習一個簡單的 REST-ful API 的專案 途中遇到不少的困難,想說寫起來紀錄一下

設計模式 101 - Decorator Pattern

2 minute read     Posted on:

Benchmark Time Elapsed 讓我們先從簡單的一個例子看起 ```python import grpc import time from proto import echo_pb2 from proto import echo_pb2_grpc