Tip: Defer State Reachability
The idea is in this tweet:
However, a tweet being short, it was a bit confusing:
So, a follow-up description was given:
Then, an amazing description came from Antonio Viggiano’s ChatGPT prompt. I couldn’t have explained this better. It did an amazing job understanding the insights I tried to fit in a tweet:
To me, this tip actually belongs to the “creativity” category as getting assumptions on reads is quite easy (and will close your mind). This here will keep you looking for bad paths without assuming that they “can’t be reached”. Also, if they can’t be reached for now, a future code change could make it happen, therefore you could still submit a suggestion in how to harden the code.
The speed boost is thanks to the better direction of effort.
This post is licensed under CC BY 4.0 by the author.