By Nathan L. Walls

  • Cracked Asphalt/Charlotte
  • Forest Musrooms/Accord
  • Morning Fog/Raleigh
  • Leaves in the Stony Kill/Accord

Beginner questions

I recently started a new job. That means new faces, different practices, and lots of new-to-me long-running code. It means a new business domain.

In the past, I’ve approached situations like this and asked what I’ve self-deprecatingly described as, “dumb questions.”

Except, there are no dumb questions.

There are particularly no dumb questions when you’re beginning. Whenever you’re new at a job, new with a programming language, new with a framework, new with a codebase, new with a business domain, new with a team, you’re beginning.

When you’re beginning, you ask beginner questions. Beginner questions aren’t dumb. They are the questions anyone in a situation similar to the one you’re in might ask. They may just be the questions that everyone who is new should ask and might not have thought of. I suspect there’s probably at least one person on your new team who also doesn’t know the answer to your beginner question. They’ll also benefit from hearing the answer.

Effectiveness and expertise is contextual and asking questions is a great way to accelerate understanding and thereby building that effectiveness and expertise.

Remember, you’re asking beginner questions, not dumb questions.

Reading and Learning: Sept. 8, 2015

Here’s another long update, with lots of worthwhile reading and listening. I’m still working on my processes and tooling so these are less cumbersome to edit and publish and consequently less effort to read.

Articles and books

I read the following:

Stationed on the West Coast of the United States, flanked by the blue hues of the Pacific Ocean, is a city that’s home to some of the greatest companies in the…

Humorous take on San Francisco startup culture.

Q: How do I convince my client to pay for research? If I have one FAQ, this is it. Every time I talk with other designers about research, someone asks this…

Erika Hall of Mule Design covers getting essential project research paid for. Similar to her book, Just Enough Research, which is very valuable.

If you haven’t seen byebug before, I recommend that you check it out. It’s a great debugger for Ruby 2.x. … The basic setup is pretty simple. Just install the gem. If you use the byebug method anywhere in your code, execution will stop at that point and you’ll be dropped into a debug console. You can ever set it up to use pry.

Byebug and Pry are two essentials in my toolkit. This is a nice write-up of using Byebug when you’re running a Rails app on Pow.

When I joined Atomic fresh out of school 11 years ago, I didn’t realize I was making the best career decision a young software developer could make. I was…

Switching contexts every two or three months, particularly early in a development career makes for great seasoning. Learning how to learn business domains is an incredibly valuable skill.

Dunbar’s Number is a favorite blunt diagnosis for the pains that affect rapidly growing teams. The number, which is somewhere between 100 and 250 describes a…

An older Michael Lopp piece on the difference between layers of employees. Don’t think like Manager and Direct Reports. Think about who was in early and who arrived later. It’s the difference between the first 5 people at a company, the second group of 15 and the third group of holy crap, who are you people!?

I’ve been on both sides of this at the same company and it is very interesting territory.

Model level caching is something that’s often ignored, even by seasoned developers. Much of it’s due to the misconception that, when you cache the views, you don’t need to cache at the lower levels. While it’s true that much of a bottleneck in the Rails world lies in the View layer, that’s not always the case.

The Internet recently fell in love with picture-parsing websites that guess your age, and whether someone is your twin. Now it offers another spin on novelty…

Like lots of problems we attempt to solve with technology, identifying whether or not a picture has naked people in it sounds easy until you have to identify and handle context. Then, it gets a lot more complex.

When we type something into our terminal program, we’ll often see output. For example:

$ echo hello

As we can see, echo hello is a command that means “output hello”. But…

Gabe Berke-Williams covers the ins and outs of STDIN, STDOUT, and STDERR.

When you use a rescue clause in Ruby, you can specify what kinds of exceptions you want to rescue. All you need to do is provide a list of exception classes…

You’ll notice more Honey Badger links showing up more in this listing. Their blog is pretty great.

Ruby application servers are typically used together with a web server like nginx. When user requests a page from your Rails app, nginx delegates the request to…

Nothing could be simpler and more boring than the case statement. It’s a holdover from C. You use it to replace a bunch of ifs. Case closed. Or is it?

Nice exploration of some great uses for case.

Pyotr Stolyarsky died in 1944, he was considered Russia’ s greatest violin teacher. He counted among his pupils a coterie of stars, including David Oistrakh and Nathan Milstein, and a school for gifted musicians in his native Odessa was named after him in 1933. But Stolyarsky couldn’t play the violin anywhere near as well as his best students. What he could do was whisper metaphors into their ears. He might lean over and explain how his mother cooked Sabbath dinner. His advice gave no specific information on what angle the bow should describe, or how to move the fingers across the frets to create vibrato. Instead, it distilled his experience of the music into metaphors his students could understand.

This article is coming up on two years old, but I only saw it come up recently. Thoroughly engaging on improving machine learning in a way I still can’t quite wrap my head around.

It’s becoming more and more common to see malware installed not at the server, desktop, laptop, or smartphone level, but at the router level. Routers have become quite capable, powerful little computers in their own right over the last 5 years, and that means they can, unfortunately, be harnessed to work against you.

I write about this because it recently happened to two people I know.

Watch your router firmware, everyone.

Here’s a little conference speaking tip: don’t introduce yourself. Nobody cares who you are or what you’ve done. At least, not yet.

I saw Avdi speak at RubyNation 2014 and he structured that talk very well.

A common Ruby pattern for injecting values from an Array into to a Hash is to use the Enumerable#inject method and pass the hash as the memo.

Good info on working with Enumerable data structures in Ruby, something that I’m still building my experience with, because they are awesome.

Fair warning. You’re going to hate this one. I want to stop pushing the web forward for a while. I want a moratorium on new browser features for about a year or so

I understand the sentiment, but believe this to be a futile request.

In 1969, Milton Packin was pulled over for speeding on a New Jersey highway. He appealed the ticket, claiming that he wasn’t driving the car; it was the cruise…

One of many aspects I find interesting about what looks like a future of at least partially autonomous personal vehicles.

First things first, AWS and Heroku are different things. AWS offer Infrastructure as a Service (IaaS) whereas Heroku offer a Platform as a Service (PaaS).…

Start with Heroku when you’re evaluating whether or not an MVP has traction. If it does, you can afford the time to prepare it for AWS.

One creative writing teacher from Montana’s reinvention of Western thought, and why it’s undergoing a renaissance

Rails 5 is right around the corner (currently targeting Fall 2015) and there are some exciting features coming up.

Best practices for great multi-device web experiences Create flexible, not fixed, layouts. Make your projects look great and interact beautifully.

All too often, I sit in a meeting with a client and conversation goes a lot like this. Me: “Okay, looks like we have 4 features fully fleshed out here. When do you need each of these by.” Client: “We need these yesterday”

Favoring a list of prioritized items is very instructive about what a developer should work on. The project sponsor or business stakeholder’s vote on priority is a clear signal to the development team.

MongoDB is evil. It… … loses data (sources: 1 , 2 ) … in fact, for a long time, ignored errors by default and assumed every single write succeeded no…

Yep, it’s a polemic. I was a MongoDB skeptic going in. I remain a MongoDB skeptic.

RSpec is an excellent test framework with a large community and an active team of maintainers. It sports a powerful DSL that can make testing certain things…

Older piece from Joe Ferris, talking about structuring RSpec tests for understandability over making use of all of RSpec’s features. Learn what a Mystery Guest is, if you don’t already know.

A lesson I learned early in my career as a programmer was to be wary of accidental creativity. If you’re the type of person who really cares about getting the details right, it’s critical to first decide which details truly matter. Not doing so is a recipe for endless frustration, as one will inevitably be distracted and defeated each day — sweating more arbitrary decisions than meaningful ones.

I use sets now…

I’ve been using Ruby for quite some time, but it was only recently that I found a hidden gem in the standard library, the Set class . If you are familiar with…

…sets are cool.

Ruby 2.0 introduced support for keyword arguments. If you’re already familiar with keyword arguments, feel free to skip to the next bit! Keyword arguments…

This is the journey of designing & coding this site, continuing from part 1. I will share how I went from the early mockups to the final site, with the many…

This is the first chapter of how I designed this site. I will share some sketches, deleted concepts and old prototypes explaining how it evolved along the way.…

An ongoing struggle I’ve wrestled with all my career is regarding estimations and their purpose in software development. A key component of SCRUM is that,…

When testing a Rails application with RSpec, there are many different test types to from. When should you pick each type and how do you combine them into…

The find_all/select methods take an enumerable collection return a new array of only the elements for which the given block returns true. It’s the simplest way…

Quick, what’s wrong with this Rails migration? Yep - it can be null. Your Boolean column is supposed to be only true or false. But now you’re in the madness of…

Many developers hit a point 5-10 years in where they feel like becoming a manager is the only way up. And at that point, they’re dangerous. 5-10 years exp?…

This tweet starts a chain with a worthwhile thread to think on. How do companies encourage career growth in their development staff? What do developers look to do when they want to level up?

When you use something as much as Ruby developers use Hashes, it’s easy to think you’ve seen it all.

But I’m here to tell you that the humble ruby Hash has a few tricks up its sleeve. Far from being a dumb key-value system, the Hash object gives you the power to do some very interesting and sophisticated things.

Weather plays an important role in many failures of engineering systems. Snow can overload a roof, ice can build up on transmission lines and towers, rain can infiltrate electrical boxes, and low temperatures can make oils viscous and difficult to pump.

Dr. Drang explains the import of weather data to his engineering practice and how he retrieves and processes data in a way he can use it easily in his work.

I always knew this day would come. The day that Facebook decided my name was not real enough and summarily cut me off from my friends, family and peers and left…

These last two pieces are worth reading and thinking about the consequences of decisions we make as developers, designers and companies. Algorithms and policies are as neutral and benign as the people that write them. Which is to say, not at all. It’s very easy to imagine our positions as neutral and positive because we – generally – have good intentions. But good intentions are not absolution from bias. Workplace diversity, equality, and a generous sense of empathy are necessary to reduce as much bias as possible.

Screencasts and presentations

I watched or attended the following:


I listened to the following:

For some background on what’s going on here, see the first tool sharpening post

Benfits of "throwaway" scripting

I like listening to concerts from some of my favorite artists like Mogwai, Explosions in the Sky and Hot Chip. Some artists have a definitive place to go for concert recordings, such as Reflecting in the Chrome for Nine Inch Nails.

For most artists, I end-up visiting YouTube and finding a concert and recently, I’ve found a bunch on YouTube:

While watching on YouTube is great, I would like to listen to these concerts through iTunes or on my phone.

I looked up how I get YouTube video converted to audio and found this Meta Filter thread.

I ended up using the following idea, highlighted in this comment:

youtube-dl UUGB7bYBlq8
ffmpeg -i UUGB7bYBlq8.WHATEVER -vn -acodec copy 'Artist -Title I Want.mp4'

Three keys here:

  1. Get the IDs of the videos I wanted to convert from YouTube. I did this manually
  2. Install youtube-dl, which I did through Homebrew
  3. Install ffmpeg, also through Homebrew

While there are plenty of online or graphical tools one could use to convert YouTube videos to audio, the benefit of a command line tool is that I could then use these tools in a couple of Ruby scripts.

A lot of times, writing code involves writing tests and solving a problem through an application. Theoretically, I could have done that here. But, that felt like overkill because, right now, I have eight or so concert videos.

I wrote two scripts to help me. The first is download.rb:

#!/usr/bin/env ruby

file_list = "concerts.md"
files = File.readlines(file_list)

files.each do |file|
  `youtube-dl #{file}`

In the file, concerts.md is in the same directory and just contains a list of YouTube video ids.

Once these were all downloaded, I needed another script to convert the video files to audio files. I also wanted to name the resulting files. I could do both with a simple data structure. Here’s converter.rb:

#!/usr/bin/env ruby

files = [
    source: "Caribou _ Full Set _ Pitchfork Music Festival Paris 2014 _ PitchforkTV-j755GoKSrUE.mp4",
    destination: "Caribou_Pitchfork_Music_Festival_Paris_2014.m4a"
    source: "Four Tet Boiler Room London DJ Set-s_Bn6FlvflM.mp4",
    destination: "Four_Tet_Boiler_Room.m4a"
    source: "Four Tet _ Full Set _ Pitchfork Music Festival Paris 2014 _ PitchforkTV-_z6BXpBDSGY.mp4",
    destination: "Four_Tet_Pitchfork_Music_Festival_Paris_2014.m4a"
    source: "Hot Chip _ Full Set _ Pitchfork Music Festival Paris 2013 _ PitchforkTV-ZbpoozOvKqE.mp4",
    destination: "Hot_Chip_Pitchfork_Music_Festival_Paris_2013.m4a"
    source: "Massive Attack - Live at Melt Music Festival (July 2010)-TqYA7uJUbqE.mp4",
    destination: "Massive_Attack_Live_at_Melt_Music_Festival_2010.m4a"
    source: "Mogwai _ Full Set _ Pitchfork Music Festival Paris 2014 _ PitchforkTV-T2aFPe7mrhg.mp4",
    destination: "Mogwai_Pitchfork_Music_Festival_Paris_2014.m4a"
    source: "massive attack and portishead live bristol-JeAEv1R4wMY.mp4",
    destination: "Massive_Attack_and_Portishead_Live_in_Bristol.m4a"
    source: "Explosions In The Sky Live at AB - Ancienne Belgique (Full concert)-VUuz68zkJu8.mkv",
    destination: "Explosions_in_the_Sky_Live_at_Ancienne_Belgique.m4a"

files.each do |file|
  `ffmpeg -i "#{file.fetch(:source)}" -vn -acodec copy converted/#{file.fetch(:destination)}`

Neither of these two files is doing anything particularly difficult. I’m just running those command line utilties. But, I’m not having to run them repeatedly. I was able to use ls and Vim to get the file names into converter.rb, then regular expressions to coerce the file listing into a data structure. I filled out the :destination keys manually. That felt like a pretty decent balance of effort to automation.

If I use this file much more, I may improve both of these scripts into something more mature. But, without waiting for that to happen, I was able to take care of some very pragmatic automation right now to save me some tedium.

I’ll take that.

Reading and Learning: June 17, 2015

I’ve been busy the last few weeks on a client project that consumed a decent chunk of my evenings recently. I learned a lot on the project, and I’ve been able to include a few links and lessons I used along the way.

Articles and books

You are an educated, successful person capable of abstract thought. A VP doing an SVP’s job. Your office, appointed with decent furniture and a healthy amount…

Paul Ford writes 38,000 in Bloomberg about the business of software. Yes, there are shorter books you’ll read. This has been highly spoken of elsewhere, particularly the online experience and the fact that corrections and clarifications are being handled by GitHub.

For an added treat on your desktop machine, open the article, then scroll to the bottom as quickly as you can.

A perceived benefit of a client-side JS framework is the responsiveness of its interface - updates to the UI are instantaneous. A large amount of application…

One of the knocks on Rails (and Ruby) is that they’re slow. Yes, they’re slower than a compiled language. But here are some thoughts on changing how we write Rails applications to deliver in 100 ms. No, not using a client-side framework. Turbolinks.

I feel it’s time to revisit the web vs. native debate, and concede defeat — or, at least, concede that the web cannot, and should not, compete with native when…

With the link above, these are opposite sides of the same coin. Let’s optimize our web applications accordingly.

Startups focus on speed since they are burning cash every day as they search for product/market fit. But over time code/hardware written/built to validate…

Building fast and making technical tradeoffs builds technical debt. The same thing happens at the organizational level and organizational debt is harder to recognize, more damaging, and harder to pay down.

One of the myths of SaaS is that the products are so good, so easy to use, so quick to deploy … that the product sells itself. Given the…

This week I found myself with the rather strange task of testing that styles had been correctly applied to the DOM. There was a good reason for it, honest.…

I just wrapped a client project recently that involves some user-facing customization. This is the technique I used to ensure the style in the customization was being applied correctly. Very helpful.

Recently I worked on a project that required an admin interface for the business owner to manage records within the application. To this end we considered a few different approaches.

Since the goal for this project was to build an MVP (minimum viable product) it was agreed building a custom solution would be too much work. After spending time reviewing both ActiveAdmin and RailsAdmin, a decision was made to go ahead with ActiveAdmin. We much preferred the ActiveAdmin interface and didn’t like the idea of applying configuration in our models for RailsAdmin.

Notwithstanding, ActiveAdmin does have a few of it’s own drawbacks. The first of which is it’s dependency on using Devise for authentication, which conflicts with our preference for using Clearance.

This article was helpful on a recent client project where I implemented ActiveAdmin using Monban for authentication

Late last week, it was revealed that Facebook has seemingly taken either lazy or apathy to a whole new level. Yes, you can apparently now reply to text…

I’ve spent the past 8 years or so looking at ugly code. This isn’t uncommon in software development but in my case, I’ve been looking at different ugly code…

About two months ago I saw a site called “ Stanford Nerd ” on Product Hunt . Stanford Nerd works by sending a text message from the website to a Stanford…

I was an economics major in college, and I’ve been grateful ever since for the few key concepts it drilled into me: things like opportunity cost, sunk cost, and…

Nolan Lawson Fellow JavaScripters, it’s time to admit it: we have a problem with promises. No, not with promises themselves. Promises, as defined by the A+…

Screencasts and presentations

I watched or attended the following:


I listened to the following:

For some background on what’s going on here, see the first tool sharpening post

Reading and Learning: May 17, 2015

A fair amount of reading and podcast listening since the last entry in mid-April. Since putting together a small tool to pull reading information out of Instapaper, these sorts of posts have become much easier to pull together.

My goal is to automate them further using a Rails application I’m building. The application’s aim is to reduce the friction of recording what technical/technical culture material I’ve read and podcasts I’ve listened to. More on that later.

Here’s the latest log:

Articles and books

I read the following:

I am proud to be one of the 17 founders/authors of the The Agile Manifesto back in 2001. I think it provided a jolt of energy, hope of a better way of doing things, of creating software and making the world work better. It was a pivotal turning point.

But in the 14 years since then, we‘ve lost our way. The word “agile” has become sloganized; meaningless at best, jingoist at worst. We have large swaths of people doing “flaccid agile,” a half-hearted attempt at following a few select software development practices, poorly. We have scads of vocal agile zealots—as per the definition that a zealot is one who redoubles their effort after they’ve forgotten their aim.

At Wiredrive, we do a fair amount of code reviews. I had never done one before I started here so it was a new experience for me. I think it’s a good idea to…

What object-oriented programming advice is this code violating? Note: please just answer this in your head, not in the…

Lately I’ve become increasingly sensitive to how little time I have left to learn new technologies. It’s not that I’m nearing death: I’m not, at least not by…

There it was, right in my inbox: If you go ahead and make those changes, we’ll come on board and send you a check for $75,000. 75 grand was a buncha cash for…

Programmers love to discuss interviewing programmers. And hate to discuss it. Interviewing touches the very heart of human social interaction: It’s a process…

As a developer, you spend 90% of your time on code-related activities like reading and maintaining existing code. With such a large chunk of time spent on these…

The end of the beginning, and the beginning of the end It was January, and the weather was fucking bleak. It’d been freezing and overcast for as long as I could…

Of course Facebook doesn’t “edit” NewsFeed in the same way that a newspaper editor once edited the front page. It’s a very different way. That’s why we’re…

Recruiters are not my most favorite people in the tech eco-system. They’re the people that will contact you on behalf of some client (the company that pays…

This is a simple web application for a group of employees to find out their average salary without exposing any individual salary information to anyone in the group, or storing any private information on the server.

ShellCheck is a static analysis and linting tool for sh/bash scripts. It’s mainly focused on handling typical beginner and intermediate level syntax errors and…

This is a simple web application for a group of employees to find out their average salary without exposing any individual salary information to anyone in the…

Today we are announcing our intent to phase out non-secure HTTP. There’s pretty broad agreement that HTTPS is the way forward for the web.  In recent months,…

When I started on the Firebird team at Bazaarvoice, I was happy to learn that they host their code on GitHub and review and land changes via pull requests. I…

Is software antifragile? I think so. I recently finished the book Antifragile – Things that Gain from Disorder by Nassim Nicholas Taleb. I liked it a lot, and…

I’ll never forget the first time I used the World Wide Web. It was in the early 1990s. I was in America visiting my girlfriend (now wife) at her college in Massachusetts. This was before Mosaic, the first graphical web browser, was released. There were no images on the web, but I was still stunned by the scope of what I experienced. Even back then, the web seemed limitless, without edges. That Encarta CD-ROM sitting next to the computer suddenly seemed pathetically constrained.

In her new book No One Understands You and What To Do About It , Heidi Grant Halvorson tells readers a story about her friend, Tim. When Tim started a new job…

Here is my list of heuristics and rules of thumb for software development that I have found useful over the years: Development 1. Start small, then extend.…

Shannon Liss-Riordan rolls a small black suitcase out of the ugly federal courthouse in San Francisco. She’s smiling, just a fraction. No wonder: She just won a little victory against Uber.

You didn’t mean to end up here. You didn’t even see it coming. It all started with a chance to earn a living doing something you loved. Your dream job. Creating…


I listened to the following:

For some background on what’s going on here, see the first tool sharpening post

← Previous