Read and write a lot of projects. Early career you need to get out there and see things. If you find stuff others are working on too all the better (e.g. OSS but there are other things like charity or public projects too)
+1 for reading projects. There's rarely one, perfect way to solve a problem, and there's certainly no silver bullet pattern in software. The more patterns and types of solutions you've seen, the bigger the set of tools you'll have in your mental toolbox when faced with a new problem.