Backbone.js is a front-end MVC
framework. Today we worked on the canonical backbone example:
atodo list. Backbone is a
pain reliever; I would have likely missed this fact had we not tried
to implement it ourselves first.We followed up the todo tutorial with an unguided Blog application….
Today is officially my post for Friday but as it is currently Sunday night, I would do you, my dear reader, a great disservice if I did not mention the wonderful learnings of the weekend as well.
Friday was all about working with AJAX. Our instructor, who one might believe has a sadistic streak,…
Today was the first day of AJAX. We worked solo on a one-page Dream
Journal app. I started by implementing a dreams API with Rails. The
API was pretty much just a normal rails app, just with controllers that
render responses in JSON, instead of HTML via an ERB template. AJAX
seems pretty…
Friday night at AppAcademy!
Today we finished up our snake game by creating the snake on an HTML canvas and setting key listeners using jQuery to change the direction of the snake. It was helpful to completely separate the game model from the UI so we could really see how the graphical components are just representations of…
As promised, today was the second half of our exploration into the heart of Rails. Building on our foundation of a baby ActiveRecord, we worked up a mimic of Rails’ routing mechanism. Now, normally, Rails is built on Rack, which interfaces with whichever server we choose to connect. For our…
Today we continued on from Friday’s project by building a weak but functioning controller, router, and view template. In doing so, we actually created a fully functioning, through incredibly lite version of Rails. Way to go us!
While I don’t have time to go into the full workings of what we did…
Today we finished up the week by making our very own “ActiveRecord Lite”. This involved a good deal of metaprogramming, which I found to be interesting, powerful, and even fun. By implementing some of the associations from ActiveRecord, I feel like a lot of the magic of ActiveRecord has…
The program threw another error. I glanced at the message and quickly switched over to the editor window.
“You have a syntax error.”
A finger pointed to an empty space in my locals declaration where there should have been a “=>” symbol.
I looked up from my screen and to turn and face the bug…
Today was another day of solo programming and I’m pretty happy about the amount of learning that happened. While there was some stuff about forms, the majority of the project was based on model associations.
Thanks to some help from my awesome TA, I came closer to mastering some important…