3 ms·
I remember reading this article for the first time and being overcome by the urge to erase it from my memory. Every time it comes up I worry that I may have com
by Confusion 16y ago
I remember reading this article for the first time and being overcome by the urge to erase it from my memory. Every time it comes up I worry that I may have committed this error in applications still in production. I know for sure that I've wondered on multiple occasions about whether you could use a regular HashMap as an imperfect cache and I'm not sure I've always (especially when I first started writing code) erred on the safe side of caution and opted for the ConcurrentHashMap.