Click here to Skip to main content
15,920,801 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Biometric Authentication Pin
Nagy Vilmos10-Dec-14 3:36
professionalNagy Vilmos10-Dec-14 3:36 
GeneralRe: Biometric Authentication Pin
OriginalGriff10-Dec-14 3:48
mveOriginalGriff10-Dec-14 3:48 
GeneralRe: Biometric Authentication Pin
PhilLenoir10-Dec-14 4:33
professionalPhilLenoir10-Dec-14 4:33 
GeneralRe: Biometric Authentication Pin
OriginalGriff10-Dec-14 4:36
mveOriginalGriff10-Dec-14 4:36 
GeneralRe: Biometric Authentication Pin
PhilLenoir10-Dec-14 4:56
professionalPhilLenoir10-Dec-14 4:56 
GeneralRe: Biometric Authentication Pin
Brady Kelly10-Dec-14 4:16
Brady Kelly10-Dec-14 4:16 
GeneralRe: Biometric Authentication Pin
Maximilien10-Dec-14 5:26
Maximilien10-Dec-14 5:26 
GeneralWhy do I even bother Pin
Nagy Vilmos10-Dec-14 2:39
professionalNagy Vilmos10-Dec-14 2:39 
I recently answered a query on a LinkedIn discussion. It was simple enough about how/why/when to override hashCode and equals in Java.

I gave a simple answer - if you override either you should override both and that if the equality of objects is based on the state, then you should consider overriding them even if you don't intend to use the methods.

Well roger me senseless with a walnut branch! There really are some fuped people out there. I have read that ALL classes MUST reimplement the methods, if you don't care then just use a random number for the hash code, you can override one and not the other and even that it doesn't really matter.

I must stop doing this, it hurts my brain.

WTF | :WTF: WTF | :WTF:

[adendum]
Latest answer was about you can only build meaningful hash codes from String values within the object. FFS.
GeneralRe: Why do I even bother Pin
MehGerbil10-Dec-14 2:48
MehGerbil10-Dec-14 2:48 
GeneralRe: Why do I even bother Pin
Nagy Vilmos10-Dec-14 3:05
professionalNagy Vilmos10-Dec-14 3:05 
GeneralRe: Why do I even bother Pin
MehGerbil10-Dec-14 3:26
MehGerbil10-Dec-14 3:26 
GeneralRe: Why do I even bother Pin
Nagy Vilmos10-Dec-14 3:33
professionalNagy Vilmos10-Dec-14 3:33 
GeneralRe: Why do I even bother Pin
MehGerbil10-Dec-14 5:12
MehGerbil10-Dec-14 5:12 
GeneralRe: Why do I even bother Pin
Dan Neely10-Dec-14 3:07
Dan Neely10-Dec-14 3:07 
GeneralRe: Why do I even bother Pin
PIEBALDconsult10-Dec-14 3:15
mvePIEBALDconsult10-Dec-14 3:15 
GeneralRe: Why do I even bother Pin
Nagy Vilmos10-Dec-14 3:34
professionalNagy Vilmos10-Dec-14 3:34 
GeneralRe: Why do I even bother Pin
Marc Clifton10-Dec-14 4:12
mvaMarc Clifton10-Dec-14 4:12 
GeneralRe: Why do I even bother Pin
PIEBALDconsult10-Dec-14 4:32
mvePIEBALDconsult10-Dec-14 4:32 
GeneralRe: Why do I even bother Pin
Marc Clifton10-Dec-14 4:14
mvaMarc Clifton10-Dec-14 4:14 
GeneralRe: Why do I even bother Pin
Brady Kelly10-Dec-14 4:18
Brady Kelly10-Dec-14 4:18 
GeneralRe: Why do I even bother Pin
Nagy Vilmos10-Dec-14 4:20
professionalNagy Vilmos10-Dec-14 4:20 
GeneralRe: Why do I even bother Pin
Brady Kelly10-Dec-14 4:22
Brady Kelly10-Dec-14 4:22 
GeneralRe: Why do I even bother Pin
PIEBALDconsult10-Dec-14 4:35
mvePIEBALDconsult10-Dec-14 4:35 
GeneralPaedophilles, Drunks and the French. Pin
P0mpeyBoy10-Dec-14 1:25
P0mpeyBoy10-Dec-14 1:25 
JokeRe: Paedophilles, Drunks and the French. Pin
Richard Deeming10-Dec-14 1:44
mveRichard Deeming10-Dec-14 1:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.