#jQueryRocks
Explore tagged Tumblr posts
Text
$(’.week[6]’).day(3)
jQuery and the Rise and Fall of Modern Civilization
...would be a great book or article title. But I don't actually have anything to say that's even mildly related to the title. sry.
jQuery is fun. It takes some of the tedium out of writing JS. Underscore.js on the other hand, only added more and new headaches to the mix. Everytime we tried to use it, we couldn't get it to do waht we wanted. This was likely 90% user error, but it was quite frustrating that everything we wanted to do that led us to underscore.js was just the tiniest bit different from what we actually wanted to do and therefore didn't work. For instance, we tried to use _.defaults() to assign default values to a large number of Arrays in the creation of a board grid for Snake, however the _.defaults() function only works with JS Objects, and even though an Array is just an object with it's keys set to sequential numbers, we couldn't get _.defaults() to work in our project :/
By the end of the day, we had a jQuery implementation of Tic Tac Toe (so that's three TTTs now, for those of you keeping track at home: one ruby console version, one JS node console version, and now (finally) one JS version playable in the browser. We also had a Towers of Hanoi (again, our third), and we had about half to two-thirds of a Snake game. We had a board, a snake, the ability to move the snake, but no apples to munch on and no growth feature. Nor did the game end at any of the appropriate places. It was recommended that we finish our snake implementations ASAP so as to have them to show off to potential employers during the not-too-distant job search portion of our lives, so I hope to get to that and Asteroids this weekend.
So much to do, so little time.
And now to sleep. If the child across the way will stop crying. Poor little wee baby Seamus.
0 notes