使用 Gerrit 時, 開發者之間 sharing code 除了直接讓對方 fetch 自己 local 主機的 git repos 外, 也可以善用 Gerrit 的 sandbox branch 來達到分享的目的. Read more 13 Mar 2021 - less than 1 minute read
sizeof() 回傳的資料結構是 size_t. 但 size_t 在 32-bit 和 64-bit CPU 上的長度是不一樣的: 32-bit CPU 是 unsigned int, 64-bit CPU 則是 unsigned long. 因此在選用 length modifier 印出資料結構的長度時, 就要考慮 32-bit/64-bit CPU 的 portability 的問... Read more 08 Mar 2021 - less than 1 minute read
最近收到一個 pull request 幫忙補了幾個檔案的 EOF. Github 網頁 diff 看不出來改了哪, 把 commit 拉下來後才看到多補了一個 newline character (\n). 想說之前沒加 \n 也活得好好的, 所以好奇 Google 了一下差在哪. Read more 27 Feb 2021 - less than 1 minute read