refactoring_patterns_quick_overview

Refactoring Patterns Quick Overview

Return to Five Lines of Code, Refactoring, Legacy code, Refactoring bibliography, TypeScript bibliography, TypeScript, TypeScript DevOps, Web development bibliography, Software engineering bibliography

Refactoring Patterns Quick Overview

Quick overview of refactoring patterns

From Five Lines of Code inside front cover:

  • EXTRACT METHOD (P3.2.1) — Takes part of one method and extracts it into its own method.
  • REPLACE TYPE CODE WITH CLASSES (P4.1.3) — Transforms an enum into an interface, and the enums’ values become classes.
  • PUSH CODE INTO CLASSES (P4.1.5) — Is a natural continuation of REPLACE TYPE CODE WITH CLASSES (P4.1.3), as it moves functionality into classes.
  • INLINE METHOD (P4.1.7) — Removes methods that no longer add readability to our program.
  • SPECIALIZE METHOD (P4.2.2) — Removes unnecessary and problematic generality from methods.
  • TRY DELETE THEN COMPILE (P4.5.1) — Removes unused methods from interfaces and classes when we know their entire scope.
  • UNIFY SIMILAR CLASSES (P5.1.1) — Unifies two or more classes that differ from each other in a set of constant methods.
  • COMBINE ifS (P5.2.1) — Reduces duplication by joining consecutive ifs that have identical bodies.
  • INTRODUCE STRATEGY PATTERN (P5.4.2) — Replaces variance through if by instead instantiating classes.
  • EXTRACT INTERFACE FROM IMPLEMENTATION (P5.4.4) — Replaces dependencies on a class with an interface.
  • ELIMINATE GETTER OR SETTER (P6.1.3) — Eliminates getters and setters by moving the functionality closer to the data.
  • ENCAPSULATE DATA (P6.2.3) — Localizes invariants related to variables and makes cohesion clearer.
  • ENFORCE SEQUENCE (P6.4.1) — Makes the compiler guarantee things happen in a specific order.

“ (5LoC 2021)

Fair Use Sources

Refactoring: Refactoring - Improving the Design of Existing Code.

Refactoring, Code Smell, Testing, Continuous Integration, Design Pattern, DRY Principle, KISS Principle, YAGNI Principle, Legacy Code, Technical Debt, Code Duplication, Automated Testing, Unit Testing, Integration Testing, Test-Driven Development, Agile Methodology, Software Architecture, Clean Code, Object-Oriented Programming, Functional Programming, SOLID Principles, Coupling, Cohesion, Modularity, Encapsulation, Inheritance, Polymorphism, Abstraction, Composition, Interface, Method Overloading, Singleton Pattern, Factory Pattern, Builder Pattern, Prototype Pattern, Adapter Pattern, Decorator Pattern, Observer Pattern, Strategy Pattern, Template Method Pattern, Command Pattern, State Pattern, Proxy Pattern, Version Control, Git, Subversion, Mercurial, Continuous Deployment, DevOps, Performance Optimization, Scalability, Reliability, Maintainability, Usability, Accessibility, Security, Data Structures, Algorithms, Big O Notation, Recursion, Concurrency, Parallelism, Synchronization, Deadlock, Race Conditions, Memory Management, Garbage Collection, Heap, Stack, Database Design, SQL, NoSQL, ORM (Object-Relational Mapping), API Design, REST, GraphQL, Microservices, Monolithic Architecture, Cloud Computing, AWS, Azure, Google Cloud Platform, Docker, Kubernetes, CI/CD Pipelines, Logging, Monitoring, Debugging, Profiling, Code Review, Pair Programming, Refactoring Tools, IDE (Integrated Development Environment), Syntax Highlighting, Code Completion, Static Code Analysis, Dynamic Analysis, Code Metrics, Software Documentation, README Files, Commenting Code, Software Licensing, Open Source Software, Closed Source Software

Refactoring guidelines, Refactoring patterns, Refactoring data structures - Refactoring algorithms, Refactoring syntax, Refactoring OOP, Refactoring in IDEs, Refactoring tools, Refactoring DevOps - Refactoring SRE, Refactoring data science - Refactoring DataOps, Refactoring machine learning, Refactoring deep learning, Refactoring functional, Refactoring concurrency, Refactoring programming languages (C refactoring, C++ refactoring, C# refactoring, Golang refactoring, Java refactoring, JavaScript refactoring, Kotlin refactoring, Python refactoring, Ruby refactoring, Rust refactoring, Scala refactoring, SQL refactoring, Swift refactoring, TypeScript refactoring), Refactoring history, Refactoring bibliography, Refactoring glossary, Refactoring topics, Refactoring courses, Refactoring libraries, Refactoring packages, Refactoring frameworks, Refactoring research, Refactoring GitHub, Refactoring Awesome list. (navbar_refactoring)


© 1994 - 2024 Cloud Monk Losang Jinpa or Fair Use. Disclaimers

SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.


refactoring_patterns_quick_overview.txt · Last modified: 2024/04/28 03:37 (external edit)