Design/Refactor Mantra

Make it work, make it right, make it fast.

Design/Refactor Mantra
Photo by Ana Paula Grimaldi / Unsplash

Here is a strategy I learned somewhere when it comes to Rust:

  1. Make it work.
  2. Make it right.
  3. Make it fast.

The idea is that the first draft might not be as idiomatic and use as many good practices as the second draft, but it's not worth getting too hung up on figuring out the right way to code something if it never gets coded. And hopefully by using idiomatic constructs it's at a good point to start making it fast by making the program multi-threaded or asynchronous.