Studying Programming is more fun than actually Programming.

Posted by ThatWontCutIt@reddit | learnprogramming | View on Reddit | 34 comments

I've been studying Java for the past five months, primarily using textbooks. Once I felt comfortable with the language, I started working on projects. My first project, a server-client NIO-based application, was an eye-opener. The code was a mess—I could barely tell what called what or what did what, and making changes felt like a guessing game. Strangely, the method names I came up with actually helped a bit.

After that experience, I started studying Design Patterns. I liked the concepts, but I noticed something interesting. When I asked ChatGPT to suggest exercises for practice and compared the code it wrote to mine, the difference was striking. My code was overly bloated with patterns. While it was easy to modify, it wasn’t easy to read. Meanwhile, GPT’s code was simpler, clean, and still easy to change.

I tried over and over to write code that was as elegant as GPT's, but I kept failing. Now, whenever I try to write code on my own, I quickly get frustrated. I’ve found myself in this loop where reading about coding—like APIs, paradigms, and concepts—is far more engaging than actually writing code.

What do you think is the issue, and how can I overcome it?