Skip to content

Coder Cowboy

Software for life on the go.

  • Blog
  • Code
  • Contact
  • Resume
  • Portfolio

About

Jason Baker is a software engineer. He works on enterprise infrastructure for big companies. He also enjoys creating smaller scale software products and scripts in his spare time.

Read More...

Categories

  • Arcade
  • Bash
  • Coder Cowboy
  • Cool Stuff
  • IOS Product Development
  • Java
  • Letters To My Father
  • Life and Philosophy
  • Link Dump
  • Lists
  • Music
  • Music Roulette
  • rTimer
  • School of Code
  • Tech Support Myths
  • Tips
  • Uncategorized
  • Unix
  • Video Games
  • Vintage Computing
  • What I Just Learned

Month: October 2018

Java HashMap.hashCode() Not Unique With String Keys And Values

Java’s HashMap (AbstractMap really) hashCode() implementation sums the hash codes of its entries rather than multiplies them by a prime number like String.hashCode() does. This can cause weird collisions in very similar maps.

Continue reading Java HashMap.hashCode() Not Unique With String Keys And Values

Posted on October 17, 2018March 14, 2019Categories Java
Proudly powered by WordPress