# 物件導向軟體工程 歷屆考古 # 期中考 # 110 # Q1 Q: 違反 SOLID 哪個原則 A: 違反 OCP 重點在 Graphic Editor 裡面我可以看出我們會根據 shape 型別用 if else 去判斷那當我們今天有新型別 Triangle 會需要須改 Main code GraphicEditor # Q2 Q: 看結果 A: 首先我們看到 Coffee 是該題 Decorator 與真正 Coffee Expresso (濃縮咖啡) 的共同介面,這題實在是太明顯了一看就知道是 Decorator Pattern, 那我們看 Main Code 他有...

# 軟體架構模型 Architectural Pattern 當我們剛開始學習 軟體設計的時候 都會根據書本或是相關教學文章進行軟體架構設計,但事實上軟體設計不是死的,就像以往的 Design Pattern 需要根據系統需求來進行調整。 # MVC Pattern 剛入門軟體設計最耳熟能祥的軟體架構模型,MVC Pattern 在非常早期就出現了,當初由 Trygve Reenskaug 在 1978 年提出,將不同專業的人員能夠適當的分組 MVC(Model,View,Controller) Model (模型) 代表某種同類型同領域的實作或模擬 在同一個 Model...

# 專案一秒起飛 Cloud Run # 功能 Cloud Run Doc 圖片來源 Google Cloud Platform 官網 也就是說你可以去讓你的 網站,後端,應用程式 去自動部屬 # 使用 GCP 前 建議裝個 Goolge Cloud SDK 當然不裝的話也可以 在 Web 上點選也可以 Link # Okay 開搞 Step 1. 建立 GCP 專案 朋朋們在此初體驗搞個免費方案就好啦,別亂刷卡喔 前面帳戶設置就不提供範例,想必大家都是順ㄅ 辦理完之後進到 GCP Console 且點選 GCP 的專案下拉式選單 點選建立專案 Complete...

# 物件導向軟體工程 - 設計模型 # 參考資料 文章內容多數皆來自 ianjustin39 的文章 與一些個人整理與補充 原文連結 # SOLID Priciple OOAD 設計原則 SRP (Single Responsibility Principle) 單一責任原則 A class as the method they do simalar thing (Highly relative) Help for Aggregation If seperate the will increase the number of class/interface OCP (Open...

# 系統分析與設計 # Chapter 1 DFD(Data Flow Diagram) raise on Process Oriented ERD(Entity Relation Diagram) raise on data Centered Context Diagram Structured Model (結構模型) Not Suitable on Complex Project (不適合在大型複雜的專案) Cannot go back to last phased (不能回到上一個步驟) suit on simple project (適合小型專案) Should complete...

# 部屬 Django 到 Heroku # Create Heroku Application Register Your Heroku # in your dashbroad create new app and give your app app name(can not use Big alphabet) region # Install Heroku CLI # Install PostgreSQL Why we should install PostgreSQL why we cannot use sqlite3 1heroku ps:scale web=1 #...