Programming Weaknesses

2013 Jul 27

This past week, I finished an interview with a company. I fumbled in many ways, including showing up terribly late. I’ll focus this blog post just on my technical shortcomings, or as I perceived them. Learn from your mistakes, right?

  1. Object Oriented...

Hack Day Reflection

2013 Jul 20

In the Hacker School Manual, reflection is listed as a trait of an awesome hacker. I seem to recall another blog post of theirs mentioning that it’s part of their daily recommended structure. I can’t find that post right now, so I’ll save that for...

I don't like hacky Ruby class definitions

2013 Jul 14

I’ve seen a class definition pattern in Ruby (generally not Rails) and finally found a use for it while working on project Euler problems. It looks like this:

1
2
class MatrixPosition < Struct.new(:row, :column)
end

This gives me a 2-line class definition...

~ won't expand to user folder

2013 Jun 28

tags: bash

If you’ve used bash before, then the tilde (~) is probably familiar to you. It’s a shortcut for your home folder in the terminal. Thus, cd ~ on my system works as follows:

1
2
3
4
5
6
$ cd /
$ pwd
/
$ cd ~
$ pwd
/Users/erichu

This is great, but I...

learn by teaching

2013 Jun 14

This is just a quick note for the day, but I learned something new today because of a comment on an answer I posted on Stackoverflow yesterday.

A Schwartzian Transform is a technique used for sorting objects that’s useful when the sort key on objects...

Directions

2013 May 12

With a technical blog already set up on blogger, I have to ask myself why I want to set this one up. The answer is that blogger isn’t customizable enough. I’d like this blog to also be a playground of ideas.

If there’s some library I want to try...

First Post

2013 Apr 24

By Eric

I finally got the basics of this blog set up. It was fairly simple, involving 3 main steps.

  • Set up Middleman and generate this post
  • Hook up Flatstrap, the basic styling for this blog
  • Set up S3 to host static sites
  • Hook up Middleman Sync...