Ask HN: When you code at work, how do you code in your time off?

  • As you said in our last sentence, it's good to have a balance of activities throughout your day and week. For me, I try to be consistent on my projects weekly, not daily.

    I sometimes will have a month where I don't even want to think about code outside of work. Other times, all I can think about during work is when I can get off and go home to code more on my side projects. These are the two extremes. I am usually somewhere in the middle: I will go take a walk, go to the gym, read science fiction, cook. During these activities, I will randomly have higher-level, free-flowing thoughts about my coding projects. Perhaps even a spark of insight.

    When I return to my projects, I feel refreshed and excited. If I don't feel excited about my project, then I won't force myself.

  • I don't find motivation to work on side projects, I use it when I have it. Sometimes I'm done after a work day and I just want to play a video game, go outside, do whatever else that doesn't involve my computers. Other times there is a lot of motivation and I can spend full weekends and nights just coding away on a side project.

    What I've learned over the years is to never force myself to do "work" for side projects. To be fair, my side projects usually don't get anywhere aside from learning/hacking on new things. My skills improve and I'm having fun and that's good enough. Pressure is for actual work that pays the bills.

  • 2 answers:

    1. I code on my time off when I'm not coding enough at work because I'm too busy with other tasks such as management, documentation, specification, testing, or just boring development

    2. I try as much as possible to "sharpen my saw" at work. For example:

    A MR about an API to review? => let review SOLID principles.

    A module to refactor? => Let's explore some new design patterns.

    A bug to investigate? => maybe this modeling tool I read on HN can be of help...

  • I do code outside of work, and the kinds of projects I work on are a different realm of interest, for instance solving problems at home, or filling a need. They don't have to be completely different topics though, even tangentially related is good enough to keep the interest going.

    Over time some of them have spawned into their own projects, and some have gained a little popularity in the OSS community and have taken a life of their own. Importantly I am keeping them as hobbies and not revenue streams; I know that isn't a common sentiment on HN.

    Further, it's not always about coding — it's important to also do non-coding things in between, to break things up. I'm sure you have some of these as well. The non-coding tasks can serve as time to mull over both work and non-work coding tasks in the back of your head.

  • At work, I do things "the right way" (tm), we have high standards, and I (try my best to) write clean, easy to read code that follows whatever we deem best practice.

    At home, I enjoy NOT doing things the right way, one-off stuff, dirty dirty hacks, tricks and kludges.. Whatever makes it work, in whatever language I feel like! I code myself into a corner, or work around refactoring whenever I feel like it, and I enjoy it all the way to the bottom! :-)

    I find it enjoyable to have a leg in both "worlds", and they both motivate the other.

  • I write small video games in my spare time. Doesn't feel like work at all, the challenges are very different. Making interactive things is a kind of instant gratification, too, as you get to play with it during development.

  • I don't. Days are short, and I'd rather spend time with my kids while they're still around.

    If I want to learn something, I read about it (at work or at home), then look for a way to apply it at work (it has to be useful though!).

  • It sounds that you have an interesting job and it is consuming your creativity and coding "power". It's pretty good. I was in the same situation as well. But never had time for my side projects. To be honest my side project's really took off, as soon as I got a very boring job (don't suggesting doing it, but the motivation was much higher to work on interesting stuff when the job was frustrating with good wlb).

  • I do 1hr a day before breakfast. The idea is to do as much as possible in this relatively short timeframe. I find i get a lot done.

    I am a morning person though.

  • I only code outside of work for money, when I do it’s a Saturday night with some wine and music.

    It’s much more relaxing than work, I only do things that I’m good at so it flows well. I feel like an artist

    I also limit the amount of time that I spend on coding outside of work to 10 hours a week and balance out the rest of my time with non coding activities

  • When I coded for money, I never managed to enjoy coding in the evenings. My personal projects quickly fell apart. As soon as I switched to a different role, my passion returned.

  • I need it to be a challenge. It needs to be something interesting, and usually involving teaching myself something new. And I’m doing it just for the sake of learning, to improve my skill set. Most of that feeds back into my day job which is part developing my startup and part working tech for my key investor’s company. My curiosity and my desire to grow my business are the primary drivers to do the extracurriculars. I am sacrificing family time but I do take time with my wife and daughter. If it teaches my daughter about curiosity and developing a good work ethic, that’s a win IMO.

  • I code outside of work, because my goal is to one day to run my own business and I want to test my ideas and validate. So the reason why I code is oriented around that goal. My day job is good. I enjoy it. But I choose to pursue my goal. And that goal is enough to get me back on the computer.

  • I think my case is definitely not a good example for a healthy work life balance, but going to tell it nonetheless, maybe someone finds themselves in this story. Been coding 60+ hours per week for the last 9 years, usually do programming on both weekends.

    I have a partner but no kids, have no idea how it would be possible if I had them. Due to lack of free time and sport injuries my hobbies have mostly reduced to frequent travelling. Since I travel I barely have any friends, so I don't spend any time with them.

    I try to exercise regularly, exercise takes time but it pays off for my energy levels and decreases stress.

    I have recently self-diagnosed myself with ADHD, sitting idle and just relaxing produces too much anxiety, so I have to jump back into doing things. Another important thing for motivation is feeling that your work is meaningful and that you can influence the product. Being a cog in a big machine implementing what other hand down to me would have brought a feeling of helplessness.

  • I usually take a few months off 'coding' outside work, then 'load up' all the side project into my 'RAM', write features etc.. whatever needs to be done, then fire off this years update into github. Maybe that month I will reintroduce caffeine into diet etc to get that extra bump.

  • I code/do technical work outside work for a number of reasons:

    1) I have a problem I want to solve- like making Christmas lights synced to music or building a speed camera out of a raspberry pi (although those mostly use prebuilt solutions)

    2) I saw something cool I want to try. I never build anything to publish, just to scratch a curiosity itch.

    3) it’s advent of code time. I never do more than a few of them, but I find the puzzles fun.

    4) My kids ask me to (this happens surprisingly often- Minecraft mods, websites for selling their artwork, coding a simple game with them)

    I also maintain a blog that gets a little technical, but so far no code there.

    Finally, my work sponsors internal hackathons, which I make time to participate in. The doesn’t really count though as it is done on with time.

    I don’t spend a ton of time coding outside work, but it naturally fits into my life at serendipitous moments.

  • You don't.

    For me time off is to go ride my bicycle, spend quality time with my kids and/or girlfriend, go to the beach, socialize, cooking, drawing, fixing stuff at home, do stand up paddle or other activities, mostly outdoor.

    We are not made to be laboratory rats. We need to spend time outdoor, interact with people. Sure there are a lot of dev/homelab stuff I'd like to do, as well as make music, books I'd like to read. But at some point you have to accept you don't have time for everything and I choose to dedicate that time on healthy and outdoor stuff first over things that involve a screen like coding, video games or netflix.

    If I wasn't working in front of a computer, maybe it would be different.

  • In my time off I only work on something I'm legitimately excited to work on. And it took years to find that thing. But when you're really excited about building something, you find time.

  • Personally I don't code on my free time. I've been writing code since I was 9 years old, it was a huge hobby for a long time but I feel no pull to code any more outside of being paid for it.

    I'm very glad to have had that hobby for so long, enabling me to have a career and a diverse set of skills for this industry but the desire and drive to code as a fun activity has ceased to exist. I have developed other hobbies that are much closer to my soul and that I feel are deserving to get their time to be explored and enrich my sense of self.

    > I feel like not honing one's professional skills during your time off is a little bit of a wasted opportunity.

    This is all dependent on why exactly you feel that, is it because you want to chase higher and higher positions? Does that give you joy? If so, go ahead, if it's just a feeling of "keeping up with the Joneses" I'd say to reassess that, I used to think that way and through therapy I discovered that it only made me an anxious mess. I'm much happier not trying to fill up my free time with an ever changing landscape of knowledge that I "should keep on top of"... I still learn a lot, just now during my normal working hours and everything is pretty fine for what I'd want in life.

  • Think about what you want out of working on some side projects. If you think it's important for your career or because there's an itch you want to scratch, etc. you'll make time for it. If you think you're doing it just because you feel you _should_ be (because of something-something-#hustle-#grind), then I would think twice about spending your precious free time on writing code in your free time for the sake of writing code in your free time (or trying to monetize your free time!). You own your free time and you should fill it with the things you want to do as part of a balanced, enjoyable life.

    I write a lot of code outside of work. I have some sort of compulsion to do so, and have numerous passion & open source projects I work on. They pretty much all scratch some sort of itch for me personally (either creative or mentally). This keeps me motivated because they're all stuff _I_ want to do and mostly not things I feel like someone else wants me to do or I'm making myself do. I don't worry about going months between touching some of them. Some weeks, I don't feel like touching any of them and will spend most or all of my free time on other stuff.

  • If I start coding in my spare time it is usually a sign that I have reached extreme boredom at work and that my brain needs to do something...

  • I don't code at home as a hobby, or because I want to code. I code at home because I want the computer to do something. When I want that enough, then I code at home. When I don't want it enough, then there's plenty of other things to do at home. So that's my answer to the motivation question - when I want the result enough, then I have motivation to code at home.

    I don't code at home to hone my skills. I have, essentially, a full-time job honing my skills. I don't have to do it some more on the side.

    But there are exceptions to that. My wife occasionally asks me "What do you need to learn now for the next five years of your career?" For that kind of thing, yes, I'll take some of my own time if I have to (though I've been fortunate enough to often have my employer pay for me learning it). But I'm not going to grind leetcode in my home time just in case I need it in an interview somewhere down the road.

  • I tend to code projects that have absolutely no connection whatsoever to what I do at work: that way I can enjoy the challenge and feel proud of the result (if it works!).

    One thing to bear in mind though - in my situation, working for a large multinational, there's a clause in my contract that says that my employer owns all intellectual property rights to anything I write/devise, even it's done on my own equipment and time. So occasionally there's some crossover and I write something for me that would be useful for them. I then offer it as a working proof-of-concept and they're welcome to use it. However, in general, they choose not to, and I'm often left wondering whether they'd pursue me legally if I just said F*k it and published it anyway.

  • I am an early riser and I would get up, sit in my recliner, drink my coffee and doom surf the internet. Then a couple of weeks ago I set up my laptop at a table in the living room, drink my coffee, journal for a few minutes and then start programming.

    Around 5:45 I go for a walk, I'm back about an hour later then code for another hour before I take a shower and get ready for work.

    This past Saturday I code quite all day. Sunday I intended to do more but got to doing other stuff.

    The other day I sat looking at my monitor for at least 30 minutes trying to figure out what I wanted to work on. Once I decided I had a good long session.

    I have a few hours after work but I'm usually so tired (from getting up early) my brain is fried from coding all day so I eat dinner, read a bit, go to bed and start all over in the morning.

  • > The problem is that I have a few private projects that I would love to try out. They all need coding.

    Is that all they need? Otherwise, maybe work the non-coding parts when your motivation to code is low and, with any luck, the excitement and desire to complete the project once you are into it will provide the motivation.

    Or maybe coding in your spare time just isn't for you right now, and you need to find other things that fit.

    My spare time coding is pretty different from what I do at work and for very different purposes and I rarely feel like it's the same thing, any more than say writing documentation at work and writing adventures for a TTRPG at home are the same because both are writing. But there's definitely stretched where I am less interested in coding in my spare time and then I just do other things.

  • The only time I was motivated to code outside work was when I was working a pretty boring software job (backend dev)

    I ended up moving to a much more interesting job in a niche area and haven’t felt the need to work on code outside work since my main job is already interesting enough

  • Work is 80% powerpoint and 20% coding for me. There's no problem with lack of motivation for private projects that involve coding, as long there's some practical usefulness or code is somewhay interesting (why else would private projects exist...)

    What is limiting of course is time. Work soaks up too much of it.

    But the biggest problem for my list of want-to-create private projects is that the more interesting ones involve some form of soldering, glueing, screwing, ... where I can simply create code without much planning ahead, whenever anything hardware is involved there's something that is stopping me from moving. Too much afraid of failing or something like that.

  • I don't. Life is short. You must choose what you spend your time and energy on. Only you can decide what is worth pursuing with the resources you have.

    In contrast to your last sentence, I believe that if you are not using your time off for recovering, then you cannot work with a good capacity.

    If you find yourself unable to motivate yourself for coding in your time off, you are possibly not recovering enough as it is, so trying to get better in your time off vs. in your paid time is not necessarily a healthy thing.

    You can arrive at burnout by pursuing that path long enough.

  • I wake up an hour earlier and code/handle my side-projects in the two hours before work. In the last year and a half it's allowed me to build a whole SaaS (and business around it), a couple of books, and dozens of blog posts.

  • I you love coding you won't stop at your time off. When your motivation is off, your side-projects are not fun anymore. Maybe try a new technology stack which is more fun.

  • A goal to get something done. Like a tool I need or a video/article I want to release.

    Will note I'm also single/have no life in that normal sense. But I have hobbies/goals.

  • Since I started working remote, I don’t feel as tired after work as I used to. It’s not just the prep/commute, I always felt there was this baseline mental overhead from working and attending meetings in an office compared to at home. I also feel more comfortable to take short breaks and move around. It only takes me ~2 hours to recover after work and get to my own projects.

  • A wasted opportunity in my opinion means wasting a good weather window, not working out, or literally missing a chance to travel. There are times when I've felt missed side projects have been wasted opportunities, but I don't really worry about it much. When I get excited about a new tool or something, which happens rarely, then I'll code in my spare time.

  • When I did PHP for a job I was happy to get home and code in a proper language. When I got my dream job in my favourite language I too lost motivation for bigger projects.

    I have no solution. Somehow one side project still made it big enough, made me money and now I basically live from side projects.

    I asked myself what I enjoy more. And not what makes me the most stable income.

  • I'll be honest, I don't. I once had a job that wasn't programming, and I did so in my free time and was prolific. I even found ways to apply that programming to my rather nontech jobs. It was all a blast.

    Now that I do it all day, it's the last thing I want to do after 5. I don't even own a computer outside of my work machine.

  • I'm doing a short work-week, coding about 25h/week, mostly fancy CRUD and API work. 25h leave me feeling not burned out at all.

    The "time off" coding I do is purely for fun and learning, and it's mostly using different languages, tools, frameworks than my work. It feels so different and it's fun, my current project is a game.

  • I don't. Same as you I love coding but after doing it at work all day I don't want to do it in my free time too.

  • I've got the exact same issue. I'd love to do more coding on private projects, but it's always bits and pieces. I can never commit sufficiently to actually finish them.

    Having kids doesn't help, although recently I've been thinking if maybe I should do a coding project with my son. A game, probably.

  • I have always been coding in my spare time. Usually, I work on tools that I use personally. That helps me to relax and it's fun for me. The main difference to professional coding is that I can follow my motivation and I can stop at any time.

    After I became a manager I only code in my spare time.

  • I have the opposite, where I find my day to day job incredibly boring (platform/infra) and I miss my product engineer days where I got to work with product manager and others to build cool stuff.

    So after I’m done juggling yaml files I want to code and build some cool stuff.

  • Become a manager, then you'll miss coding (half joking, but this does work)

  • > They all need coding. How do you find the motivation to work on such things when you also code for work?

    The trick is to spend less brain power at work and save it for your personal projects.

  • I basically don't code outside of work unless I have a specific need or improvement to make.

    I like coding just fine, but I get my "fix" at work and have plenty of kids and chores at home.

  • I have the same problem. Would love to hear any tips.

    Also on another note, how do you keep track of all your private projects? Do you do note taking or some other method?

  • I don't. Life is made for other things than coding

  • >how do you code in your time off?

    Like the wind

  • undefined