home.social

#hashcode — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #hashcode, aggregated by home.social.

fetched live
  1. 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

  2. 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

  3. 🤦‍♂️ 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

  4. 🤦‍♂️ 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

  5. 🤦‍♂️ 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