I would be very careful with this sentiment. Pretty much any creative endeavour consists of parts that are not strictly fun. Coding in particular is filled with difficulty, tediousness, deep and wide thinking, etc. It's also the best creative tool that I know of, deeply engaging, very intelectually stimulating and fulfilling and lets you create things of extreme sophistication with very little limits. It's easy to rationalize your lack of motivation or discipline with a statement like: "I don't feel like doing it so it must not be something that I like" but creating an environment and a mindset to pursue fun, creative projects is not easy.
I would agree that the fun/work line is different for everyone, but I would also submit that a really low bar can also lead to an interesting hobby life over the long term.
I would consider that I give up on stuff pretty early when it becomes "not fun [1]." I'm in my 50's and I've been doing it for a long time. Since I'm always obsessed with something and each time I try something I get at least a little better, I have built up a pretty decent background in a lot of different areas and the amount I can accomplish before something becomes "not fun" gets to be more and more. I like to say I have a Metahobby: I collect hobbies.
I know this isn't a viable solution for most, but at least it's an alternative to feeling crappy about not finishing stuff. Also this:https://youtu.be/GHrmKL2XKcE
[1] For hobby projects. In my career, I know it's work, someone's paying me.
I could have phrased it more carefully : "If it's for fun and none of it feels fun and all of it feels like work, maybe it's time to consider you don't really want to do that for fun".
Of course any creative endeavour is not only fun, but I know the feeling of trying to do something "for fun" and it ends up feeling like work. Some people like to hustle, and that's fine. But just not doing it and finding something else you find fun instead is something to keep in mind.
I thought the "maybes" and several questions made it clear, but I'll state it regardless: there is no one-size fits all answer, and what I said is just a possibility that should be kept in mind. While it happens to be the one that worked best for me, I'm aware it's not the answer for everyone.
I would be very careful with this sentiment. Pretty much any creative endeavour consists of parts that are not strictly fun. Coding in particular is filled with difficulty, tediousness, deep and wide thinking, etc. It's also the best creative tool that I know of, deeply engaging, very intelectually stimulating and fulfilling and lets you create things of extreme sophistication with very little limits. It's easy to rationalize your lack of motivation or discipline with a statement like: "I don't feel like doing it so it must not be something that I like" but creating an environment and a mindset to pursue fun, creative projects is not easy.