Frequency map in go
A frequency map is just a fancy word for a hash map that tracks the number of occurrences of an element in a collection. If we have a slice in…
A frequency map is just a fancy word for a hash map that tracks the number of occurrences of an element in a collection. If we have a slice in…
In programming languages like go, there is no built-in type for set. A set essentially answers yes or no: is a given element present? We can use the built-in map…
KompacPlus is marketed as a counter top material, and sometimes wall material. The sellers often claim it's comparable to quartz and sintered stone. KompacPlus is made in Italy, but only…
I usually don't SSH into the server that runs this blog. When I do, it's because the free SSL certificate by Let's Encrypt! has expired. Every time this happens, I…
I'm quite familiar with the concept of interface in Java; but on my first day reading my colleague's Go code, I was a little confused. Here's how: In Java, implementing…
When it comes to storing date/time in MySQL, several data types are commonly used. My colleagues and I had a brief discussion today on which type we should use for…