---
title: "Sun Pochin (@sunpochin) | Hashnode"
description: "Developer, building thins on web. Read the latest articles by Sun Pochin on Hashnode."
url: "https://hashnode.com/@sunpochin"
---

@sunpochin

# Sun Pochin

@sunpochin · Taipei, Taiwan · Joined June 2022

Developer, building thins on web.

### [yarn.lock 不要亂砍。unit test 會失效在 /dist 跟奇怪而無法 debug 的地方](https://sunpochin.hashnode.dev/yarnlock-unit-test-dist-debug?utm_source=hashnode&utm_medium=feed)

上週上班三天得到最重要的心得： yarn.lock 不要亂砍。unit test 會失效在 /dist 跟奇怪而無法 debug 的地方。 另外，堅持在 pull request 在 github 通過所有 unit test, 似乎是件好事。

1 min read · [sunpochin.hashnode.dev](https://sunpochin.hashnode.dev/yarnlock-unit-test-dist-debug?utm_source=hashnode&utm_medium=feed)

[Sep 29, 2025](https://hashnode.com/posts/yarnlock-unit-test-dist-debug/68da40dbfd3d471999305030)

### [Vue 3 的雞毛蒜皮各種小特性](https://sunpochin.hashnode.dev/vue-3-traits?utm_source=hashnode&utm_medium=feed)

在 Nuxt 3 專案中，這是一個被稱為「自動導入 (auto-imports)」的特性 我：為何 showPost 不用引用就可以直接使用？ \[id\].vue: 1 lines selecteduseAsyncData Gemini: stat\_minus\_1Thinking 在 Nuxt 3 專案中，這是一個被稱為「自動導入 (auto-imports)」的特性。 Nuxt 會自動掃描特定目錄下的檔案，例如 composables/ 和 utils/，並將其中定義的函式、變數等在整個應用程...

1 min read · [sunpochin.hashnode.dev](https://sunpochin.hashnode.dev/vue-3-traits?utm_source=hashnode&utm_medium=feed)

[Sep 25, 2025](https://hashnode.com/posts/vue-3-traits/68d4b61e9eec1da3b4c9e328)

### [請用 10 歲小孩能懂的方式，解釋 Virtual DOM 觀念](https://sunpochin.hashnode.dev/10-virtual-dom?utm_source=hashnode&utm_medium=feed)

當然可以！以下是一個 10 歲小孩也能懂的方式來解釋 Virtual DOM（虛擬 DOM） 是什麼： 🎨 想像你在畫畫一棵樹 你有一張畫紙（這是網頁上的畫面），你正在畫一棵樹 🌳。 有一天你想把樹的葉子從綠色換成黃色，因為是秋天了 🍂。 做法一： 你把整棵樹擦掉，重新畫一棵新的黃色葉子樹。🧽✏️ 這樣很花時間，而且很累對吧？ 做法二（更聰明的做法）： 你先在一張透明的描圖紙上畫一樣的樹，看看哪裡需要改，發現「只要把葉子塗黃就好！」然後你只改葉子的顏色，其他部分都不動，畫起來又快又省力...

2 min read · [sunpochin.hashnode.dev](https://sunpochin.hashnode.dev/10-virtual-dom?utm_source=hashnode&utm_medium=feed)

[Sep 22, 2025](https://hashnode.com/posts/10-virtual-dom/68d1856fe97c6228a09b6a30)

### [ChatGPT 用 10 歲孩童能聽懂的方法，解釋 webpage cookies 的原理跟用途](https://sunpochin.hashnode.dev/chatgpt-10-webpage-cookies?utm_source=hashnode&utm_medium=feed)

cookies webpage front-end explained to a 10 years old child

1 min read · [sunpochin.hashnode.dev](https://sunpochin.hashnode.dev/chatgpt-10-webpage-cookies?utm_source=hashnode&utm_medium=feed)

[Sep 17, 2025](https://hashnode.com/posts/chatgpt-10-webpage-cookies/68caf4c5a37e645949eb0128)

### [Claude refactored codes to fit SOLID and explained like I'm 10 years old](https://sunpochin.hashnode.dev/claude-refactor-solid?utm_source=hashnode&utm_medium=feed)

English version (中文版在下面，Claude 幫我 refactor 成 SOLID 原則並且用十歲孩童方式講解給我聽) The reason this started was because I felt that TrelloBoard.vue was way too long — about 200 lines. (Yes… right now even 200 lines feels too long for me. It’s funny because back the...

9 min read · [sunpochin.hashnode.dev](https://sunpochin.hashnode.dev/claude-refactor-solid?utm_source=hashnode&utm_medium=feed)

[Aug 17, 2025](https://hashnode.com/posts/claude-refactor-solid/68a1fda65bfd71b4d0b2f15c)
