Our second 201 project was to create a pizza shop. Not just any pizza shop, but Pizza 3001 – A cheese odyssey from the future. I’m not making that up.
At the start of the week, this was an introduction to javascript object literals – lots of them. Copy and paste, change a value, copy and paste, change a value, rinse, repeat. But in just a few days, we went from object literals to constructors and working on the prototype – and from static, predefined data to user-provided dynamic data. Hundreds of lines of manually defined javascript became, well, a lot fewer lines and a whole lot more functionality. It’s almost like they wanted us to learn exactly how valuable constructors are. Answer: Very. Continue reading Pizza 3001: Our Last, Best Hope →