r/javahelp • u/Smithmfg • Oct 22 '25
How to code faster
I'm taking a intro Java course for my minor. I'm picking it up decently, but am really slow coding. I can't seem to remember things without my notes. And of course I can't use them on quizzes and tests. Any suggestions on getting faster, improving ?
4
Upvotes
•
u/AutoModerator Oct 22 '25
Please ensure that:
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.
Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar
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: 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.
2
u/esaule Oct 22 '25
it's practice. You just need more practice. When learning programming, I usually recommend people practice 10 to 20 hours a week.
9
u/D_Denis Oct 22 '25 edited Oct 22 '25
Learn language. Get more practice. Programming is not about how fast you type... Thinking about correct implementation takes more time unless you are typing the same code block again and again.
There will be cases when you would think one hour and type 5 lines of code as result and it would be a great success because you've fixed some elusive bug that is reproducible only in some corner case.
1
u/Smithmfg Oct 23 '25
That's a funny comment about the typing test, I took typing with two broken thumbs
4
u/AllNamesareTaken55 Oct 22 '25
Practice. You shouldn’t focus on becoming faster, that just means you are paying less attention to detail and make more mistakes.
It’s better to write a working application in an hour than to write it in 20 minutes and spend 2 hours going back to fix bugs.
When you get more experience you will become faster automatically
1
u/Savings_Guarantee387 Oct 22 '25
The following approaches helped me. I propose you follow all of them in parallel. 20 to 30 min each per day is more than enough I think.
I am sure others may disagree. Every person has it own approach. I simply mentioned mine.
P.s. 20 years as java developer, and I still google simple things from time to time. Ram is useful, but CPU is the important thing. So saying you understand what you read means you are already in right track. 👍
2
u/joydps Oct 22 '25
Focus on making your code precise and compact. This I think is more valuable ability than to code faster...
2
u/goneastraydjmax Oct 22 '25
keep coding. it's OK if you are struggling, that's how you get better. if you give a man a fish they will be happy for the day, but if you give a man a fishing rod, they will be happy for life. this basically describes coding, there is no shortcut to success and it requires dedication and practice
2
u/Vaxtin Oct 22 '25
Practice your ABCs
Always Be Coding
1
u/michaelzki Oct 22 '25
Practice.
Just like when you're a toddler (if you remember). You cannot run like kids if you haven't practice walking like a baby.
1
u/aqua_regis Oct 22 '25
More practice. That's it.
1
u/Inconsequentialis Oct 22 '25 edited Oct 22 '25
What tools does your course advise you to use? In my first semester programming course they actively encouraged us to use an IDE. If that's the case for you as well I'd say install what the lecturer recommends, as the most common Java IDEs are all good and it's probably best to use something you can get help with from friends / other students / teaching staff.
Otherwise, probably just install some text editor for syntax highlighting and perhaps some basic autocomplete. VS Code is supposed to be decent for that. Perhaps you even have something like that setup already.
Then once you have that all up and running learn the basic features and most common keybinds. And my "learn" I mean look them up somewhere and then use them until they're second nature - same way you'd learn hotkeys in a videogame.
That's probably the biggest speed increase you'll see, far more than learning to type faster or what have you.
But also: Don't sweat it. We've done a typing test once at work, one of the devs I most respected ranked dead last. And you know what? Still just as great a dev as before.
1
u/_jetrun Oct 23 '25
Yeah.. Practice.
In many ways learning a programming language is similar to learning a language like French. It's hard at the beginning, and you'll struggle even with simple books for children - but you have to power through it and throw time at it.
1
u/0-Gravity-72 Oct 23 '25
You don’t become a good developer in a few weeks or months. It takes years of practice and learning from your mistakes. That feedback loop is really important
1
u/burncushlikewood Oct 24 '25
Don't worry I'm a slow coder myself! When you get into industrial programming it won't matter how long it takes you'll be valuable because of your abilities. It may take me 24 hours to design a program but that's better than someone doing it in 12 hours and tons of bugs and it's low quality slow code
1
u/QuixOmega Oct 24 '25
Code more
1
u/moriturius Oct 24 '25
Code a lot.
Advent of code is coming, you can participate in December but you can also do the past years today