A Tale of Two Covids
#2: you're being paranoid, haunting error messages, and the joys of mormonism
A Tale of Two Covids
I’m living in Phoenix right now where covid is Officially Over. It’s strange to explain to my San Francisco friends. When I tell them no one I know takes covid precautions anymore, since we’re vaccinated, they say You don’t wear masks, but you’re probably keeping a wide berth from people, right? That seems safe, or, You mean you don’t wear masks outdoors but you wear them indoors?
Nope, I mean nobody wears masks outdoors, nobody wears masks indoors, and every venue is popping. I went to a birthday party in a bar last week, there were 50 people all squished together; zero masks. I go to the rock climbing gym, not a single mask. One older woman walks in and apologizes to the first employee she sees, I feel so weird in here without a mask, but I’m vaccinated, you know, what do you think I should do? The employee laughs, No need to wear a mask if you’re vaccinated! Enjoy!, he waves her off.
Meanwhile, I come back to the Bay to visit and Fear of Covid permeates the air. The fear might be a healthy response to a deadly virus, except that the fear still seems to permeate from fully vaccinated people. My friend comes over, he goes to give me a hug, mask still on. Are you vaccinated? I ask. He’s vaccinated, he just didn’t want to make me feel uncomfortable. I tell him to take off his mask and give me a real hug.
How to Read an Error Message
I'm mentoring two new programmers, and remembering what it's like to learn programming. You follow a tutorial, you write some code, you run it just like they tell you to...and you're hit with a long error message full of words you don’t understand like Manager object and module.
It's too daunting to read, so you copy the message into Google, then copy the first response from Stack Overflow. The original error message goes away but now there's a new error message in its place. Did you solve the original error, or did you just mess things up even further? It's unclear.
Here’s my advice for new programmers on how to read error messages:
1. Go slower. When you get an error message, read the error message. Then try to understand the message, which might involve re-reading it 5 more times.
2. If you have a super long error message, you can usually ignore the middle part. The last or second-to-last line of the error message usually has a one sentence description of the error. Early in the error message, you might see a traceback that points you to the exact line in your code that’s failing — that’s helpful too, look for that.
3. Do not just copy and paste the entire error into Google by default. The problem with copy-pasting an error into Google is that you won’t learn anything. If you want to get good at programming, you need to learn how to parse error messages. If you rely on blind copy-pasta forever, you’ll always be just as lost as you are right now. Instead, make a guess as to why the error occurred. Google is still your friend, but instead of googling the exact error message, make searches based on your understanding of the error.
4. It’s totally normal to run into 10 error messages in a row. That’s just programming — it’s frustrating, but it’s why programmers are paid so well. Even when you have more experience, you’ll run into this. Regularly! So no need to get anxious if you run into one error message after another.
5. You MUST use a notebook while you code. If you follow an error rabbit hole for 10 errors, you’ll probably forget what you were trying to do in the first place, when you finally resolve them all. So it’s helpful to write down what you’re working on, so you can remind yourself of the big picture when you emerge from Error Hell.
In short:
Read the error message. Actually. Read it.
Okay, you don’t have to read the whole thing if it’s long. But read the beginning and the end, carefully, until it starts to make sense.
Use your newfound understanding of the error to write a more useful search query than simply copy and pasting the error text.
You’re gonna see a lot of error messages, kid. Don’t stress.
Use a notebook or you’ll get lost.
The Mormons
In a random twist of fate, all of my partner’s childhood friends are Mormon. We went on a cabin trip with them last weekend and it was a blast. I’m not religious but I love Mormons. As a rule of thumb, every Mormon I’ve met is humble and hard-working. And as someone who doesn’t like to drink, Mormons sometimes feel like the last bastion of fun in the world. Our cabin trip was filled with hiking, watching movies, eating good food, playing board games, and playing Fugitive. So wholesome 💖
The Mormons are in a totally different cultural landscape than what I’m used to. I used to keep a list of questions they asked that I found amusing, including “What’s kombucha?” and “Who’s Jordan Peterson?”