Skip to content

fix typo in ch003 #202

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

Merged
merged 1 commit into from
Jun 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion course/ch-003.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ While abstractions often assist us in avoiding boilerplate they sometimes tend t

### Composition in a broader sense

When people encounter a problem that is to complex to be solved at once they recursively decompose that problem into smaller sub-problems until the complexity reaches a workable level. As soon as all sub-problems are separately solved the reverse process must be carried out, i.e. all sub-problems must be recomposed to solve the original overall problem. You can probably already see that composition is not only the essence of functional programming but of how humans solve complex problems in general.
When people encounter a problem that is too complex to be solved at once they recursively decompose that problem into smaller sub-problems until the complexity reaches a workable level. As soon as all sub-problems are separately solved the reverse process must be carried out, i.e. all sub-problems must be recomposed to solve the original overall problem. You can probably already see that composition is not only the essence of functional programming but of how humans solve complex problems in general.

This chapter was mainly about composition of pure functions. In subsequent chapters you will learn how you can compose functions that share a global configuration, write to a common log or share state. You will see how we can compose function that have a notion of failure, are asynchronous or represent the rest of the computation. Composition is not only about functions, it is about how to compose functions in various contexts.

Expand Down