Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

twMVC #28 心法 #21

Open
mvpdw06 opened this issue May 13, 2017 · 0 comments
Open

twMVC #28 心法 #21

mvpdw06 opened this issue May 13, 2017 · 0 comments

Comments

@mvpdw06
Copy link
Owner

mvpdw06 commented May 13, 2017

twMVC #28

demo

  • 多個相似的 View Model 抽離共通部分 cshtml,利用 MVC 預設型別 dynamic 來解決!

Dino

  • Azure 可選擇建置於東南亞
  • CDN 掛掉的備份處理
  • 預熱服務
<img src="invalid_link"
     onerror="this.onerror=null;this.src='https://placeimg.com/200/300/animals';"
>

91

  • Selenium 不只能幫你寫測試,不寫測試也能幫你簡化工作流程
  • Fluent test framework,讓你用口語化的方式寫 E2E 測試
  • E2E 測試驅動 unit-test
  • 沒有不能寫的測試,只有你不會

Bruce

  • PostMan 教學
  • 可以儲存使用的 API 並分類
  • 可以把分類的 API 寫環境變數 ( 例如:環境 domain 差異 )
  • 免費版可以利用 script 分享環境變數,付費版可以直接分享
  • 可以寫 API 的測試!甚至跑分類測試!
  • 在安裝版與網頁版相比,多了 console 可以看打 API 的 header 跟 data!

Bill

  • 設計模式為的是要解決問題
  • 不要為了用設計模式而用設計模式
  • 變動的點在哪,問題就在哪

額外心法

Code review

  • review 的人一定要知道需求,否則你只能 review 程式怎麼寫,而不知道寫的對不對
  • pair programming 的情況下就不需要 code review 了

團隊限制

  • 所有 class 依賴要依賴於 interface
  • 不能在 code 裡面 new ( 使用工廠幫你做 )
  • 一個 method 的循環複雜度不能超過 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant