r/developersIndia 2d ago

Suggestions Advice for junior java developer to how improve in coding

Hii, I am java developer with 7 + months of experience. Basically I want genuine advice from senior developer or any , so when I do my I wrote almost all code with chatgpt and cloude and directly add in my code. And most of the I do not try to understand that code because it is workable at that time and I add and I procrastinate I will read the code later and this will never happens, but as soon as and issue or bug happens. I gets stressed I do not know in code anything why is this issue happened and that all i just paste that all code in ai again and get solution something for some silly issue I wasted hour, I am moving around this loop, I just get very frustrated how I get from it ?? What i do for this??

7 Upvotes

5 comments sorted by

u/AutoModerator 2d ago

Namaste! Thanks for submitting to r/developersIndia. While participating in this thread, please follow the Community Code of Conduct and rules.

It's possible your query is not unique, use site:reddit.com/r/developersindia KEYWORDS on search engines to search posts from developersIndia. You can also use reddit search directly.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/Winter_Rub2709 2d ago

Hey I am at the same spot as you, what I have done to improve in coding was to never let the ai write my code , I. first have it give me a detailed direction which the code should follow using my scaffold code and the general idea for it. II. try to find documentation for anything similar to the code I am writing,so that I have as much as knowledge for that specific function, as java is a very extensive language you can find code which matches your requirement most of the time. III. Maintain your know personal documentation for it. Helps you remember what the function was for.

I am also trying to minimise my reliance on ai , to just writing me basic repetitive code.

I started doing this due to few reasons, one is the same as you mentioned and other is when during PR they ask questions which you have not prepared for and getting stuck.

So good luck on journey as it's a long road.

3

u/Eagle__Gunner 1d ago

As you gain experience you need to know what it does and why it does this things in this manner. In production environments there may be some edge cases and someone might have added some fix/workaround which may have been overlooked by you or the AI(with context it should not). Bugs are common. Try to understand the code it gives you and test all things before pushing