Should you learn to code? Probably not.

Ever heard this: “everyone should learn to code?” Or that “the jobs of the future are all going to be coding jobs,” followed by recommendations to retrain hoards of middle-age and coal miners?

Mike Bloomberg signaled the peak of this idea in 2012:

I wonder how much those coding skills helped him in his presidential bid.

The idea is still strong today, but I don’t know why. Is there some dev bootcamp cartel out there pushing this narrative? It seems like common sense, but I don’t at all agree with it. Here’s why.

Coding well is really hard. It’s like learning how to do an abstract branch of mathematics in Portuguese. You have to use thought processes you likely haven’t used before. And you need to be incredibly detailed and particular because a machine will do exactly what you tell it to. Until it doesn’t, which leads me to…

Completing projects takes insane levels of grit. There’s a saying that the first 90% of software development is writing code, and the last 90% is debugging. Debugging means chasing an error around dozens of code files while banging your head against a wall until it goes away, only to find, like whack-a-mole, that another error popped up somewhere else. You know those people that can play a single level in a video game over and over for hours because they just need to beat it… you need that level of frustration tolerance and commitment to discover that a single Chinese character in a text file you didn’t write is the reason your whole program broke.

And then understand that you don’t just write code for yourself, but also for your future self and for others. A key aspect of good code is how readable and clear its intention is.

Code Quality

But the most important point is that you’ll likely never use the skill. I do a lot of coding for a living, and I barely program outside of work. Sure I’ve done some projects on the side, but the code I’ve written for myself and actually use is minuscule compared to my entire catalog of work.

So what you face is a very difficult skill that has likely very little to no payoff unless it’s for your job or you like to tinker with data and computer systems for fun.

When you should learn to code

However, if you like solving difficult and nebulous logic problems, then coding is probably something you’ll enjoy. And if you really enjoy it, then it might be worth making a career out of it. Because you kind of need to enjoy it to be good. But you don’t necessarily need to be a Putnam contender to get something out of learning to code. There are good reasons to learn code, even if you don’t want to make it a career.

  1. You have personal work tasks you’d like to automate. Maybe it’s pulling files from a server, or writing macros in Excel. You don’t need to learn a lot of coding to make these kinds of tasks much much easier. And having a motivation for why you’re learning (and a specific project to work on) helps tremendously. For example, I do all of my budgeting and tracking in a Google Sheet. At the end of every month I have a script that creates a new sheet, cleans it up, and resets values to begin tracking the new month. Don’t need to be a pro for that. (A free book recommendation: Automate the Boring Stuff with Python)
  2. You like math and puzzles. Did you like solving logic problems as a kid? I had stacks of logic problem books. Coding is the adult version of this where you create and solve your own logic problems at the same time. It genuinely can be fun. It’s a quick way to enter a flow state. So maybe it’s a fun little project or hobby. Which, incidentally, is one of the best ways to start before you decide to…
  3. Make a career change. This is the positioning that the bootcamps take. Yes software can can be a lucrative and fulfilling career. You get to create every day. But as mentioned above, it takes a certain type of person to really enjoy this enough to be good and make a career out of it.

Okay so you want to code. Here’s my recommendation.

First, figure out which of the three reasons above applies to you. Having a really good “why” to come back to will help keep you motivated and focused.

If you’re learning a specific task, like Excel Macros, watch a few YouTube tutorials and then just start hammering away at the task you want to complete. It’ll be hard, but that’s part of the learning process. You’ll find yourself on Stack Overflow frequently. And there’s likely a community of people willing to answer your question (nerds love answering questions and looking smart. Wait, I mean they love teaching).

If it’s for enjoyment, learn the basics of Python. Then head over to Codewars or Project Euler and just start solving problems. Again, it’ll be slow going at first as you learn the syntax, the libraries, control flow, etc. If you find something was challenging, read the corresponding chapter in a book like this:

If it’s for a career change, first figure out if you like it (again, a good indicator is if you easily get into a flow state). Then a bootcamp might be a good idea, but you can certainly do it on your own. But no matter what, doing a lot of work, inside a system of accountability, is the only way you’ll get good enough to get hired. When I hired engineers that came out of bootcamps, having command of the theory and having done a lot of creating were musts.

This is the advice I’d give to a friend who is thinking about coding. I took the traditional path of starting with high school computer science and majoring in it in college, so I didn’t have to retrain myself. So maybe this doesn’t work for you, but find out what does (harder than it sounds, I know). For any pursuit in general, focus on the process and the result will take care of itself. As Mihaly Csikszentmihalyi, the popularizer of the concept of a “flow state” said, “it is when we act freely, for the sake of the action itself rather than for ulterior motives, that we learn to become more than what we are.”

To summarize: Learning to code is likely a waste of time. But if it is right for you, make sure you know why. Then approach the task appropriately.

Questions? I’d love to answer them to appear smart. I mean teach.


Book Review & Summary: Barking Up the Wrong Tree

Barking Up the Wrong Tree: The Surprising Science Behind Why ...

What you’ll find: A survey of recent pop psychology literature on success, time management, and other tips for the ambitious.
My takeaway: Much better use of your time than reading all the books he rounds-up. Delivers it all in a well organized and readable package. However, his writing style was grating at times–a symptom of reading too many pop-psych books no doubt.
Rating: 2.5 (scale guide)

Read Section I for the subjective review, or skip straight to Section II for the book summary/notes.

I. The Review

You’ve seen the books in every airport across America: The Power of Habit, Good to Great, Give and Take. They all promise to unlock an overlooked key to success (“Backed by research!”). I have a general rule of thumb that one should not buy a book that is found in airports with subtitles dreamed up by what seems like the same team of marketers (“How orchestra musicians, lion tamers, hedge fund managers, and Green Berets discovered morning routines for unstoppable productivity.“). So why am I reviewing a book that fails on both of these tests? Because by reading this book, you don’t have to read those others.

Eric Barker is a famous blogger known for his difficult-to-pronounce site It’s an onslaught of medium-brow listicles and dumbed-down research reports on topics like success, productivity, happiness, and all those things you feel you should be better at and buy books to help cope. The article titles rarely deliver on their promise, yet give just enough dopamine to feel like you’ve grown. Compare to: TED talks.

So naturally he wrote a book that’s more of the same.

The bad: you might think you’d escape the nauseating writing style of the omnipresent business books, but unfortunately you don’t. He has a terrible habit of starting his anecdotal stories in media res in a cheap attempt to hook you that left me eye-rolling. A quick sampling (these are all complete paragraphs in the text, by the way):

  • “Two men have died trying to do this.”
  • “Ashlyn Blocker does not feel pain.”
  • “Glenn Gould was such a hypochondriac that if you sneezed while on a phone call with him, he’d immediately hang up.” [1]
  • “Steve Jobs was worried.”
  • “In 1984, Neil Young was sued for not being himself.”

And that’s just the first chapter! He further tries to lighten things up by quipping to the reader in parenthesis. Example: “Let’s talk about orchids, dandelions, and hopeful monsters. (I know, I know, you talk about these things all the time and this is nothing new to you. Please indulge me.)” No, please spare me instead.

It sounds like I’m critical of this book, but really I did discover some good nuggets in it. I often found it motivating, and it did help unblock some of my thinking. (In particular, I found Chapter 3 the most useful for me right now). And despite the aforementioned hackneyed writing techniques, it was very readable.

He writes good overviews of some of the most well-known researchers on risk-taking, agreeableness, grit, networking, confidence, and work/life balance. All topics that definitely contribute to a good grand strategy for success.

He does this by taking all of those pop-psychology books from college professors du jour of recent years and delivers a high level picture of all the key takeaways. In fact, he uses the word “study” or “research” (as in “a study found”) 391 times!

I love studies and research, but I also know enough to be cautious of them; remember the replication crisis? My main concern is that with most primary sources deriving from books driven by marketers, and not researchers, single studies which may be prone to all kinds of error are given an outsized voice and little critical eye. (To be fair, he does cite many journal articles. But still, this book is not meant to be a literature review and as such is vulnerable to the cherry-picking fallacy.)

What does that mean for you? Just don’t take it as gospel. It’s good advice, but figure out what works for you and remember to always think critically.

If you’re especially interested in what makes somebody successful and like to soak up tips for how you can improve, this will be a good thought-provoking read. For others, just use the summary below.

II. Summary

Note: these are notes that I felt useful in my own life at this time. What I’ve included has been necessarily filtered through that lens.

  • Chapter 1: Risk-Taking
    • The most successful usually are non-conforming and original thinkers.
    • “Following the rules doesn’t create success; it just eliminates extremes–both good and bad. While this is usually good and all but eliminates downside risk, it also frequently eliminates earthshaking accomplishments.”
    • “Filtered” vs. “Unfiltered” leaders. “Filtered” leaders rise through the ranks and accepted channels. “Unfiltered” leaders enter through the side door and have typically “bad” characteristics (Chamberlain vs Churchill).
      • Unfiltered leaders are usually the ones who create monumental lasting changes. However, not always for the best.
      • Their bad characteristics become “intensifiers.”
    • “To be great we must be different. And that doesn’t come from trying to follow society’s vision of what is best, because society doesn’t always know what it needs. More often being the best means just being the best version of you.”
    • How to utilize this: know your strengths. Pick the right environment for those strengths. (“Which companies, institutions, and situations value what I do?”)
      • “If you follow rules well, find and organization aligned with your signature strengths and go full steam ahead. Society clearly rewards those who comply, and these people keep the world in an orderly place. If you’re more of an unfiltered type, be ready to blaze your own path. Leverage the intensifiers that make you unique. You’re more likely to reach the heights of success–and happiness–if you embrace your ‘flaws.'”

  • Chapter 2: Being “nice”
    • Managing appearance and likability often works better than hard work in corporate environments.
    • Disagreeable people also do well because they assert what they want and self-promote.
      • However, a culture of disagreeability is infections and makes everyone worse off. We deal with people over and over — a kind of iterated prisoner’s dilemma.
      • A good strategy comes from game theory: Tit-For-Tat. Assume good intentions, and if violated, violate back. If good again, be good again.
    • Rule 1: Work with good people
    • Rule 2: Don’t wait for the other person: cooperate first
    • Rule 3: Don’t be a selfless martyr — you’ll get taken advantage of by “takers”
    • Rule 4: Work hard, but also make sure you get noticed without sounding like a braggart. (Send a “here’s what I did this week” email to your boss, for example)
    • Rule 5: Think long-term. Infinite game over finite game.
    • Rule 6: Forgive eventually
  • Chapter 3: Grit
    • Grit (sticking to something, working hard, and not giving up) “is a key reason why we see such differing levels of achievement between people of the same intelligence and talent levels.”
    • A way to tap into grit is through positive self-talk. It comes down to the stories you tell yourself. Tell yourself “you can do it.”
    • Optimists tell themselves better stories and are more gritty. Their stories differ in three ways: permanence, pervasiveness, and personalization. They say setbacks are temporary, specific, and not their own fault.
    • People with a purpose have more grit. In Viktor Frankl’s Man’s Search for Meaning: “He who knows the ‘why’ for his existence, will be able to bear almost any ‘how.'”
    • Consciously and deliberately construct a good story of who you are and where you are going.
    • To think about what’s important, meditate on death. “Momento mori.”
    • Story editing: go from “I can’t do this” to “I just need to learn the ropes first.” Then play the part, because beliefs follow actions.
    • Make your pursuit a game: Break it into small, challenging, yet achievable chunks. Good games are winnable, have novel goals, and provide feedback.
      • Think of a good, measurable, way to “score” your game. For example, set the goal “I want to achieve 2 hours of deep work tomorrow” and see how you do.
    • Focus on ONE thing and liberally say no to others.
    • Maximize luck by maximizing opportunities. In other words, just try stuff. Experiment. Prototype and test.
      • Embrace failure at this stage: “Learn by doing. Fail quickly to learn fast.”
      • Try things, quit what fails, then apply grit.
    • When you have a focus, still devote 5-10 percent of your time to little experiments.
    • Daydreaming tricks your brain into feeling like you’ve already accomplished something. After the dream, think what’s getting in the way of my fantasy? And what will I do to overcome that? Dreaming up a plan instead gives energy to the pursuit.
    • Planning tips:
      • Think if/then: “If X happens, then I’ll do Y.”
      • “Premeditatio malorum:” think “what’s the worst that could happen?”
    • Apply WOOP to your goals: wish, outcome, obstacle, plan. This will also help filter unrealistic goals if they fail this process.
      • Vague wish: “I want a good job”. Concrete outcome: “VP at Google.” Obstacle: “I don’t know how to get an interview.” Plan: “I’ll look at LinkedIn for connections.”
    • The process:
      • Step 1: Figure out what you need to be gritty at.
        • Do little bets until you have it
        • When a bet looks promising or exciting, apply WOOP to it and begin executing
      • Step 2: Remain optimistic
        • Pessimism is useful to keep us honest, but optimism is best for low risks and/or high payoff pursuits.
      • Step 3: Have meaning
        • Think about your values (use “momento mori” to help).
        • Your story should be that you’re working on something bigger than yourself, and you believe that “this is worth it.” And try writing it down.
      • Step 4: Gamify it
        • Break it down, determine the scoring system, and challenge yourself.
      • Step 5: Eliminate less-worthy activities
      • Step 6: Continuously run little experiments
  • Chapter 4: Networking
    • “Extroverts make more money, get more promotions, are more likely to become leaders, find new jobs faster, and are both luckier and happier.”
    • However, “the superpower of introverts is that they are far more likely to become experts in their field.”
    • As leaders, extroverts help with passive workers; they are more natural at motivating and building group cohesion. Introverts are better with active workers because they listen, help, and get out of the way.
    • Networking tips:
      • The most important skill of networking: be a friend. Show a genuine interest in something you and the other person have in common.
      • Be socially optimistic: assume other people will like you and they probably will.
      • Pay sincere compliments. People like them more than sex or money.
      • Offer help: if people say they are having trouble with something, find a way you can help.
      • Start with friends you already have and reconnect there.
      • Allocate time and money in advance for networking. Money spent on others brings more happiness than spent on oneself.
      • Join groups.
      • Check in with people every now and then.
      • Engage in the social dynamics of your company (work-related gossip can be very helpful)
    • Mentors:
      • “Virtually without exception, each [internationally successful athlete, scientist, and artist studied] had been trained by a master teacher, who had trained earlier students to reach an international level.” — K. Anders Ericsson
      • To get a good mentor, be a good pupil. Mentors want to have a hand in those who are rising fast. If you’re working hard to advance your career and doing enough outreach, you should get noticed.
      • Before seeking a mentor’s help, show that you’ve explored every conceivable avenue and can go no further.
      • Similarly, ask great questions that you can’t find by researching. Don’t waste their time.
      • It’s on you to keep the relationship alive. Find ways to stay relevant and drop emails and questions frequently, but not too frequently to be bothersome.
      • Show you’ve taken their advice, and give them recognition for their help. Say “I [did what you said] and figured my [next step] would be [blank], but I’d love your insight. Do you think [well-thought-out strategy one] or [well-thought-out strategy two] is better?”
      • In the end, make your mentor look good.
    • Negotiations:
      • Number one rule (of salary negotiations): they have to like you.
      • Don’t judge what people say. Listen and acknowledge, paraphrasing back what they’ve said to show you understand.
    • Express gratitude to others.
  • Chapter 5: Confidence
    • Overconfidence gives the impression of competence and higher status.
    • Faking it seems, to a degree, to just be part of good people management.” “The secret of leadership was the ability to play a role, to pretend, to be skilled in the theatrical arts … to come across effectively, we need to master how to convey power.”
      • However, fakers start to lose others’ trust and lose their grip on reality. Instead, focus on presenting the best version of yourself.
    • Optimism vs pessimism: optimists are more likely to keep going and convince others, but are usually less realistic. Pessimists saw the world more accurately. Pessimist entrepreneurs and lawyers are more successful, whereas optimistic gamblers lose more money. Both are necessary.
    • However, over/under confidence and optimism/pessimism may be the wrong scales. Instead, practice self-compassion.
      • “Compassion for yourself when you fail means you don’t need to be a delusional jerk to succeed and you don’t have to feel incompetent to improve. You get off the yo-yo experience of absurd expectations and beating yourself up when you don’t meet them. You stop lying to yourself that you’re so awesome. Instead, focus on forgiving yourself when you’re not.”
    • By detaching from outcomes, by having self-compassion no matter what happens, you will feel more motivated to act.
    • How to practice self-compassion? Talk to yourself kindly, “like grandma would.”
    • Believing in yourself is nice. Forgiving yourself is better.
  • Chapter 6: Hard Work
    • Does extreme hard work produce extreme success? Yes.
    • Focus on output: “voluminous productivity is the rule and not the exception among the individuals who have made some noteworthy contributions.” (Frank Barron). And, “those individuals with the highest total output will, on average, produce the most acclaimed contributions as well.” (Dean Keith Simonton).
    • Burnout occurs when people aren’t engaged in meaningful work and have a pessimistic attitude towards their job.
      • “The WSJ reports: ‘Those who stayed very involved in meaningful careers and worked the hardest, lived the longest.’ Meaningful work means doing something that’s (a) important to you and (b) something you’re good at.”
    • The trade-off, of course, is extremely successful people destroy relationships, display high levels of neuroticism and self-deception, and are generally less happy. How to tow this line?
    • Compare your success only to your own yardstick:
      • “You need a personal definition of success. Looking around you to see if you’re succeeding is no longer a realistic option. Trying to be a relative success compared to others is dangerous. […] You need to ask ‘What do I want?’ […] ‘having it all’ isn’t possible when others determine the limits in each category.”
    • Most people are productive an hour after waking up.
    • The optimal time to focus on relationships is when they don’t seem to need it, not when they need repair.
    • Four metrics that matter most in life
      1. Happiness: having feelings of pleasure or contentment in and about your life. Enjoying.
      2. Achievement: achieving accomplishments that compare favorably against similar goals others have strived for. Winning.
      3. Significance: having a positive impact on people you care about. Counting to others.
      4. Legacy: establishing your values or accomplishments in ways that help others find future success. Extending.
    • Set the personal bar for each category. Your aim should be to reach “good enough” in each.
    • Tip: track each hour of the day to see which categories are getting the most focus. Do you need to readjust?
    • Don’t “pick” from options for your life, “choose.” In other words, don’t be reactive. Be active. Have a plan, and focus on the long term.
      • Understand: the plan won’t be perfect. You’ll screw up. But have self-compassion, reorient, and decide what to do next.
  • Chapter 7: Conclusion
    • The most important principle is alignment between who you are and where you choose to be.
    • The takeaway from the Harvard Grant Study: “The only thing that really matters in life are your relationships to other people.”
    • “The most powerful motivators aren’t money, but the opportunity to grow in responsibilities, contribute to others, and be recognized for achievements”Clayton M. Christensen

[1] Glenn Gould is one of the most famous piano players in history. He is best known for his performances of Bach’s pieces. If you at all have any interest in classical music, this video is an education in and of itself: