First Day of Dev Bootcamp
It was an AWESOME first day! First we introduced ourselves and got advice from the other cohorts. Then some team building exercises and lunch. Finally, CODING (pair programming specifically)! My roommates and me coded from 3pm until midnight. It was great to do some pair programming…
Day 2 Dev Bootcamp
Today I struggled mightily and wrote some really bad code. My first thought was to save the code, and keep working at it. Cooler heads prevailed, and I deleted the terrible code. Today’s advice is to delete bad code and love it. The moment…
Thinking Differently
Innovation and thinking differently is currently a hot buzzword and gets thrown around frequently. Unfortunately not enough practice goes into it. When I was younger my mom was a creativity advisor to small companies. One thing she said to me that I’ll never forget is…
Ruby Next Statement
I was doing the prime factor exercise on Project Euler and came across the next statement. for i in 0..5 if i < 2 then next end puts “Value of local variable is #{i}” end the next command or statement jumps or skips to the…
JavaScript Codecademy
In JavaScript methods (aka member functions) are functions that belong to objects. Member functions are designed to operate directly on the properties of the object to which they belong. function Circle (radius) { this.radius = radius; this.area = function () { return Math.PI *…
Difference between ruby helpers, partials, and route helpers
Learned today that helpers and partials are not created equal. View helpers are like modules. They primarily store ruby methods that can be used by your view files. Form helpers make it easy to write and maintain form markup. Partials are embedded ruby files (.erb)…
Denver Music Hack Day
Wanted to share my experience at the first Music Hack Day in Denver: http://denver.musichackday.org/ This is what my team built: https://www.hackerleague.org/hackathons/music-hack-day-denver-2013/hacks/makemeshake-dot-it Sorry about there being no audio on the demo. We attempted to upload the app to Heroku, but experienced problems with the JavaScript text/picture…
Equality in Ruby
== is equality of value. Typically overridden in subclasses to provide class specific meaning. === is the same as == but usually overridden in subclasses for use in case statements (Range, Regex, Proc). eql? is equality of value and type. equal? is pointer comparison (hash)….
CSS
Today I did Codecademy’s HTML & CSS course. Even though I know the CSS syntax it is interesting how my pages are still pretty ugly. I guess that’s why designers get paid. I learned a mnemonic device for the CSS box model Margin, Border, Padding,…
Object#send method and Lookup Tables
I placed my Reverse Polish Notation (RPN) Calculator code into StackOverflow for Refactoring feedback. http://stackoverflow.com/questions/17417175/refactoring-feedback-for-reverse-polish-notation-rpn-or-postfix-notation My biggest issue with this problem was converting the input string operators (’+’, ’-’, ’/’, ’*’) into methods I could use for mathematical calculations. Enter the Object#send method. The…