Re:Zcoin implementation bug enabled attacker to create over ...
by aij on Tuesday March 07, 2017 @11:54AM
(#13811996)
Writing stateful code by default in hopes that it will be faster is a premature optimization IMNSHO.
A lot of times it isn't actually any faster, and it's certainly more error prone.
Re:Zcoin implementation bug enabled attacker to create over ...
by spacemanmatt on Tuesday March 07, 2017 @07:07AM
(#13809757)
Picking up Clojure and learning to be extremely judicious about the use of persistent state reduced my bug output rate dramatically.
Programming without state is something that has helped me personally make my code much better. I produce less bugs by far since I stopped relying on state for so many things. A lot of micro-optimisations are not doable for me. In exchange I guess I get to run things in parallell very easily. But mostly, I get fewer bugs, which makes my life and the lives of my customers better.