bdd with type script

21
BDD with TypeScript 流流流流

Upload: -

Post on 15-Jan-2015

359 views

Category:

Technology


5 download

DESCRIPTION

Bdd with type script

TRANSCRIPT

Page 1: Bdd with type script

BDD with TypeScript流浪小風

Page 2: Bdd with type script

What is TypeScript?一種撰寫易閱讀可維護的 JavaScript的方式,透過編譯產生程式碼

由 Anders Hejlsberg(C#, TurboPascal 之父 )主導開發

完全相容 JavaScript

Page 3: Bdd with type script

Advantage of TypeScript強型別

Page 4: Bdd with type script

Advantage of TypeScript容易寫出物件導向的 JavaScript

Page 5: Bdd with type script

Advantage of TypeScriptVisual Studio支援編譯及智能輸入

Page 6: Bdd with type script

Advantage of TypeScript支援 Source Map

Page 7: Bdd with type script

Debug TypeScript By Sourcemap

Page 8: Bdd with type script

Debug TypeScript By Sourcemap

Page 9: Bdd with type script

CodingStyle to make code betterUse module

Page 10: Bdd with type script

CodingStyle to make code betterDon’t use global variable

Page 11: Bdd with type script

Simple Todo App進入畫面時顯示所有代辦事項輸入內容並點擊”新增“按鈕,新增代辦事項

點選代辦事項旁的”刪除”按鈕,刪除代辦事項

Page 12: Bdd with type script

分工

代辦事項

視覺設計

前端開發

後端 API

如何讓開發可以同時進行 !?

Page 13: Bdd with type script

視覺設計與前端工程使用 Knockout.js降低 Html和

JavaScript關聯性視覺設計師負責開發 Html版面樣式前端工程師撰寫測試案例及 Js邏輯開發完成後進行套版

Page 14: Bdd with type script

網頁 Layout

Page 15: Bdd with type script

將需求轉化為 Testcase

Page 16: Bdd with type script

Demo

Page 17: Bdd with type script

前後端 Co-Work定義介面,定義使用參數前端工程師使用Mock Or Fake測試

Page 18: Bdd with type script

Demo

Page 19: Bdd with type script

改變…寫出低耦合的程式碼可測試性、可重用容易套用設計模式Ioc Pattern,動態抽換 Class

Page 21: Bdd with type script

Q & A