Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring Architecture to avoid "God-Class" and adhere to Single-Responsibility-Principle #68

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MalteRichert
Copy link
Owner

@MalteRichert MalteRichert commented Jun 7, 2024

Inspired by my recent lecture of Clean Code by Robert C. Martin.

The idea is to mainly split Generator.ts into several small classes.
My first thought is to achieve that through the Visitor pattern.
While I'm refactoring, I will also try to reduce the responsibilities of index.ts, making it a barebones entry-point with barely any business logic.

@MalteRichert MalteRichert self-assigned this Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant