Apply markdownlint to project (#163)
parent
345514a304
commit
5f1425d7ed
@ -0,0 +1,5 @@
|
||||
---
|
||||
MD004: false
|
||||
MD010:
|
||||
code_blocks: false
|
||||
MD013: false
|
@ -1,6 +1,6 @@
|
||||
# Anti-patterns
|
||||
|
||||
An [anti-pattern](https://en.wikipedia.org/wiki/Anti-pattern) is a solution to a "recurring problem that is usually ineffective and risks being highly counterproductive".
|
||||
An [anti-pattern](https://en.wikipedia.org/wiki/Anti-pattern) is a solution to a "recurring problem that is usually ineffective and risks being highly counterproductive".
|
||||
Just as valuable as knowing how to solve a problem, is knowing how _not_ to solve it.
|
||||
Anti-patterns give us great counter-examples to consider relative to design patterns.
|
||||
Anti-patterns are not confined to code. For example, a process can be an anti-pattern, too.
|
||||
|
@ -1,19 +1,20 @@
|
||||
# Introduction
|
||||
|
||||
## 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.
|
||||
|
||||
## 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.
|
||||
|
||||
[Anti-patterns](./anti_patterns/index.md) are methods to solve these same common problems.
|
||||
[Anti-patterns](./anti_patterns/index.md) are methods to solve these same common problems.
|
||||
|
||||
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.
|
||||
You can break them, but if you do you should have a good reason for it.
|
||||
[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…
Reference in New Issue