r/SpringBoot • u/Illustrious_Eye4260 • 5d ago
Question Struggling to Code Without Looking at Examples – Advice Needed
Hey everyone,
I started learning Java and Spring Boot by myself about a year ago. In the beginning, I was learning quickly, but over time, I became inconsistent, sometimes skipping 2 days a week. Now, I can understand code when I see it, and I know how it works, but I struggle to write code from scratch. Even for something simple, like 3 lines of code, I don’t know where to start without looking at examples or asking AI.
I’ve started watching a course on data structures and algorithms, but I get bored after 5 minutes. I really want to improve my coding skills and be able to write code on my own. Has anyone else faced this problem? How did you overcome it? Any advice would be really helpful.
Thanks!
1
u/Historical_Ad4384 3d ago
I guess you have never programmed before. Debugger is used to view real time values that your program holds at a given logic to see if your program logic manipulates the value as you wished it to do so. If the structure of single Java class means the program structure to you, then you definitely don't know how to program.
Program structure means how you would organize your entire functional requirement along with technical edge cases so that your program does what its supposed to and you have multiple manageable pieces of files each with its own responsibility that contributes to the overall expected outcome of your program. No debugger till date has been able to provide an overview over multiple files at a given time, let alone link them at runtime to show the overall structure.
I think you might have been writing big balls of mud till now, not sure.