Commit Graph

229 Commits

Author SHA1 Message Date
simonsan
c9c5f70024
Adding 'clone to satisfy the borrow checker' anti-pattern (#110) 2021-03-29 23:51:47 +02:00
bemyak
a22d81d751
Add builder method to struct in builder pattern (#251) 2021-03-29 14:14:20 +02:00
Jaxel Rojas
fb57f21ec1
Fix syntax error on code snippet (#246)
* Fix syntax error on code snippet

* Added comma to struct definition on code snippet

* cargo fmt, remove ignore flag

Co-authored-by: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com>
2021-03-10 13:40:13 +01:00
Darius Wiles
881f51fef1
Fix format by moving advantage to new bullet (#245) 2021-03-08 16:06:44 +01:00
simonsan
077e247109
Updating mdbook version (#243) 2021-03-02 22:11:50 +01:00
Gianluca Recchia
249a154e81
Improve wording and fix typo (#242) 2021-02-28 23:46:55 +01:00
simonsan
606bcffa44
Structural changes to patterns subfolder (#219) 2021-02-25 20:56:37 +01:00
Ivan Tham
e3ed513346
Improve strategy pattern example (#241)
Reduce unnecessary String creation
2021-02-25 19:43:04 +01:00
Michael Bryan
96fa89b923
Revise the FFI chapters (#190)
Co-authored-by: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com>
2021-02-24 22:49:30 +01:00
shorii
dd265b1ec1
Fix typo ('indrection' to 'indirection') (#218) 2021-02-21 07:29:54 +01:00
follower
4d78ffd3c3
Typo: Fix missing space between words. (#217) 2021-02-10 12:06:10 +01:00
Bayram
a524dc27ea
Adding Interpreter design pattern (#211) 2021-02-05 10:22:50 +01:00
simonsan
1d173dab4e
Add link to a list of all clippy lints (#216) 2021-02-02 20:56:01 +01:00
Jakub Beránek
84bf81a47f
Add delegation crates to See Also in Deref anti-pattern (#215) 2021-01-26 20:21:52 +01:00
Matthias Beyer
e6d1576769
Remove lints that have been removed (#213)
Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
2021-01-25 20:06:40 +01:00
simonsan
2cd70a552d
Shorten lines to line-length 80 (#208) 2021-01-22 00:00:02 +01:00
simonsan
40d26477a7
Updating mdbook to v0.4.6 (#209) 2021-01-21 15:00:00 +01:00
Marco Ieni
4a7094963a
intro: improve formatting (#206) 2021-01-20 16:18:41 +01:00
Marco Ieni
c41be87c45
Create separated page in functional programming (#184) 2021-01-20 16:16:12 +01:00
Dale Vaillancourt
bfbc505af2
Fix spelling of Barbara Liskov's name (#205)
Liscov -> Liskov
2021-01-17 19:22:07 +01:00
Marco Ieni
ceefb9a2ab
Intro: minor change (#204) 2021-01-17 09:48:02 +01:00
Cassandra McCarthy
9c33b27658
Use more inclusive language in some parts (#203) 2021-01-15 22:44:03 +01:00
Marco Ieni
b49851f2b6
CONTRIBUTING: Add style guide (#201) 2021-01-14 22:48:24 +01:00
vent
f78e3e3166
Talk about mem::take instead of mem::replace (#200)
* Talk about std::take instead of std::replace

* Mention mem::replace in mem::take idiom

* Fix example code so it can compile and execute

* Clarify the need for Default in disadvantages

* Update idioms/mem-take.md

* Add note tag to section on mem::replace

Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>

* Follow on from previous paragraph in mem::take

* Change title to include mem::take

Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
2021-01-13 23:08:00 +01:00
Bayram
497e56e9f7
Adding Strategy pattern (#146) 2021-01-12 01:04:25 +01:00
Ped
264cddf06e
Fix typo ("desctructors" to "destructors") (#195) 2021-01-09 18:49:11 +01:00
Ped
22e8405b26
Fix typo ("anways" to "anyways") (#193) 2021-01-09 14:42:15 +01:00
simonsan
f61f2f40f0
Fix lines to 150 line length for better tracking of future changes (#189) 2021-01-08 08:59:46 +01:00
Marco Ieni
868cd2f3f4
intro.md: split lines (#188) 2021-01-07 09:21:41 +01:00
Marco Ieni
6cbbcb8246
Remove contributing from html rendered book (#187) 2021-01-07 09:04:33 +01:00
Marco Ieni
ff8bc764de
Create additional_resources directory (#186) 2021-01-07 08:52:35 +01:00
Marco Ieni
ad52fcb8ea
Add and explain markdown linting rules (#183) 2021-01-06 17:46:54 +01:00
Andreas Schmidt
a0e765179d
Add note on #[non_exhaustive] for enums (#168)
Co-authored-by: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com>
2021-01-06 15:18:34 +01:00
Marco Ieni
3ee9110615
CI: Rename markdownlint job (#180) 2021-01-06 15:08:04 +01:00
Marco Ieni
48a530218c
markdownlint: fix md004 (#175)
* markdownlint: fix md004

* use `-` for lists

Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
2021-01-06 15:04:40 +01:00
simonsan
7af948ea49
Adding design principles overview to additional resources (#179) 2021-01-06 15:03:09 +01:00
Marco Ieni
76ae5bd896
Reduce long lines (#176) 2021-01-06 14:58:26 +01:00
Marco Ieni
5fedf5aa29
Markdownlint: Do not allow tabs in code blocks (#178) 2021-01-06 14:55:55 +01:00
simonsan
d6f98eaa6e
Updating Contrib (#181)
* Updating Contrib

* add to contributing

* Update CONTRIBUTING.md

Co-authored-by: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com>

Co-authored-by: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com>
2021-01-06 13:55:05 +01:00
Marco Ieni
8ce84d4d64
Add description for offline usage of markdown lints (#173) 2021-01-06 13:15:28 +01:00
Marco Ieni
e93c52049c
CI: Simplify lint job (#174) 2021-01-06 12:03:49 +01:00
simonsan
66f79d5ddd
Fix typo (#169)
* Fix typo

* Update CONTRIBUTING.md

Co-authored-by: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com>

Co-authored-by: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com>
2021-01-06 11:05:50 +01:00
simonsan
dfd74a86d1
Adding some additional resources (#159) 2021-01-05 17:30:53 +01:00
simonsan
a9848987ce
Adding informative links to Builder pattern (#158) 2021-01-05 17:23:53 +01:00
simonsan
1f688d7ae2
Writing an introduction for the contribution guide (#161)
Co-authored-by: Takashi Idobe <idobetakashi@gmail.com>
2021-01-05 17:18:52 +01:00
simonsan
6a58543782
Add participation to Introduction (#160) 2021-01-05 17:13:41 +01:00
jhwgh1968
11a4b712c0
Several FFI Sections: Strings, Errors, and API Design (#106) 2021-01-05 16:44:31 +01:00
Weipin Xia
501ae92a43
Fix missing argument in rustdoc-init.md (#166) 2021-01-05 16:02:16 +01:00
Takashi Idobe
60946dd8c7
Add markdownlint to CI (#164) 2021-01-05 15:57:07 +01:00
Takashi Idobe
5f1425d7ed
Apply markdownlint to project (#163) 2021-01-05 15:36:20 +01:00