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

get rid of redundant class #2

Closed
wants to merge 1 commit into from
Closed

Conversation

Motherboard
Copy link

If you find yourself creating a class just to call a function, you probably just needed a function... Also, Enums are better than dictionaries for holding an immutable table as in this demo, and dataclasses make the init declaration for you.

@joelbarranteswins
Copy link

I though the same, he needs to clear why it's working like that.

@egges
Copy link
Collaborator

egges commented Jan 26, 2023

Though these points are valid, I'm leaving the code mostly as is so that it matches the video.

@egges egges closed this Jan 26, 2023
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.

None yet

3 participants