That’s pretty funny. Did they really not mention anything about using an atom when they sent you the assignment?
Maybe if you had used datomic as your database it would’ve been fine (/s)
Maybe if you had used datomic as your database it would’ve been fine (/s)
They said it was OK and asked me to turn it into a REST web service as the second part of the assignment. Now I had to keep score between calls but sharing data using a global structure goes against every fiber of my developer muscles so I picked a database. I'm no clojure expert but I guess in the real world most REST APIs are using databases under the hood instead of atoms.