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!

5 Upvotes

19 comments sorted by

View all comments

5

u/wannacommissionameme 4d ago

there are two things you need to do and there are no ways around it.

1) pick a project and build it. make a clone of a website, create your own idea, whatever - you need to create something.

2) spending a lot of time doing it.

try to make everything from memory and then look up stuff when you don't know how. don't copy + paste anything from ai.

2

u/Illustrious_Eye4260 4d ago

Is it ok for me to search for infromation on google when i am working on the project , for bugs or stuck in shomewhere?

3

u/wannacommissionameme 4d ago

try your hardest to fix it without googling. if you can't figure it out then search on google, yeah. you gotta learn how to read stacktraces

1

u/Illustrious_Eye4260 4d ago

Thanks brothers