rustlings icon indicating copy to clipboard operation
rustlings copied to clipboard

The smart_pointers section is too big

Open kenden opened this issue 2 years ago • 2 comments

When following the exercises, it is nice to check the suggested reading. For the smart_pointers exercises, it includes a lot of reading:

  • Smart Pointers -> the full chapter about Smart Pointers in The Book. It is a big chapter.
  • Using Box to Point to Data on the Heap -> Repetition. This is included in the Smart Pointers chapter
  • Rc<T>, the Reference Counted Smart Pointer -> Repetition. This is included in the Smart Pointers chapter
  • Shared-State Concurrency -> This is included in the chapter Fearless Concurrency in The Book.
    To understand it, it is better to read the full chapter, and it is a Big chapter.
  • Cow Documentation -> Advanced topic about Copy-On-Write (actually, Clone-On-Write in Rust), a performance optimization technique, which requires to check other sources (example) to understand well. (This is not actually covered in The Book).

The exercises and reading to do before the Smart Pointers section are quite fast to get through. However, reading the references for 2 full chapters in The Book + researching about the Cow type is more time consuming. So, less engaging.

I would suggest to move the arc1 exercise under the threads topics to not have to read about concurrency yet.

Rustlings v5.6.1

kenden avatar Oct 03 '23 14:10 kenden

I would suggest to move the arc1 exercise under the threads topics to not have to read about concurrency yet.

I had the same thought and support this. I also think cow1 isn’t conceptually relevant until during/after threads so it could be moved too.

asasine avatar Jan 23 '24 12:01 asasine

We could make arc1 threads4 in the next major version because it is a breaking change.

mo8it avatar Jul 07 '24 14:07 mo8it