Trying out the typestate pattern by tracking the state of a 3D printer by changing our type instead of updating a variable whenever it changes. To se… ...more
Some good patterns to follow in your code e.g. "newtype", "typestate" and one to avoid. To see the exercises code as it was when I recorded the video… ...more
Some good patterns to follow in your code e.g. "newtype", "typestate" and one to avoid. Series: Language basics, More syntax, Traits and generics, Bu… ...more
Trying to explain why the rules for object safety are the way they are, and how to create and use a trait objects. Series: Language basics, More synt… ...more
Explaining how to hold on to something even when we don't know its exact type, just what trait it implements. Series: Language basics, More syntax, T… ...more