Skip to content

CleanCodeExamples is a GitHub project that provides practical examples of bad and good code, inspired by Clean Code principles. Improve your programming skills by learning from real-world coding scenarios and discovering the importance of clean coding practices. Join us in the pursuit of clean, maintainable code!

Notifications You must be signed in to change notification settings

doronsacha/CleanCodeExamples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CleanCodeExamples

CleanCodeExamples is a collection of practical code examples that demonstrate both bad and good coding practices, inspired by the principles of Clean Code. The main objective of this project is to help developers improve their programming skills by showcasing real-world examples of what to avoid and what to strive for when writing clean and maintainable code.

Purpose The purpose of CleanCodeExamples is to provide developers with tangible illustrations of the consequences of poor coding practices and the benefits of adhering to clean coding principles. By studying these examples, developers can gain insights into how code readability, maintainability, and collaboration can be significantly improved through clean coding practices.

Contents The repository is organized into thematic folders, each representing a specific programming concept or language. Within these folders, you will find subfolders containing code examples that demonstrate both bad code and corresponding refactored versions showcasing clean code.

Examples of bad code highlight common pitfalls, such as poorly chosen variable names, code duplication, long and complex methods, and unstructured code. These examples serve as cautionary tales, emphasizing the negative impact of neglecting clean coding principles.

Examples of good code showcase well-structured, readable, and maintainable code. These examples focus on clear and meaningful variable names, concise and focused methods, proper code organization, and adherence to best practices. By studying these examples, developers can learn effective strategies for writing clean code.

Contributions Contributions to CleanCodeExamples are highly encouraged. If you come across a code example that you believe demonstrates either bad or good coding practices, feel free to submit a pull request with your proposed changes. Please ensure that your contributions follow the existing folder structure and naming conventions.

Getting Started To get started, simply clone or download the repository and explore the folders and code examples. Each code example is accompanied by comments and explanations to provide context and highlight specific clean coding principles.

Join the Community Join the CleanCodeExamples community and become a part of the movement towards cleaner, more maintainable code. Together, let's strive for excellence in software development by embracing clean coding practices.

About

CleanCodeExamples is a GitHub project that provides practical examples of bad and good code, inspired by Clean Code principles. Improve your programming skills by learning from real-world coding scenarios and discovering the importance of clean coding practices. Join us in the pursuit of clean, maintainable code!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published