freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

微軟程序開發(fā)制勝策略微軟程序員13條制勝法則(編輯修改稿)

2025-02-12 14:15 本頁面
 

【文章內(nèi)容簡(jiǎn)介】 續(xù))public class Book {// Represents the behaviour Book is designed to deliverpublic void BookyBehavior() {(Just being a Book...)。}// Book, responsible for itself, knows how to store itselfpublic void storeSelf(BookShelf wc) {(this)。}}2023/5/16 22微軟高級(jí)開發(fā)管理峰會(huì)法則 3: 降低代碼間耦合(續(xù))public class BookClient{public static void main(String[] args) {// Make the ShelfBookShelf myBookShelf = new BookShelf()。// Loop 10 timesfor(int i=0。 i10。 i++) {// Make a new Book, and have it store itself in the Shelfnew Book().storeSelf(myBookShelf)。}}}2023/5/16 23微軟高級(jí)開發(fā)管理峰會(huì)法則 3: 降低代碼間耦合(續(xù))? 耦合關(guān)系表Class Couple to Type Book BookShelf Identity, Representational BookShelf Book Identity BookClient Book Identity, Representational BookClient BookShelf Identity2023/5/16 24微軟高級(jí)開發(fā)管理峰會(huì)法則 3: 降低代碼間耦合(續(xù))public class BookShelf {// We39。ll use an ArrayList to store our BooksArrayList myBookList = new ArrayList()。// Method to add a Book to the internal ArrayListpublic void addBook(Book aBook) {(aBook)。 }// Method to return an iterator of all the Books heldpublic IEnumerator getBooks() {return ()。}}2023/5/16 25微軟高級(jí)開發(fā)管理峰會(huì)法則 3: 降低代碼間耦合(續(xù))public class Book {public void BookyBehavior() {(Just being a Book...)。}}public class BookClient{public static void main(String[] args) {BookShelf myBookShelf = new BookShelf()。for(int i=0。 i10。 i++) {(new Book())。}}}2023/5/16 26微軟高級(jí)開發(fā)管理峰會(huì)法則 3: 降低代碼間耦合(續(xù))? 耦合關(guān)系表Class Couple to TypeBook BookShelf NoneBookShelf Book Identity BookClient Book Identity BookClient BookShelf Identity, Representational 2023/5/16 27微軟高級(jí)開發(fā)管理峰會(huì)法則 4: 減少冗余代碼? 千年蟲問題– 簡(jiǎn)單問題不簡(jiǎn)單? 如何減少冗余– 避免 Hard Coding? 使用 Config文件? 使用常量、枚舉類型– 使用抽象類– 重構(gòu)– 重用代碼2023/5/16 28微軟高級(jí)開發(fā)管理峰會(huì)小結(jié):編寫優(yōu)質(zhì)代碼? 統(tǒng)一代碼風(fēng)格? 避免冗長(zhǎng)代碼? 降低代碼間耦合? 減少冗余代碼2023/5/16 29微軟高級(jí)開發(fā)管理峰會(huì)測(cè)試代碼,安家立命之本? Debug vs. Trace? 活用斷言( Assert)? 異常處理? 編寫 Unit Test2023/5/16 30微軟高級(jí)開發(fā)管理峰會(huì)法則 5: Debug vs. Trace? Debug vs. Release? Debug vs. Trace– Debug類和 Trace類– 建議使用 ? 在 .NET中使用 –Demo? 在 .NET中使用 –Demo2023/5/16 31微軟高級(jí)開發(fā)管理峰會(huì)法則 6:活用斷言( Assert)? 不要有任何假設(shè)–Defensive Programming? 大多數(shù)錯(cuò)誤出在代碼之間的調(diào)用上? 使用斷言– 調(diào)用參數(shù)的檢驗(yàn)– 返回值的檢驗(yàn)– 數(shù)據(jù)有效性檢驗(yàn)– 算法有效性檢驗(yàn)2023/5/16 32微軟高級(jí)開發(fā)管理峰會(huì)調(diào)用參數(shù)的驗(yàn)證public bool FindCustomer (
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1