Write more code. Scratch your own itches. Make small projects that you throw-away or rewrite every so often just for fun. When you get stuck, really try learn why that stack overflow answer works instead of just copy pasting it in. Experiment with different languages and approaches to solving problems.