-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add a functional programming example #182
Conversation
The real question for this PR is whether the code is any easier to read and understand, and is it better structured - if not then I don't mind if this PR is rejected. |
I would prefer this to be made an executable class like the other examples, rather than a unit test. |
I can move it to |
I take your point. Could you define the program in an example class and then execute it in a |
This example is an attempt at writing code in a style that results in a more readable program flow. The
test
method clearly shows the steps in the use case, even if there looks to be a lot of code. The hope is that the fine-grained functions can be made reusable in other contexts so that composing new use cases from existing functions may become easier.