1 / 18

PEMROGRAMAN LANJUT

PEMROGRAMAN LANJUT. Code Smells: Change Preventer. Oleh Politeknik Elektronika Negeri Surabaya 2018. Code Smells. Couplers. Change Preventer. Bloaters. Object OrientedAbuser. Dispensable. Code Smells. Couplers. Change Preventer. Bloaters. Object OrientedAbuser. Dispensable.

turnbow
Download Presentation

PEMROGRAMAN LANJUT

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PEMROGRAMAN LANJUT Code Smells: Change Preventer OlehPoliteknikElektronikaNegeri Surabaya 2018

  2. Code Smells Couplers Change Preventer Bloaters Object OrientedAbuser Dispensable

  3. Code Smells Couplers Change Preventer Bloaters Object OrientedAbuser Dispensable

  4. Code Smells: Change Preventer Change Preventer Divergent Change Parallel Inheritance Hierarchies Arrow Anti Pattern Shotgun Surgery

  5. Code Smells: Change Preventer Change Preventer Divergent Change Parallel Inheritance Hierarchies Arrow Anti Pattern Shotgun Surgery

  6. Divergent Change • Perubahanpadasatu method menyebabkanperubahanpada banyak method lain dalamsatu class. Contoh

  7. Refactoring Divergent Change

  8. Code Smells: Change Preventer Change Preventer Divergent Change Parallel Inheritance Hierarchies Arrow Anti Pattern Shotgun Surgery

  9. Shotgun Surgery Satuperubahanyang dilakukanpadabanyak class secarabersamaan.

  10. Contoh Shotgun Surgery

  11. Code Smells: Change Preventer Change Preventer Divergent Change Parallel Inheritance Hierarchies Arrow Anti Pattern Shotgun Surgery

  12. Parallel Inheritance Hierarchies Ketikaterjadipenambahan subclass padasuatu class, perludilakukanpenambahan subclass jugauntuk class lain.

  13. Contoh Superclass Jabatanberisifungsionaltugas yang dilakukankaryawan. Superclass Milestone berisifungsionalpelaporantugashariankaryawan.

  14. Refactoring

  15. Code Smells: Change Preventer Change Preventer Divergent Change Parallel Inheritance Hierarchies Arrow Anti Pattern Shotgun Surgery

  16. Arrow Anti Pattern (Nested Conditional) Contoh

  17. Refactoring Arrow Anti Pattern (Nested Conditional) Contoh Solusi: Flatten Conditional; Replace w/ Guard Clause;

More Related