In the evenings I sometimes don't have enough mental energy to even decide what dinner to cook, let alone work on side projects, so I do most of that on weekends "for fun." Personally, I can't imagine trying to monetize that - I'd burn out way too fast.
Different people are different, though.
>In the evenings I sometimes don't have enough mental energy
Here's my solution: Take your most valuable hours for yourself. Work in the morning and sell your less valuable hours. Is your employer going to notice? Extremely likely not.
I am sure your job isn't just heads-down code monkey and involves meetings and other planning that aren't as draining.
These are generally the MOST draining activities.
For me, it depends on what I'm coding. If I were to go home and work on something practical or "planned" - yeah, I might not like that much.
But if it's for something fun, or just "playing around" - then I can do that all day long. I don't know about you, but when I was a kid, I recall just "futzing around on my computer". Now, granted, this was in the 1980s - and my computer was an 8-bit TRS-80 - but I played.
That's what I like to do today. I'm not there to make anything revolutionary - but rather just to play around with an idea or concept. Maybe one day it's Python with some OpenGL or QT; maybe another it's maze generation algorithms in Javascript; on another day it might be some kind of sound generation code in QB64!
Just all for fun - for myself. Not for a business, not for anything else much except maybe learning something new, and having some fun!
Being a kid again, in a way; I'm 45 years old, btw.
This could really be anything; you could do the same with hardware - an Arduino project for fun, or maybe Lego (you could combine all three - fun coding on an Arduino to control your Lego motors or whatnot)...
The key is that it isn't work - it is instead play. Just because you're an adult, doesn't mean you can't play, or that you shouldn't play. That's a lie that society wants you to believe.
Instead of thinking "I need me time to make a business" instead just say "I need me time to play" - sure, it won't lead to you becoming rich monetarily, but it will make you happier, possibly healthier.
Call it a hobby, call it playing with your toys, just don't call it work - because it shouldn't be.
I can't see why it would matter if those hours were spent at home or in an office.
So yeah, I'm sure that it's not sustainable long-term.
Slacking off at work is a solution, albeit one that (despite risking career, if that's a de-motivator) could move you closer to burnout via laziness and / or turn a simple dissatisfaction towards your day job into contempt for each working day.
Which is why it's important to either A) know you're the type of person who can slug it out for potential future reward, or B) work on an idea you actually enjoy, will continue to enjoy, and can slack off every now and then
There is still plenty to work on in terms of managing energy levels. Most nights I can hit 2hrs but ideally if I could hit 3hr or even 2.5hrs consistently that adds up. It's not a trivial difference.
Assuming you are right, do you think if I was actually into programming I wouldn't feel too tired for more programming after work?
I'm asking because not having the energy for more programming after doing it for the whole day seems pretty normal to me and not really indicative of being into programming or not but... am I wrong?
If you slack enough at your main job to have the energy to push your side project you're doing a disservice to your employer.