"Where do you find inspiration for coding," I hear very often. The trick is simple: I try not to stay for too long with the same code base. I try to extract sub-module, libraries, or frameworks from the products I work with and make them standalone products. This is fun: making new products.
The video is here: https://youtu.be/ygoWsvgXe1c