show
show copied to clipboard
Refactoring Workshop
What?
Do a workshop about refactoring Rust code.
Why?
A thing that every developer does on a regular basis, is refactoring. In Rust, this is particularly pleasant - entertaining even - as the compiler supports us with many hints. To some extent, it's what makes Rust so magical to me.
How?
Start off with a working, but pretty rudimentary codebase. Ideally a small crate, whose functionality can be grasped quickly. Gradually improve it, by first showing the limitations of the old system, and then building a more idiomatic, robust version. After that, run clippy to get even more tips for improvement.
Feel free to use my code : it's fairly small and simple.
Hey, that sounds like a really good candidate! I will try to integrate that into one of the next shows. Thanks for your suggestion. 😃
Thanks to you for your amazing work
https://github.com/nickgerace/gfold