Blocks, Procs & Lambdas

Blocks A block is pretty straightforward. There’s the do … end block: If I’ve got an array of numbers: numbers = [1,2,3,4] numbers.map do |num| num * num end or the single-line curly braces block numbers.each { |num| num * num } Proc (procedure) This is kind of a “named” block that you can save...
Read More

Silicon Chef Hackathon

This past weekend I had the pleasure of participating in the Silicon Chef Hackathon.  Organized by Hackbright Academy and hosted at Stripe, the two day hardware hackathon for women was a great learning experience for me.  Each team was given a microcontroller, sensors, and other supplies and allowed to make whatever they wanted with it...
Read More