Monthly Archive: January 2014

Gaming Your Way through Learning Javascript

Gaming Your Way through Learning Javascript

Want to brush up on your Javascript? There are some fun games out there where you need to program to win. Here are a few. Are there any others that you’d recommend? Code Combat Code Combat is an awesome little RPG-type game. You start out as a wizard, and you use Javascript functions to move your allies and cast spells. You get...

Finding Closure During A Monster Attack

Finding Closure During A Monster Attack

This week at Flatiron we’ve been diving into Javascript, and I came across the concept of closures. A closure is when you return a function inside a function in a way that the child function keeps reference to any variables defined in the parent function. Take the following example. If you wanted to specify a different target and weapon each time you...

What’s that you’re hearing? Oh, just your browser talking to you.

What’s that you’re hearing? Oh, just your browser talking to you.

Once you get an app online with Sinatra or Rails, it quickly becomes important to be able to talk to your browser, and listen to it. How else will you tell it what to do? You need to understand a little bit of what’s going on to really be able to control the browser and get input from the user. The key...

The Start of Project Week

The Start of Project Week

This week at Flatiron we started working on our long-term projects. We’ve worked in groups at various points through the semester, but working in a fixed group for a longer, bigger project brings a different perspective with it. On top of that is the challenge of this being our first complete Rails app. Working in a new group always has challenges as...

Debugging the Controller

Debugging the Controller

Debugging is an important part of getting your code to work, and today we got some more practice. We were given a simple Rails app and had to figure out what was wrong with it. The issue with the app is that when a new game is created, the name field remains blank. To solve this, I broke it down into a...

Building a Home for an App

Building a Home for an App

Before the holidays, we spent some time at Flatiron learning Sinatra. This week, we took the plunge into Rails. Both Sinatra and Rails are Ruby Frameworks, which let you get your Ruby apps online. But even though they serve the same purpose, they go about it very differently. Let’s say you have an ideal image in your mind of what you want...

Exploring Time and Space with the Box-Sizing Property

Exploring Time and Space with the Box-Sizing Property

Today we reviewed the box-sizing property in CSS, and the differences between content-box, border-box, and padding-box models. Of course, talking about boxes made me think of my favorite box – the Tardis. Since the Tardis has been recreated over time, and its size and configuration changes a bit when it “regenerates”, I figure it’s a perfect way to explain the box-sizing property....