Skip to content

JosephOuta/clean_coding

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clean coding example

This project aims to provide examples of how to improve python code through refactoring according to clean code principles.

Example 1

This is an example of a piece of code that loads two datasets, performs factor analysis on one of the datasets, and then prints a report showing the relationships between the factor analysis components and the second dataset.

See example1.py for an example of code in need of a refactor.

See example1_annotated.py for a version of example1.py that has been annotated with comments regarding problems in the code.

See example1_pseudocode.py for an example of a pseudocode plan for the code.

See example1_refactored.py for a refactored version of example1.py.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%