random

多開 Goroutine 的效能瓶頸以及 Garbage Collection 對其的影響

category: random     9 minute read     Posted on:

Preface Goroutine 作為 Golang 的一大特色 其輕量且快速的特性,使得其的開銷相比 process 以及 thread 要來的低上許多 因此人們往往會將 Goroutine 用在非同步的操作上,比如說 I/O 或者是 CPU-bound 的操作 用以達到併發的效果

玩轉 Syslog 第一次就上手

category: random     6 minute read     Posted on:

Introduction to Syslog 任何運行中的系統都會有 Log,主要是為了方便除錯、監控以及分析等等的 可以說沒有 Log 的系統是沒有辦法運作的

Webpack 如何解決 Node.js 動態載入 Cannot find module 的問題

category: random     1 minute read     Posted on:

JavaScript Dynamic Import 我公司最近遇到了一個需求是,我們需要有辦法 import 任一 JS 檔案 將其當作動態模組載入主程式當中運行

實際上手體驗 Golang DI Framework 之 Uber Dig

category: random     4 minute read     Posted on:

Uber/dig uber/dig 是一套基於 reflection 的 Dependency Injection Framework 意思是我們不需要手動指定依賴,而是透過 reflection 來幫我們自動找出依賴,依靠框架管理

如何寫出好的程式碼架構

category: random     2 minute read     Posted on:

Preface 這個議題我覺的是軟體工程師的必經之路啦 本篇文章基本上就是紀錄我目前學到的一些東西以及方法

理解 Node.js 中非同步處理與 Event Loop 的關係

category: random     6 minute read     Posted on:

Preface 1 2 3 4 5 6 7 8 9 10 (() => { setTimeout(() => { console.log(1) }) Promise.resolve().then(() => { console.log(2) }) consol...

淺談 Polling, Long Polling 以及其他即時通訊方法論

category: random     2 minute read     Posted on:

Polling polling 輪詢是最為簡單的一種作法 其核心概念為定時的發出 request 確認

浮點數 - 如何解決精度問題以及其原理

category: random     4 minute read     Posted on:

Preface ref: Damn you floating point binary addition, you’ve caused me tons of bugs over the years

如何正確模組化你的 OpenAPI 文件,以及如何建立 Mock Server

category: random     5 minute read     Posted on:

Preface

Prisma + Webpack + Docker 踩坑筆記

category: random     5 minute read     Posted on:

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

設定你的 Remote VS Code Server

category: random     4 minute read     Posted on:

Preface 對於一個無時無刻都想寫 code 的工程師來說 如果能用手機,平板等等的設備開發,豈不美哉

Goroutine 與 Channel 的共舞

category: random     13 minute read     Posted on:

Preface 在了解 Channel 之前,我們需要先了解一些基本的概念 如果你已經很熟悉這些概念,可以直接跳到 Introduction to Golang Channel 部分

Goroutine 與 Golang Runtime Scheduler

category: random     16 minute read     Posted on:

Process, Thread and Coroutine Process Process 是跑起來的 Program, 它擁有自己的 memory space, system resources 以及 system state 在系統開機之初,init process(pid 1) 被建立之後,就可以透過 fo...

單系統? 何不多系統

category: random     5 minute read     Posted on:

Multi System 多系統對於一般非資訊專業人士而言,基本上是一個不需要了解的知識 但是身為一個資訊專業人士,在某些情況下你可能會需要多開系統,比如說

GPG 與 YubiKey 的相遇之旅

category: random     21 minute read     Posted on:

Introduction to YubiKey ref: https://www.yubico.com

關於 Python 你該知道的那些事 - GIL(Global Interpreter Lock)

category: random     10 minute read     Posted on:

Preface 我一開始用 Python 開發多執行緒的程式的時候 學長姐都告誡我說不要使用 threading 而是要使用 multiprocessing 這個 library 因為後者才是 真正的 threading

自架部落格 - 使用 GitHub Pages 以及 Jekyll Chirpy 為例

category: random     1 minute read     Posted on:

What is GitHub Pages GitHub 提供了一個免費的服務 - Github Pages,可以讓開發者建立屬於自己的專屬部落格網站 沒錯 是完全免費!