February 03, 2006

OK; I confess

Follow-up to The value of being explicit…. from Colin's blog

OK, OK: the original code actually used a Map instead of a Set.

For some reason I never used Set's; I would always use a Map and then Map.contains().

It is only in the last few years I started using a Set.

There, go and laugh now :)

I don't know; you just can get the senior staff nowadays :)

Come one; share the fun; what cringeworthy things do you do?


- 5 comments by 3 or more people Not publicly viewable

  1. Mathew Mannion

    I made a Map with where each key pointed to two things the other day. That was stupid.

    03 Feb 2006, 14:27

  2. Matthew Jones

    Yeah, that was stupid.

    03 Feb 2006, 14:45

  3. Not sure why; but I think this is actually more common that people would admit; we are not alone :)

    03 Feb 2006, 14:52

  4. It may not be relevant to programming, but I'd class writing "Set's" as cringeworthy, unless you're referring to a thing owned by the Egyptian god, or someone else of the same name.

    03 Feb 2006, 16:28

  5. Colin; you are right. It isn't relevant to programming.

    03 Feb 2006, 17:39


Add a comment

You are not allowed to comment on this entry as it has restricted commenting permissions.

February 2006

Mo Tu We Th Fr Sa Su
Jan |  Today  | Mar
      1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28               

Search this blog

Tags

Galleries

Most recent comments

  • Interesting… While I'm not completely convinced in such microbenchmarks, I'm pretty sure that 1ms … by Alexander Snaps on this entry
  • Hello. I bought the book yesterday. I was trying to find the source code for chapter 11 and chapter … by Suleman on this entry
  • http://woosight.net/account/login?username=demo by live mashup demo on this entry
  • Thanks mate ….. This blog was really helpful. by Maaz Hurzuk on this entry
  • Ty. Not directly helpful for my problem, but pointed me in the right direction. You will also get th… by Mike E. on this entry

Blog archive

Loading…
Not signed in
Sign in

Powered by BlogBuilder
© MMXXI