百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

refactoring-code_smells-design_patterns

> DevOps
开源

♻️ 示例项目,展示代码异味,以便应用重构技术

595 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

♻️ 示例项目,展示代码异味,以便应用重构技术

Refactoring from Code Smells to Clean Code

Showcase of the refactorings and code smells catalog illustrated with practical examples in different programming languages.

View refactoring course · ⭐ Star this repository · ☝️ Propose an example

Concepts

Code Smells

These are what we could consider as potential bad practices. Things such as long methods, nested conditionals, feature envy, and so on

The different Code Smells are grouped based on the following taxonomy (source) where you will find each one of the single examples:

  • Bloaters: Something that has grown so large that it cannot be effectively handled
  • Object-Orientation Abusers: Solutions that does not fully exploit the possibilities of object-oriented design
  • Change Preventers: hinder changing or further developing the software
  • Dispensables: Something unnecessary that should be removed from the source code
  • Couplers: Promotes coupling (knowledge particularities) between different classes

Refactorings

‍ Work in progress

Examples

‍ Work in progress

How to explore this repository

You have the following 3 main folders:

  • Code Smells
  • Refactorings
  • Examples

The purpose of this repository is to illustrate with some _ Examples_ how we can detect _ Code Smells_ and evolve a specific code applying _ Refactorings_ technics.

That is the reason why the code will always be located in the _ Examples_ folder with a folder for each of its possible evolutions, and linked from the _ Code Smells_ and _ Refactorings_ directories using symbolic links.

Examples completeness

The examples you will find in this repository are completely operational projects that you can open up in your IDE and start refactoring executing the provided test suite.

That is, we understand that in order to have a better learning experience, you must have the whole picture of the specific code snippet you actually want to analyze. This gives you the freedom to modify it right away after cloning this project without having to worry about boilerplaty aspects.

Contributing

Feel free to open an issue explaining how you want to contribute before starting out coding and we will help you figuring out the best way to approach it

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHPclean-codecode-smellsdesign-patternsjava

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理