This repository contains examples and exercises inspired by the book Refactoring by Martin Fowler. The goal is to study and apply refactoring techniques to improve code structure, readability, and maintainability using JavaScript.
Disclaimer: The code in this repository is based on examples from the book and is intended for educational purposes only. All original rights belong to the author, Martin Fowler.
This project is a personal initiative to deepen my understanding of refactoring techniques and best practices in JavaScript. Each folder corresponds to a chapter or concept from the book, with practical examples and solutions.
To get started, ensure you have the following installed on your system:
- Node.js (version 16 or higher recommended)
- npm (comes with Node.js) or yarn (optional)
- Clone the repository:
git clone https://github.com/yourusername/refactoring-javascript.git
cd refactoring-javascript
- **Install dependencies: If dependencies are required for examples, install them:
npm install
# or
yarn install
- **Run examples: Navigate to the folder of the desired chapter or example and execute:
node example.js
Replace example.js with the actual file name you wish to run.
Contributions are welcome! If you'd like to suggest improvements or share your refactoring exercises, please:
- **Fork the repository.
- **Create a feature branch:
git checkout -b feature/my-improvement
- **Commit your changes:
git commit -m "Describe your change"
- **Push to the branch:
git push origin feature/my-improvement
- **Open a pull request.