Podchaser Logo
Home
2: [軟體工程變啥魍] 柏拉圖式的程式思維

2: [軟體工程變啥魍] 柏拉圖式的程式思維

Released Tuesday, 12th January 2021
Good episode? Give it some love!
2: [軟體工程變啥魍] 柏拉圖式的程式思維

2: [軟體工程變啥魍] 柏拉圖式的程式思維

2: [軟體工程變啥魍] 柏拉圖式的程式思維

2: [軟體工程變啥魍] 柏拉圖式的程式思維

Tuesday, 12th January 2021
Good episode? Give it some love!
Rate Episode

{ 完整節目筆記 https://kongcode.tw/episodes/2 }

本集聊了現代軟體工程師都常具備的基本思維與柏拉圖形上學理論之間的相似性。

寫程式在做啥

解決問題,divide and conquerObject Oriented Programming柏拉圖的形上學旨在探討人類思考與認知世界的基本方式,與 OOP 核心思想相似

柏拉圖與物件導向

The Form Of The Good,至高無上的形式,形成所有認知的體系,像太陽照亮萬物,先開啟了感官才有認知,才能歸納模版 -> Type (類型);實際的物體 -> Instance (實例)一個類型宣告與創建實例的範例

class Profile {let name: Stringlet gender: Genderlet email: Stringlet age: Int?}

let me = Profile(name: "Pofat", gender: .male, email: "[email protected]", age: nil)

設計的心理學一個類型繼承的範例

// super classclass Car {let wheelNumber = 4private var engineStatus: EngineStatus = .standby

func start() {engine = .on}

func go() {if case .on = engineStatus {print("car goes")} else {print("nothing")}}}

// subclassclass SportCar: Car {func catchPeoplesEye() {print("look me")}}

OO 三要素: 封裝 (Encapsulation),繼承(Inheritance),多型(Polymorphism)抽象的能力對工程師來說很重要

更多 kóng code

聽眾信箱 [email protected]官網 https://kongcode.twTwitter https://twitter.com/pofat_kongcode主持人 波肥

Show More

Unlock more with Podchaser Pro

  • Audience Insights
  • Contact Information
  • Demographics
  • Charts
  • Sponsor History
  • and More!
Pro Features