-
![](https://i.nostr.build/5GGdw.gif)
@ Jay
2025-02-15 03:04:15
You'll get it via experience.
My favorite way to learn is to write a test that does something the way I think it should work, and then banging my head against the code to make it so.
So if I wanted to wrap my head around implementations, I'd define a struct and then just use it as if it had methods. Like a struct Numbers with two numbers, X and Y. Write a test that goes like
Initialize numbers with 2 and 3. Expect numbers.sum() to be 5.
Then write the implementation of sum() until it works.