intro.md: split lines (#188)

pull/193/head
Marco Ieni 3 years ago committed by GitHub
parent 6cbbcb8246
commit 868cd2f3f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,11 +7,16 @@ If you are interested in contributing to the Patterns catalogue, check out the
## Design patterns
When developing programs, we have to solve many problems. A program can be viewed as a solution to a problem. It can also be viewed as a collection of solutions to many different problems. All of these solutions work together to solve a bigger problem.
When developing programs, we have to solve many problems.
A program can be viewed as a solution to a problem.
It can also be viewed as a collection of solutions to many different problems.
All of these solutions work together to solve a bigger problem.
## Design patterns in Rust
There are many problems that share the same form. Due to the fact that Rust is not object-oriented design patterns vary with respect to other object-oriented programming languages. While the details are different, since they have the same form they can be solved using the same fundamental methods.
There are many problems that share the same form.
Due to the fact that Rust is not object-oriented design patterns vary with respect to other object-oriented programming languages.
While the details are different, since they have the same form they can be solved using the same fundamental methods.
[Design patterns](./patterns/index.md) are methods to solve common problems when writing software.
@ -19,7 +24,8 @@ There are many problems that share the same form. Due to the fact that Rust is n
However, while design patterns give us benefits, anti-patterns create more problems.
[Idioms](./idioms/index.md) are guidelines to follow when coding. They are social norms of the community.
[Idioms](./idioms/index.md) are guidelines to follow when coding.
They are social norms of the community.
You can break them, but if you do you should have a good reason for it.
TODO: Mention why Rust is a bit special - functional elements, type system, borrow checker

Loading…
Cancel
Save