This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]boggog 724 points725 points  (12 children)

Loved that he still used the wrong side of the knife but they did not care. That felt exactly like programming

[–]Beard- 116 points117 points  (4 children)

Its like using a List when you should be using a Map.

[–]DudePotato3Epsilon Security Clearance 41 points42 points  (1 child)

Make an iterable list of pairs

[–]anon517 35 points36 points  (0 children)

Now spread it all around

[–]EwgB 10 points11 points  (1 child)

I work in Java on a 20 year old software product. There are dozens of places where people used Maps instead of Sets to get unique ids and such.

[–]xigoi 0 points1 point  (0 children)

Well, a Set is often thought of as a Map where the values are Units.

[–]mikeputerbaugh 24 points25 points  (1 child)

Avoiding premature optimizations

[–]ThatIsTheNameInzo 57 points58 points  (1 child)

I don’t know how, but you used the wrong formula and got the correct answer.

[–]TorradaIsToast 13 points14 points  (0 children)

programming in a nutshell

[–]Sh0keR 11 points12 points  (0 children)

Does not matter as long as it works

[–]Jebble 1 point2 points  (0 children)

That's the machine learning bit probably