Click here to Skip to main content
15,914,642 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: This Is How Android Wins! Android Dev v Windows Dev Pin
raddevus19-Sep-16 2:27
mvaraddevus19-Sep-16 2:27 
GeneralA man has a woman accident Pin
BillWoodruff18-Sep-16 10:53
professionalBillWoodruff18-Sep-16 10:53 
JokeRe: A man has a woman accident Pin
Brisingr Aerowing18-Sep-16 11:49
professionalBrisingr Aerowing18-Sep-16 11:49 
GeneralRe: A man has a woman accident Pin
BillWoodruff18-Sep-16 12:17
professionalBillWoodruff18-Sep-16 12:17 
JokeA pregnant woman has a car accident... Pin
OriginalGriff18-Sep-16 4:59
mveOriginalGriff18-Sep-16 4:59 
PraiseRe: A pregnant woman has a car accident... Pin
Suvendu Shekhar Giri18-Sep-16 6:29
professionalSuvendu Shekhar Giri18-Sep-16 6:29 
GeneralRe: A pregnant woman has a car accident... Pin
Sander Rossel18-Sep-16 7:52
professionalSander Rossel18-Sep-16 7:52 
GeneralWhen you realize you don't know what you thought you knew... Pin
Sander Rossel18-Sep-16 2:53
professionalSander Rossel18-Sep-16 2:53 
Just trying to create a Dictionary-ish class in JavaScript.
Wanted to make it as much as the C# one as possible.
The C# one has a constructor with an IEqualityComparer.
I thought I knew how it worked (I've written a few), but apparently I didn't.
Not enough to implement it without spending about an hour or two figuring out how it works anyway.
Why DOES an IEqualityComparer have a GetHashCode AND an Equals function anyway? Hash collisions you say? FFFFFFFUUUUUUU...

Now to work around the fact that JavaScript is a messed up "language" and dictionaries can't be implemented because it doesn't have a proper hash function Laugh | :laugh:

It's good to have a hobby Smile | :)

P.S. Ever wanted to mess up your Dictionary? Write an EqualityComparer where Equals always returns false. You haven't really lived until you've tried it Poke tongue | ;-P
Read my (free) ebook Object-Oriented Programming in C# Succinctly.
Visit my blog at Sander's bits - Writing the code you need.
Or read my articles here on CodeProject.
Simplicity is prerequisite for reliability.
— Edsger W. Dijkstra
Regards,
Sander

GeneralRe: When you realize you don't know what you thought you knew... Pin
BillWoodruff18-Sep-16 5:25
professionalBillWoodruff18-Sep-16 5:25 
GeneralRe: When you realize you don't know what you thought you knew... Pin
Sander Rossel18-Sep-16 6:02
professionalSander Rossel18-Sep-16 6:02 
GeneralRe: When you realize you don't know what you thought you knew... Pin
Jörgen Andersson18-Sep-16 7:34
professionalJörgen Andersson18-Sep-16 7:34 
GeneralRe: When you realize you don't know what you thought you knew... Pin
Sander Rossel18-Sep-16 7:49
professionalSander Rossel18-Sep-16 7:49 
GeneralRe: When you realize you don't know what you thought you knew... Pin
Jörgen Andersson18-Sep-16 7:57
professionalJörgen Andersson18-Sep-16 7:57 
GeneralRe: When you realize you don't know what you thought you knew... Pin
Sander Rossel18-Sep-16 8:05
professionalSander Rossel18-Sep-16 8:05 
GeneralRe: When you realize you don't know what you thought you knew... Pin
Jörgen Andersson18-Sep-16 8:33
professionalJörgen Andersson18-Sep-16 8:33 
GeneralRe: When you realize you don't know what you thought you knew... Pin
Sander Rossel18-Sep-16 10:14
professionalSander Rossel18-Sep-16 10:14 
GeneralRe: When you realize you don't know what you thought you knew... Pin
BillWoodruff18-Sep-16 10:48
professionalBillWoodruff18-Sep-16 10:48 
GeneralRe: When you realize you don't know what you thought you knew... Pin
Sander Rossel18-Sep-16 21:08
professionalSander Rossel18-Sep-16 21:08 
GeneralRe: When you realize you don't know what you thought you knew... Pin
kdmote19-Sep-16 10:18
kdmote19-Sep-16 10:18 
GeneralRe: When you realize you don't know what you thought you knew... Pin
Sander Rossel19-Sep-16 20:32
professionalSander Rossel19-Sep-16 20:32 
AnswerRe: When you realize you don't know what you thought you knew... Pin
Plamen Dragiyski19-Sep-16 11:56
professionalPlamen Dragiyski19-Sep-16 11:56 
GeneralRe: When you realize you don't know what you thought you knew... Pin
Sander Rossel19-Sep-16 20:36
professionalSander Rossel19-Sep-16 20:36 
GeneralRe: When you realize you don't know what you thought you knew... Pin
Plamen Dragiyski20-Sep-16 20:38
professionalPlamen Dragiyski20-Sep-16 20:38 
GeneralRe: When you realize you don't know what you thought you knew... Pin
Sander Rossel20-Sep-16 20:52
professionalSander Rossel20-Sep-16 20:52 
GeneralRe: When you realize you don't know what you thought you knew... Pin
Fabio Franco20-Sep-16 2:53
professionalFabio Franco20-Sep-16 2:53 

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.