###### tags: `筆記` `課程` # 【筆記】專案開發課程 共筆 ## Coding Style ### 命名風格 - camel case - snake case - kebab case ### 類別和物件 - 用名詞取名 - 類別第一個字大寫 ### 函式 - 用動詞取名 ### 註解 - TODO註解:幫助開發者列出代辦事項,或是針對還不夠好的程式碼加上TODO,在未來的工作時程上完成此事項 - 可以用來Debug ## Git & GitHub ### Git #### 檢查電腦安裝的Git版本 ```bash! git --version ``` #### 初始化根目錄 ```bash! git init ``` #### 查看根目錄下檔案狀態 ```bash! git status ``` #### 將所有根目錄下的檔案都追蹤起來 ```bash! git add . ``` #### 提交版本(存檔) ```bash! git commit -m "description" ``` #### 查看local端的版本紀錄 ```bash! git log ``` #### 在已經有專案的情況,連結到GitHub上 ```bash! git remote add <short name> <url> git branch -M main git push -u <short name> <branch name> ``` #### 將其他專案連結到自己的電腦上 ```bash! git clone <url> ``` #### 取得最新的版本 ```bash! git pull ``` #### 現在所在分支與目標分支合併 ```bash! git merge <branch name> ``` ## 閱讀資源: 1. [Clean Code 無瑕的程式碼 | 閱讀筆記](https://medium.com/%E6%89%8B%E5%AF%AB%E7%AD%86%E8%A8%98/clean-code-index-51e209cc47db) 2. [常見變數命名規則(Naming convention)](https://dustinhsiao21.github.io/laravel/naming-convention/) 3. [iT邦幫忙-我為什麼想學設計模式](https://ithelp.ithome.com.tw/articles/10201706) 4. [Git and GitHub for Beginners - Crash Course](https://www.youtube.com/watch?v=RGOj5yH7evk&ab_channel=freeCodeCamp.org) 5. [Git常見指令表](https://ithelp.ithome.com.tw/articles/10241407) 6. [Google C++ Style Guide](https://google.github.io/styleguide/cppguide.html)\ 7. [Google Coding Style 中文版](https://tw-google-styleguide.readthedocs.io/en/latest/google-cpp-styleguide/naming.html#id2) 8. [什麼?又是/不只是 Design Patterns!? 系列](https://ithelp.ithome.com.tw/users/20120812/ironman/2697) 9. [Git & GitHub 教學手冊](https://w3c.hexschool.com/git/cfdbd310) 10. [HackMD 快速入門教學](https://hackmd.io/c/tutorials-tw/%2Fs%2Fquick-start-tw)
×
Sign in
Email
Password
Forgot password
or
Sign in via Google
Sign in via Facebook
Sign in via X(Twitter)
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
Continue with a different method
New to HackMD?
Sign up
By signing in, you agree to our
terms of service
.