A random toolRuby critic is a gem that wraps around static analysis gems such as Reek, Flay and Flog to provide a quality report of your Ruby code.
A random line of codeNext time you are trying to write a £ symbol into a CSV using Ruby, keep in mind that it defaults to UTF-8, but Excel does not read it back correctly by guessing a different encoding. Simple solution, switch encoding like this.
CSV.open(filename, 'w:ISO-8859-1') do |csv|
csv << ['Payment 1', '£ 15']
csv << ['Payment 2', '£ 10']
A random video or podcastIn this video Bryan Cantrill explores the importance of leadership principles ranging from the Gettysburg Address by Abraham Lincoln to Uber. Hilarious but also extremely serious; something we should all spent considerably more time thinking about.
A random article or paperThe best way to learn is to avoid the natural tendency to ignore your mistakes, and instead, constantly reflect on what you should do differently. A practical example? Donald Knuth logged more than 800 errors he made while writing TeX in this paper that appeared in the Journal of Software in 1989.
A random bookSometimes the first reaction, when someone tells you could have done something better, is to defend yourself, build excuses and shy away. But the hard truth is that It’s All Your Fault (Farnan Street blog). The book Thanks for the Feedback helped me see these moments like a great opportunity that I should be grateful for. Be worried when no one is telling you what you can improve.
A random quote
The road to wisdom?
— Well, it’s plain and simple to express:
and err again
and less.Piet Hein