Asking Questions: The Holy Grail of OOP

This week at Launch Academy, we started working on Object Oriented Programming (OOP). We’ve been guided by the conceptual model that objects, which can have state and defined behavoirs, respond to methods the same way that you would respond to a question. Of course, a week of asking my objects questions made me think of this: And the more I thought about The Bridge of Death, the more the Bridgekeeper’s questions made a lot of sense in our OOP world. ...

June 8, 2014 · 3 min · Dan Kleiman

Buying a Mongolian Website for my URL Shortner

Ok, so technically I just purchased a Mongolian domain name: klei.mn. Why, you might be wondering? This week at Launch Academy we’ve been building Sinatra applications with simple databases (Redis and Postgres) and deploying them to Heroku. One of the extra-credit projects was to build a url shortner and I thought it would be cool to hook mine up to a customized domain, kind of like a vanity plate for your car. ...

May 30, 2014 · 10 min · Dan Kleiman

Building a Learning Tool for Compound Data Structures

One of the most challenging things about learning to work with compound data structures has been reading the nested hashes and arrays and extracting the right set of brackets to use to identify a particular value in your code. For example: movie = { title: 'The Nutty Professor', cast: [ { name: 'Eddie Murphy', characters: [ 'Sherman Klump', 'Buddy Love', 'Lance Perkins', 'Papa Klump', 'Mama Klump', 'Grandma Klump', 'Ernie Klump' ] }, { name: 'Jada Pinkett Smith', characters: [ 'Carla Purty' ] } ] } If I want to find a character, I have to reference an array inside a hash inside an array inside a hash…I think. Even that last sentence was difficult to write. ...

May 25, 2014 · 4 min · Dan Kleiman

Day 10: The Dreams Continue

It happened again. At 5:00am this morning I woke myself up….talking through a solution to a coding problem I had at the end of the day yesterday. I was literally coding in my sleep. Remember the Tetris Effect? It’s in full effect. But I’ve seen this before and once I got over the shock of writing code in my sleep, I got pretty excited. It means some serious learning is going on. ...

May 21, 2014 · 2 min · Dan Kleiman

Launch Academy: Week 1 Reflections

So, all this week, I’ve been experiencing the Tetris effect and I’ve come to appreciate the beauty, and the painlessness, of learning how to break down a problem. Let me explain…. The Tetris Effect According to the study from Harvard Medical School, games like Tetris can reveal the way our brain integrates new information. In fact, the game Tetris has proved to be just that. Robert Stickgold and his colleagues at Harvard Medical School recently conducted a clever set of experiments in which they used the game to guide the content of people¿s dreams: among 17 subjects they trained to play Tetris, more than 60 percent reported dreaming of images associated with the game. I’ve been having similar dreams about coding all week, especially as I’m falling asleep. ...

May 17, 2014 · 2 min · Dan Kleiman

Reflections on Launch Academy Prep: Balancing Theory and Practice

Preparing for Launch Academy while finishing up work as the director Brookline Tai Chi has been a massive exercise in balancing “theory and practice.” This explanation from Practical Object-Oriented Design in Ruby by Sandi Metz perfectly captures the difference: What is the difference between theory and practice? In theory, there is none. If theory were practice you could learn the rules of OOD, apply them consistently, and create perfect code from this day forward; your work here would be done. ...

May 12, 2014 · 3 min · Dan Kleiman

Getting a Feel For It

“I just want to get a feel for what I can change/do…” Or “I just wanted to see what I could do…” In the middle of launching this blog, I wanted to change some of the core settings and I wasn’t sure what could safely be changed without breaking the whole thing. When I asked someone for help, I explained that I wanted to “get a feel” for what I could do without messing other things up. ...

March 20, 2014 · 2 min · Dan Kleiman

Learning more about Octopress

Just running through a test post again to go over the process and remind myself how this works!

March 19, 2014 · 1 min · Dan Kleiman

Whoa! Octopress!

So, I just launched this new blog using Octopress. Here are the steps I followed: Basics How to Blog Deploying on Github I need to dig into the configuration stuff a little more. Writing This Post in Markdown I’m learning how to write this in Markdown which is also pretty new to me. Right now it feels like a lazy version of html, so we’ll see what’s it like as I get used to it.

March 18, 2014 · 1 min · Dan Kleiman