News for hackers. Stuff that matters.
Re:My favourite interview question (2006) by supsep on Tuesday December 23, 2014 @11:37AM (#8788808)
I beg to differ, Monopoly can be done using 'simplistic' object design. An array is the monopoly map, a user is an object and the bank is a singleton. Done.
Re:My favourite interview question (2006) by _halgari on Tuesday December 23, 2014 @03:28PM (#8790029)
I'm not sure why this got down-voted, but I thought the same thing while reading the article. If you store the game state as a giant hash-map (as I would in Clojure), then problems of "is-a" and "has-a" don't really exist. Especially considering that almost all squares are singletons anyway. So the game state can look as simple as:

{:unowned-properties #{:baltic} :players [{:owns #{:atlantic}}] :property-states {:atlantic {:hotels 0 :houses 2}}}

Etc....data driven design...wins every time.

Re:My favourite interview question (2006) by pearjuice on Tuesday December 23, 2014 @12:13PM (#8788980)
supsep, you are a great candidate but unfortunately you don't seem that great of a fit for our Abstract Enterprise Java culture. I am sure there are a lot of other companies who adhere to your mindset!
Re:My favourite interview question (2006) by cunac on Wednesday December 24, 2014 @12:20AM (#8791671)
true, some of us prefer real money (enterprise money) and some startup options (monopoly money). Go figure which one will feed you :-)