Patterns, Peeing & Interpolation #TIL

Day 12 @ Flatiron

  • John McCarthy coined the term “artificial intelligence”
  • John McCarthy had awesome hair
  • Looking at a problem is the way to get to the solution => read your errors
  • Everytime Avi says “code smell,” a little man pops into my head, yells “YO SHIT STANK!” then runs away.
  • LISP: an expression based language. No objects. What you lose in maintainability you gain in performance. Loves parenthesis.
  • When you stop comparing yourself to others, you free yourself from so much cognitive load. And now you have the capacity to kick some ass.
  • Calm is a beautiful place.
  • I average one bathroom trip for every 2 cups of coffee. My bladder is pathetic.
  • Patterns are everything. Take the time to look for them.
  • Doing the same problem at least 3 times is essential. The first to test your logic. The second to look for patterns. The third to confirm those patterns. Repeat with problems testing similar concepts until those patterns just start flowin’, baby.
  • No really, patterns are everything.
  • “defun” is a weird word
  • Any duck typed or dynamic typed language needs garbage collection because you don't know how much space to reserve for that type.
  • 100% code coverage in testing
  • There’s a gem for that.
  • How to write a spec.
  • How to not be afraid of writing specs.
  • “I wonder if this will work...” should always be answered with “Let’s try it.” Always.
  • I don’t need to explain my code to Avi. He’s the expert chess player.
  • The thing I’ve been kicking under the table for the past two weeks is not the table leg. It’s Alex.
  • The only thing more validating than finally getting something to work, is having your pair tell you you did a great job. Thanks Mike. 
  • If I see puts “#{song.name}” in an instance method, it probably means that song is an instance outside the current instance with a name method that’s calling the name instance variable (@name), which means that @name also has a reader and writer. However, with simply song.name (no interpolation) the interpreter will search for a local method called name to call. 
  • I can fucking do this.