<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Gotchas on Yonatan Karp-Rudin</title><link>https://yonatankarp.github.io/tags/gotchas/</link><description>Recent content in Gotchas on Yonatan Karp-Rudin</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 02 Dec 2022 00:00:00 +0100</lastBuildDate><atom:link href="https://yonatankarp.github.io/tags/gotchas/index.xml" rel="self" type="application/rss+xml"/><item><title>How to Break Your HashMap in Less Than a Minute</title><link>https://yonatankarp.github.io/blog/break-hashmap-less-than-a-minute/</link><pubDate>Fri, 02 Dec 2022 00:00:00 +0100</pubDate><guid>https://yonatankarp.github.io/blog/break-hashmap-less-than-a-minute/</guid><description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; Never use mutable objects as keys in your HashMap!&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;After I wrote my article &lt;a href="https://yonatankarp.com/how-does-hashmap-work-in-java"&gt;&lt;strong&gt;How does HashMap work in Java?&lt;/strong&gt;&lt;/a&gt;, a few people suggested more topics related to HashMap. As a result, I decided to create a short series of articles about it.&lt;/p&gt;
&lt;p&gt;In today&amp;rsquo;s article, we will discuss JVM HashMaps and how they can be easily broken if not used carefully. It&amp;rsquo;s important to note that while we&amp;rsquo;ll be focusing on the JVM world, the same principles apply to most modern programming languages.&lt;/p&gt;</description></item></channel></rss>