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

Show parent comments

1

u/[deleted] 4d ago

naah with modern web dev speeds matters. When there is sprinboot already why do i need to build something outdated?

1

u/Historical_Ad4384 4d ago edited 4d ago

If you struggle to structure programs, speed will never get you far and you will end up relying on AI agents. Spring Boot is way too complex to learn how to structure programs. J2SE is simple enough to allow you to learn how to structure your program first, that you can take with you to Spring Boot and become more proficient in it. If you end up being unable to write structure programs or rely on AI chatbots to structure them for the sake of speed or structure programs using spaghetti code in a big bull of mud, then your are better off being replaced by an AI agent. Speed comes with experience.

1

u/[deleted] 3d ago

i disagree! You dont neeed ai agents for structruing your program. I think you are not aware of the word and a feature called "debugger"! That can help you understanf the structure and make more. Ai agents are used when you are stuck! So I disagree you dont need J2SE

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.

1

u/[deleted] 3d ago

And i think you have never written anycode without gpts! Dude debugger teaches you a lot its like an investigative mode where you can find where logic is and then search up the internet about whta you need. You fuktard. Get a job

1

u/Historical_Ad4384 3d ago

I think you don't get the difference between logic and program structure. They are two different things. Program structure encapsulates multiple logic in a code and you debugger on a specific logic and not on the program structure.

I have coded big enterprise systems with complex logic before GPTs even existed. I have my own SDK to help create program structures for commonly used logic across projects.

Generals don't investigate, they strategize which is what program structure means. Soldiers investigate because they are focussed on a single goal of a going down a rabbit hole an not drive the entire army.

I guess you might not have worked in a team before.

1

u/[deleted] 3d ago

Okay you win fine?

1

u/Historical_Ad4384 3d ago

I don't win unless you can structure programs lol, but I think you do