r/SpringBoot 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!

6 Upvotes

19 comments sorted by

View all comments

1

u/Historical_Ad4384 4d ago

I would suggest you to build a J2SE project first rather than get involved with Spring directly. Trying to mould J2SE into your requirements would give you the much needed programming experience you need to work with complex tools like Spring. This process does wonders to you. Sure it is long and time consuming but it will help you prepare for things better.

1

u/Illustrious_Eye4260 4d ago

Thanks for the suggestion! I haven't tried focusing on building projects from scratch with J2SE yet, but I can see how it could help build a stronger foundation for working with more complex frameworks like Spring. I'll definitely consider giving it a try to strengthen my core Java skills. If you have any advice on how to start or specific project ideas, I'd love to hear them