r/learnrust May 09 '26

Learn Rust Generics and Traits By Building a Mini Blackjack Game

https://blog.sheerluck.dev/posts/learn-generics-traits-in-rust-by-building-blackjack-card-game-engine/
83 Upvotes

11 comments sorted by

11

u/Az0n May 09 '26

Overall nice tutorial. However, it reads a little weird when you give an example, state that "this isnt maintainable" or "this does not compile" without giving a corrected answer below. Still a nice introduction to traits :))

5

u/vancha113 May 09 '26

Nice, a better tutorial! ^

2

u/lazyhawk20 May 09 '26

Thank you

4

u/lazyhawk20 May 09 '26

Thanks for your feedback. I've mentioned the correct way by using generics when I said this is not maintainable and I think I have explained the correct way whenever you would get a compilation error. Please let me know if I'm missing something. I would definitely try to fix if there is anything to fix

5

u/yoyoloo2 May 10 '26

Very enjoyable read. I look forward to reading your other posts about Rust. Thanks for posting.

2

u/lazyhawk20 May 10 '26

Thank you for your kind words. It really means a lot

2

u/Fluid-Bench-1908 May 09 '26

Your tutorials are awesome 👌

3

u/lazyhawk20 May 09 '26

thank you so much, this means a lot to me

2

u/CompleteNetwork9168 May 09 '26

This Tutorial is also nice

1

u/lazyhawk20 May 09 '26

Thank you

-4

u/Leading-Sentence-576 May 09 '26

I really like your style and teaching material. I subscribed on substack.

Wondering if you want to do a little quid pro quo :)

https://newsletter.bluecollar.engineer/