Tag: 軟體設計


物件導向武功秘笈(3):內功篇 — 物件導向指導原則SOLID

Posted on April 14, 2018 in CS. View: 8,877

物件導向怎麼用才能成就好的程式碼? / UML類別圖 / 單一職責原則(Single Responsibility Principle, SRP) / 開閉原則(Open-Closed Principle, OCP) / 里氏替換原則(Liskov Subsititution Principle, LSP) / 迪米特法則(Law of Demeter, LoD) / 依賴倒置原則(Dependence Inversion Principle, DIP) / 接口分隔原則(Interface Segregation Principle, ISP)


Continue reading

物件導向武功秘笈(2):招式篇 — Python與Java的物件導向編程介紹

Posted on April 10, 2018 in CS. View: 13,549

物件導向編程 / 類別(Class)與物件(Object) / 方法多載(Method Overloading) / 物件導向三大特性—封裝(Encapsulation) / 物件導向三大特性—繼承(Inheritance) / 抽象化:抽象類別(Abstract Class)、抽象方法(Abstract Method)和接口(Interface) / 物件導向三大特性—多型(Polymorphism) /


Continue reading

物件導向武功秘笈(1):認知篇 — 什麼是好的程式?

Posted on April 05, 2018 in CS. View: 5,698

物件導向為何重要? / 程式的好壞? / 低耦合、高內聚 / 程式碼精練之旅 / 形塑出物件導向


Continue reading