Commit Graph

204 Commits (193b600382ead22a24d2c26ca3a9117e7ad18be8)

Author SHA1 Message Date
Eric Jolibois 8a4dca5fa6
remove small typo in hint of threads3 2 years ago
Mattia Schiavon e1d6abb4c9
Apply suggestions from code review
Co-authored-by: liv <mokou@fastmail.com>
2 years ago
Tostapunk 02d78c3e84 fix: Improve hint of lifetimes2
fixes #1071
2 years ago
Denton24646 ce86d252e5 feat: add rc1.rs exercise 2 years ago
Sam White 63b0c7e399 feat: add traits5.rs exercise 2 years ago
Sam White 599d634ee2 feat: Add traits4.rs exercise 2 years ago
Sam White f43c6d7877 feat: Add traits3.rs exercise 2 years ago
jayber 1ef8dacaf6 feat: add lifetimes exercises 2 years ago
exdx a3b5278b42 feat: add threads3.rs exercise 2 years ago
mokou b609f0431c feat: remove advanced_errs 2 years ago
mokou 8cfedb1673 feat(clippy): add clippy3 2 years ago
mokou 7fc393bed4 chore: remove quiz4 2 years ago
mokou d3a335bc64 feat(macros): add hint comments 2 years ago
jaystile b4f52cb937 feat: Adding threads1.rs with a focus on JoinHandles and waiting for
spawned threads to finish. Moved the original threads1.rs to threads2.rs
with the focus on the Mutex and modifying shared data. #892
2 years ago
mokou 20024d40c5 feat(iterators): update hint comments 2 years ago
mokou cf9629cb0e feat: move box/arc behind iterators 2 years ago
mokou 98b8d3f17d feat(traits): add hint comments 2 years ago
mokou 5979d408a9 feat: move generics3 to be quiz3 2 years ago
mokou c34e2adcbb feat(errors): Improve comments and hints 2 years ago
Noah Cairns 5e1ca4b995 fix(errors5): improve exercise instructions 2 years ago
mokou b71feed824 feat(options): add hint comments 2 years ago
mokou b644558c19 fix: rename option to options 2 years ago
mokou c64b340622 feat: rework quiz2 2 years ago
mokou f443f4e7b3 feat: move quiz2 to be strings4 2 years ago
Sateesh Basavaraju 1e54bc61e8 feat: Add hashmap3 exercise. 2 years ago
mokou c1ed6b10fe feat(strings): add strings3 2 years ago
mokou f5e4c16eed feat(strings): move before modules 2 years ago
mokou c6bc97adc1 feat(enums3): add hint comment, remove enums1 hint 2 years ago
Ryosuke YASUOKA d0e8efd19e feat(enums3): Add hint 2 years ago
mokou 4dffa0d10d fix(structs1): rename to unit-like struct 2 years ago
mokou 19bec50399 feat(structs1): convert structs to use i32 types 2 years ago
exdx 16ff57bbff fix(move_semantics2): clarify referencing 2 years ago
mokou bb0cf92b8b feat(move_semantics): clarify some hints 2 years ago
mokou 3c4c9c54c9 feat: remove collections to hashmaps 2 years ago
mokou 2f7fd51304 feat: move vec exercises into their own folder 2 years ago
mokou 8e1f617d34 feat(vec): update vec exercises 2 years ago
mokou 6020ec1fe2 feat: reorder vec and primtypes before moving 2 years ago
mokou 742fb08e01 feat(functions): more small fixes 2 years ago
Cooper Gillan b3ec8fe022 chore: Tweak punctuation in variables6.rs hint
While the meaning is still obvious as is, it makes a little more sense
to use a colon here =)
2 years ago
Cooper Gillan 9688609d08 chore: Update variables6.rs hint book link, wording
While the included link for variables6 does navigate to the correct
page, the header in the link itself does not actually exist so it
only loads the top of the page. There is, however, some text about
the difference between variables and constants in the "Constants"
section, so reword the hint some and update the link.
2 years ago
mokou 81edc4234f fix(variables): reorder and redo hint texts 2 years ago
mokou 9ed4b0683e fix(intro1): link to exercise file in hint 2 years ago
mokou 0aee54a82b chore: unify hint language use 2 years ago
Konstantin baca5d62ae
fix: update link to book 2 years ago
Jesse van Papenrecht 0bdb5207b5
typo fix in hint message if2 2 years ago
Lucas Grigolon Varela b0e079e6bf
Update info.toml 2 years ago
Ron Lusk b821ffdd33 docs(move_semantics5): Replace "in vogue" with "in scope" in hint
The hint for `move_semantics5` refers to "the range in which each
mutable reference is in vogue". Unless this is a deliberate
introduction of "vogue" (an admittedly-useful term because "scope"
isn't purely lexical, as in many other languages), it may be in error:
I have been unable to find the term used with reference to *Rust*
references.

Thus, I'm suggesting the replacement, in case it's been overlooked.
2 years ago
mokou 76a36dd385 chore: update errors1 comments and hint 2 years ago
Lucas Aries 3f0e1303e0
feat: Add move_semantics6.rs exercise (#908) 2 years ago
diannasoreil 4cde788d33
Merge pull request #733 from apogeeoak/intro
feat(intro): Proposal to add successfully compiling exercise as the first exercise.
2 years ago
Franklin van Nes f2650de369 fix(clippy1): Updated code to test correctness clippy lint with approx_constant lint rule
closes #888
3 years ago
alirezaghey 8ef4869b26
fix(functions5): Remove wrong new line and small English improvements (#885) 3 years ago
rlch 1c0fe3cbcc fix: few spelling mistakes 3 years ago
diannasoriel c2ed98deb3
Merge pull request #781 from tlyu/advanced-errs
feature: advanced errors
3 years ago
Taylor Yu abd6b70c72 feat: add advanced_errs2
New exercise to demonstrate traits that make it easier for other code
to consume our custom error types.
3 years ago
Taylor Yu 882d535ba8 feat: add advanced_errs1
New section and exercise to demonstrate the `From` trait for errors
and its usefulness with the `?` operator.
3 years ago
anuk909 dfd2fab4f3
feat(modules): update exercises, add modules3 (#822)
Co-authored-by: diannasoriel <mokou@fastmail.com>
3 years ago
ana df25684cb7 fix(move_semantics5): Clarify instructions 3 years ago
arlecchino 9bf4c5e8df
chore: clippy1 hint enhancement
Added some explanation and links about floating point representation and to use the clippy suggestion. (fixes #390)
3 years ago
arlecchino a4a1098766
Update info.toml
Co-authored-by: marisa <mokou@fastmail.com>
3 years ago
arlecchino 34ea029df8
chore: Update hint of iterators3
`collect()` needs some hint for standard_library_types/iterators3 exercise with doc link for understanding different return types via `FromIterator`.
3 years ago
Taylor Yu 2dc93cadda fix(from_str, try_from_into): custom error types
Remove the use of trait objects as errors from `from_str` and
`try_from_into`; they seem to have caused a lot of confusion in
practice. (Also, it's considered best practice to use custom error
types instead of boxed errors in library code.) Instead, use custom
error enums, and update hints accordingly. Hints also provide
some guidance about converting errors, which could be covered
more completely in a future advanced errors section.

Also move from_str to directly after the similar exercise `from_into`,
for the sake of familiarity when solving.
3 years ago
marisa a3ea37b76e
Merge pull request #771 from tlyu/iterators5-trait-tweak
fix(iterators5): derive Clone, Copy
3 years ago
Taylor Yu b7ddd09fab address review feedback
Adjust error text and naming to conform with best practices.
Use `map_err()` instead of `or()`. Wrap lower-level errors instead of
ignoring their details.

Also, don't "cheat" by bypassing the `new()` function in tests.

Fix a dangling reference in the try_from_into hints.
3 years ago
Taylor Yu 68d3ac567c feature: improve error_handling exercises
Add new exercises errors5 and errors6, to introduce boxed errors and
custom error enums more gently. Delete errorsn, because it tried to do
too much too soon.
3 years ago
Taylor Yu 50ab289da6 fix: rename result1 to errors4
Also put it in the ERROR HANDLING section where it probably belongs.
3 years ago
Taylor Yu 4e079fdd08 chore(iterators5): conciseness hint 3 years ago
Taylor Yu 1b85828548 fix: move_semantics5 hints
Improve the hints for move_semantics5, as well as the explanatory
comments in the code.

Previously, it was not clear what possible changes were allowed.
It seems that reordering the statements might be the intended solution.
The previous comment about not "adding newlines" doesn't make sense,
so treating it as "adding new lines" makes it more clear.
3 years ago
Taylor Yu 4c46e5e1a3 chore: minor typos in move_semantics5 hints 3 years ago
Sateesh 399ab328d8
feat: Add move_semantics5 exercise. (#746)
* feat: Add move_semantics5 exercise.

* feat: Add option3 exercise

* Address review comments. Fix typos, sentence formatting.

* Remove unwanted newline.

* Address review comments: make comment inline, fix format in print.
3 years ago
Taylor Yu 11d2cf0d60 fix(try_from_into, from_str): hints for dyn Error
Add hints about how to return the correct type for functions that
return `Result<_, Box<dyn Error>`. Some feedback from Discord suggests
that people run into trouble with that.
3 years ago
apogeeoak 21c9f44168 feat(intro): Add intro section. 3 years ago
Brandon Macer 81be404487
feat(arc1): Add more details to description and hint (#710)
Co-authored-by: bmacer <bmacer@cisco.com>
Co-authored-by: marisa <mokou@fastmail.com>
Co-authored-by: Roberto Vidal <vidal.roberto.j@gmail.com>
3 years ago
marisa 79cc657917
Merge pull request #646 from apogeeoak/iterator
Added iterators5.rs exercise.
3 years ago
apogeeoak 9c88ea9126 Improved iterators5.rs explanation. 3 years ago
marisa 2b766ef9f9
Merge pull request #648 from apogeeoak/iterator2
Moved iterators2.rs errors out of tests.
3 years ago
marisa bd3d9ac9d5
Merge pull request #649 from apogeeoak/iterator3
Enabled iterators3.rs to run without commented out tests.
3 years ago
Abdou Seck caf921a01f
Merge pull request #674 from Morsicus/fix/collections-exercises-naming
Update collections exercises naming
3 years ago
Taylor Yu c3e7b83178 fix: use trait objects for from_str
Use `Box<dyn error::Error>` to allow solutions to use `?` to propagate 
errors.
3 years ago
Mickael Fortunato bef39b1259 fix(collections): Naming exercises for vectors and hashmap 3 years ago
apogeeoak 96c56ab08a
chore: changed errors3 mode from test to compile 3 years ago
Cyrus Wyett 5157f56875
chore: fix typo
is however some --> are however some
3 years ago
apogeeoak c6712dfccd fix(iterators3): Enabled iterators3.rs to run without commented out tests. 3 years ago
apogeeoak baf4ba175b fix(iterators2): Moved errors out of tests.
Closes #359
3 years ago
apogeeoak b29ea17ea9 feat: Added iterators5.rs exercise. 3 years ago
John Baber-Lucero cddc1e86e7
fix(info): Fix typo (#635)
Co-authored-by: John Baber-Lucero <git@frundle.com>
3 years ago
fmoko 5772589dc3
Merge pull request #615 from wsh/docfixes
docs: mention flatten in the options2 hint
4 years ago
Will Hayworth e9b42bbc2a docs: mention flatten in the options2 hint 4 years ago
JuliaCao 90cfb6ff28 fix: added missing exercises to info.toml 4 years ago
JuliaCao 033bf1198f
feat: match exercise order to book chapters (#541)
Added exercise to book chapter mapping table to exercise README
4 years ago
Brock 9334783da3
fix(structs1): Adjust wording (#573)
Co-authored-by: fmoko <mokou@posteo.de>
4 years ago
sazid 633c00cf80 feat: Add HashMap exercises 4 years ago
sazid 0c12fa31c5 feat: Add Vec exercises 4 years ago
Rastamo e6bde22f9c
chore: primitive_types6 mode changed to test (#559)
primitive_types6 exercise was changed to test yesterday, but info.toml file wasn't updated.
I think this change should fix it.
4 years ago
fmoko 0f16463794
Merge pull request #489 from mukundbhudia/iterators1 4 years ago
Mukund Bhudia 8ff5fde88e
Update info.toml for typo fix
Co-authored-by: Andrew Marquez <andy2mgcc@gmail.com>
4 years ago
Ryan McQuen 3286c5ec19
fix(using_as): Add test so that proper type is returned. (#512) 4 years ago
Koalab99 ee7cdc66b3
chore: Removed extra whitespaces
Co-authored-by: Corentin ARNOULD <corentin.arn@gmail.com>
4 years ago
Mukund Bhudia 9642f5a3f6 feat: Added iterators1.rs exercise 4 years ago
iamcastelli ddd98ad75d
fix: Change then to than
`than` makes more grammatical sense than `then` in this context.
4 years ago