r/learnjava • u/scared2026 • 12d ago
Do developers all just remember program in there head or use documentations to write codes?
Till now I thought that I have to remember everything I learn but one of my friends said that they use documentation to write codes since remembering everything is not possible. If so what am I suppose to remember and what kind of documentation should I read. What is the process of learning JAVA ? I finished making a simple crud operation program. From here on what should I start learning? What should I focus on? Help please
4
u/WorthlyBread 12d ago
I dont usually write Java but C but i think it's applied as well, I think that you dont really need to remember everythign in your head, in contrast that might be a lot worst because it's an unnecessary effort, you essentially just need to learn more about the principal of the tool you are using. And for reference, be free to search up along the way, even professional do forget simple syntax.
For what should you focus on I think you should be finding some project you wanna do. Search interesting stuff and start making it would be a great learnign experience.
This github repository have a lot of things to do if you are interested. Github build your own X
1
u/desrtfx 11d ago
We write (or get) design specification documents upon which we plan and write our code.
For the syntax and specifics we look up documentation.
We look up sites like StackOverflow if we have very specific problems that someone else might have already solved.
We generally do not memorize a lot. What we regularly use transfers into muscle memory, the rest is good old documentation or Dr. Google (and maybe now AI - but that with care and double-checking).
1
u/scared2026 11d ago
Thanks. And can you explain what stackoverflow website is? Is it like reddit where developers ask and reply to your questions?
2
u/desrtfx 11d ago
Stackoverflow is more an encyclopedia of more advanced programming problems with solutions. It is not a site where beginners post their questions (such questions get shot down pretty quickly).
It has quite some posting requirements, like having done and proving your research, like the topics (beginner "how do I" topics are absolutely off-limits).
It is a site by professionals for professionals.
(Side note: you could and should have looked up the site - this is what is meant by doing your research before asking - researching is a vital skill for every programmer)
Many people, me included, will tell you that, as a beginner, you should treat StackOverflow as a "read only" site and not post there.
The community there is commonly called "toxic" because of their quite rough tone towards beginner/already answered questions and because of their (often called "elitist") posting requirements. It is to a certain degree true, but that attributes to the purpose of the site, which is not for beginners, nor for easy questions, and least for already solved problems.
1
3
u/dkopgerpgdolfg 12d ago
From here on what should I start learning? What should I focus on?
What are your goals? And what wasn't answered by a simple search for similar threads?
What is the process of learning
This too has many similar threads (and school failed to prepare you for life).
If so what am I suppose to remember
"Try to" "understand" everything (not remembering, but understanding). You will automatically remember the things that you frequently need. And you'll remember where you can look for the rest, because this too will be needed somewhat frequently.
3
u/Available_Safe1818 11d ago
I google things all the time while programming. Look up the Java api, google for "Java 17 API HashMap" to see the methods you could use.
1
u/TheCaptainSly 12d ago
I remember the syntax. And I know a few objects that can do what I wanna do. if it's anymore complicated than that, or requires an algorithm, well that's why we have the internet, stack overflow and a few other places should set you right.
Remember the syntax and a few common objects. Everything else is documentation and a few websites.
1
1
u/serge-mv 11d ago
You remember the basics, core ideas and what you use frequently. You look up whatever is needed if you cannot remember it or find with intellisense.
1
u/RevolutionaryRush717 11d ago
Real Programmers don't write documentation. The source code is obvious. ;-)
2
u/WorthlyBread 11d ago
So this is the origin story of this huh? https://programmerhumor.io/programming-memes/only-god-and-i-knew/
1
u/RevolutionaryRush717 23h ago
Ah, nice! :-)
For clarification: the origin afaik is an essay by Ed Post, reproduced many places, eg., https://homepages.inf.ed.ac.uk/rni/papers/realprg.html
1
u/VibrantGypsyDildo 11d ago
> Do developers all just remember program
We must know all the quirks of our main programming language(s) just to get a job.
> or use documentations to write codes
On top of that, we use documentations all the time.
1
u/Far-Bullfrog161 10d ago
Your friend is right, and after many years writing Java I still have the docs open most days. What's worth keeping in your head is the core language and the ideas: how classes and objects work, what an interface is for, when to reach for a List versus a Map, how exceptions flow, and how to read an error message and stack trace. The exact method names and parameter order are what you look up, usually in the Javadoc for the class or just through your IDE's autocomplete, and they stick on their own once you've used them a few times. A good habit is to try writing something first, then check the docs when you hit a wall, rather than reading the docs end to end. Since you've finished a CRUD program, a natural next step is to connect it to a real database with JDBC and SQL, then rebuild it as a small Spring Boot REST API. Along the way you'll keep running into collections, generics and streams, which is the best way to actually learn them.
1
u/Pale_Height_1251 10d ago
Documentation is there to be used.
Google for the documentation you need for the problem you are solving.
If you want to learn Java, Google how to learn Java.
1
u/Sure-Passion2224 10d ago
Up until I retired in August it was normal for me to remember the general structure and format but back it up with documentation. In addition to languages being big and complex things, any business application you will support will have it's own utility classes and methods. Documentation of how things work maintained in a logical and accessible form is critical when there are personnel changes. If your processes, architecture, and APIs are well documented that alone can cut training time in half.
1
u/Sure-Passion2224 10d ago
Active languages in current use continue to undergo active development. New language features are introduced, and old patterns get deprecated. While there are certification tracks that have value it is more important to just be comfortable with querying and finding answers and examples for the language version in use.
Java 8 deprecated a lot of Calendar Objects because they were buggy and a better temporal date/time architecture was introduced. As a result, I spent close to 6 months incrementally refactoring date/time processes in multiple applications.
1
u/DTCreeperMCL6 10d ago
Bit of both. Its mostly concepts in your head and then some idea of how to structure it, but you will frequently have to refresh it.
1
u/denerose 9d ago
Yes and no. Do you remember other languages you’ve learned? Do you remember how to do your job? Do you sometimes have to look up a recipe after not cooking for a while?
It’s normal to use docs, linters, compilers and other tools to get code to work. It’s also normal that you remember things you do often.
Being able to read code is more important than remembering how to write certain specifics. But if you can read, you can generally write even if you do need a spellchecker more often while writing.
1
u/Ham_Pervert 9d ago
weve memorized all documentation going back to the beginning of time.
if you lack this knowledge, you are too late.
1
u/cyrixlord 9d ago
It's more like, you know what you have to do, and you sketched it out as to how you would do it, now you fill in the pieces and if you get stuck you refer to the internet and documents to see how someone else did that certain thing/piece then make your own version and test it with the rest of your code and build it in pieces until you get the software into a viable state. You also research the methods for doing certain things like, 'do I use a record? An array? How did they get this registry key..'
•
u/AutoModerator 12d ago
Please ensure that:
Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions
You include any and all error messages in full - best also formatted as code block
You ask clear questions
You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.
If any of the above points is not met, your post can and will be removed without further warning.
Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.
Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.
Code blocks look like this:
You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.
If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.
To potential helpers
Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.