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

Code refactor #87

Merged
merged 1 commit into from Jun 13, 2018
Merged

Code refactor #87

merged 1 commit into from Jun 13, 2018

Conversation

ajayns
Copy link
Contributor

@ajayns ajayns commented Jun 13, 2018

I've been going through the code to figure out the best way to add on the recursive algorithm and not break things, so I realized our code needed some cleaning up and modularization first. Once every step is a function of its own it's easier to manage and add on new features.

@ajayns ajayns requested review from datakurre and cekk June 13, 2018 10:27
Copy link
Collaborator

@datakurre datakurre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what the tests exist for: allow refactoring without breaking things :)

@datakurre datakurre merged commit bff6aa0 into collective:master Jun 13, 2018
@ajayns ajayns deleted the code-refactor branch June 13, 2018 13:53
@ajayns
Copy link
Contributor Author

ajayns commented Jun 13, 2018

I wasn't much used to TDD before, but right now working on this project and with testing framework, it seems greatly helpful!

@datakurre
Copy link
Collaborator

To be honest, in proper TDD, tests should be written before code. But our few tests are already much better than nothing.

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

2 participants