Swizec Teller - a geek with a hatswizec.com

Senior Mindset Book

Get promoted, earn a bigger salary, work for top companies

Senior Engineer Mindset cover
Learn more

    Different worlds

    Two people making opposite points can both be right. 21 year old Swiz would hate me for even considering this 🤣

    I used to love being a troll on the internet. Obviously I'm right and everyone else is wrong. With time I've learned that obviously I'm right and everyone else is ... also right. Let me explain.

    Yesterday I got into a debate about linters. You may think that's dumb, but the conversation held a nugget of gold so we kept going.

    PS: you can read and share this online

    Our positions were:

    A: I think linters will solve our problems 😍

    J: Linters are annoying and useless

    W: Linters are great, if you don't go crazy with config

    Swiz: Linters make work possible

    How can everyone be right

    Everyone in this conversation was right. They're not just parroting opinions from a book, blog, video, or podcast. These are hard earned opinions from experience.

    And everyone's a talented engineer with years, if not decades, of experience. When the beard is greying, you listen.

    But we live in different worlds. Our conclusions are situational.

    A is introducing code review and other engineering practices into a team of scientific coders. They think code is that thing you write to solve a mathematical puzzle, then throw away. The code is hard to read and difficult to maintain. The lesson that software engineering is programming over time hasn't sunk in yet.

    Linters will help a lot.

    J has lots of experience and primarily works alone. He doesn't bicker with anyone about superficial details and the code he writes is good enough. Sure, he'll format things differently if he feels like, but it's always readable to him.

    Linters are a waste of time.

    W works on a larger codebase with multiple teams making contributions. Enforcing consistency through code review would be a full time job. If every engineer makes 2 small oopsies per pull request, and everyone makes 2 PRs per day, that adds up fast.

    At my dayjob with about 15 product engineers, that makes 60 smol oopsies per day that someone has to catch. Unless you think code consistency doesn't matter at all in which case okay you do you.

    At Google scale this becomes unsolvable. You have to automate basic sanity checks or nothing gets done. In Software Engineering at Google they mention making multiple pull requests per second.

    Swiz ... well I've spent enough of my life with psychopaths on both ends of the code formatting spectrum. From people who write code that looks like keyboard diarrhea to people who spend hours every week lovingly crafting every line of code like it's a unique work of art.

    Then they review each others' code. It's great 🫠

    Even worse is when two artisans have opposing ideas on how to correctly craft the perfect line of code. Just thinking about that makes me wanna scream.

    Cheers,
    ~Swizec

    PS: you can live your life like this XKCD comic or like Keanu Reeves. Choose wisely my friend

    Published on July 14th, 2023 in Mindset, Software Engineering

    Did you enjoy this article?

    Continue reading about Different worlds

    Semantically similar articles hand-picked by GPT-4

    Senior Mindset Book

    Get promoted, earn a bigger salary, work for top companies

    Learn more

    Have a burning question that you think I can answer? Hit me up on twitter and I'll do my best.

    Who am I and who do I help? I'm Swizec Teller and I turn coders into engineers with "Raw and honest from the heart!" writing. No bullshit. Real insights into the career and skills of a modern software engineer.

    Want to become a true senior engineer? Take ownership, have autonomy, and be a force multiplier on your team. The Senior Engineer Mindset ebook can help 👉 swizec.com/senior-mindset. These are the shifts in mindset that unlocked my career.

    Curious about Serverless and the modern backend? Check out Serverless Handbook, for frontend engineers 👉 ServerlessHandbook.dev

    Want to Stop copy pasting D3 examples and create data visualizations of your own? Learn how to build scalable dataviz React components your whole team can understand with React for Data Visualization

    Want to get my best emails on JavaScript, React, Serverless, Fullstack Web, or Indie Hacking? Check out swizec.com/collections

    Did someone amazing share this letter with you? Wonderful! You can sign up for my weekly letters for software engineers on their path to greatness, here: swizec.com/blog

    Want to brush up on your modern JavaScript syntax? Check out my interactive cheatsheet: es6cheatsheet.com

    By the way, just in case no one has told you it yet today: I love and appreciate you for who you are ❤️

    Created by Swizec with ❤️