Taro Logo
0

Overworking and code quality

Profile picture
Senior Software Engineer at Taro Community2 days ago

How do you know when to stop coding because you're overworking, writing too many duplicate files and making common mistakes?

When is it best to take a break when you're use to hyperfocusing (an ADHD trait) where you easily spend hours on end coding (sometimes skipping meals or workouts, but not always), or are on a tight deadline and have to get a lot done, but then you find because you pushed yourself too hard, your eyes are heavy and you're making common mistakes?

Or you were fine (not heavy eyes), but only realize later on when you debug, you had tiny mistakes you wouldn't have made, but were so busy rushing and overworking you made minute errors you normally wouldn't make, and your code quality sucks.

19
1

Discussion

(1 comment)
  • 1
    Profile picture
    Tech Lead @ Robinhood, Meta, Course Hero
    2 days ago

    It's hard to quantify exactly, but I stop working when 1 of 2 happens:

    1. I'm making way too many dumb mistakes than I normally would (2x more or higher)
    2. I feel like crap

    I try to have a goal for each of my days, broken down by hours (e.g. by 2PM, I want X done). If I'm falling behind, then I'll quickly retrospect to see what's happening (which sometimes leads to 1 of the 2 vibe checks above).

    My higher-level advice though is to set up systems so you never need to reactively correct due to the above 2 scenarios. In particular, leverage your calendars + alarms to make sure you:

    1. Eat lunch at a consistent time - At Meta, my team was surprisingly terrible about this, often booking over lunch).
    2. Take regular breaks - I think a 5-15 minute break every 2-3 hours is good, especially when you're working remotely.
    3. Go to sleep at a consistent time - Messing up sleep is probably the most damaging of everything here.

    I talk about this in-depth in my productivity course: https://www.jointaro.com/course/maximize-your-productivity-as-a-software-engineer/get-good-sleep/