#hashCode

2025-12-20

Wer in Java eigene Klassen schreibt, kommt früher oder später an den Punkt, an dem `equals()`, `hashCode()` und `toString()` relevant werden. Diese drei Methoden stammen alle aus der Klasse `Object`, also der obersten Basisklasse in Java. Deshalb hat jede Klasse sie automatisch - aber oft reicht d

magicmarcy.de/equals-hashcode-

#equals #hashCode #toString #Basisklasse #Grundlagen #Object #vergleichen #Collections #Hash-basiert

2024-01-22

🤦‍♂️ Why String.GetHashCode in .NET Drives You Crazy 🤪

➡ I needed to keep track of transactions between tool runs. I saved a hashcode of a transaction in DB.

➡ Tool would generate a new hash-code and compare it to the one already saved in DB.

➡ At same run, it is fine. But, after re-running, generated hashcode -of the same transaction- is not same as one in DB.

➡ Read this article to know how to overcome this.

📖 developmentsimplyput.com/post/

📭 developmentsimplyput.com/subsc

#dotnet #softwaredesign #softwarearchitecture #bestpractice #string #hashcode

🤦‍♂️ Why String.GetHashCode in .NET Drives You Crazy 🤪

https://developmentsimplyput.com/post/when-string-gethashcode-in-net-c-drives-you-crazy
2024-01-22

🤦‍♂️ Why String.GetHashCode in .NET Drives You Crazy 🤪

➡ I needed to keep track of transactions between tool runs. I saved a hashcode of a transaction in DB.

➡ Tool would generate a new hash-code and compare it to the one already saved in DB.

➡ At same run, it is fine. But, after re-running, generated hashcode -of the same transaction- is not same as one in DB.

➡ Read this article to know how to overcome this.

📖 developmentsimplyput.com/post/

📭 developmentsimplyput.com/subsc

#dotnet #string #hashcode

🤦‍♂️ Why String.GetHashCode in .NET Drives You Crazy 🤪

https://developmentsimplyput.com/post/when-string-gethashcode-in-net-c-drives-you-crazy

Fik den danske #2 plads i googles #hashcode konkurence her til aften sammen med @carl og oliver!

⇄ Σ = Mᄃ² ⇆ecksmc
2018-01-16

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst