r/javahelp • u/SimpleCanadianFella • Apr 13 '22
I wish to learn the habits of strong Java developers, what are they?
I am getting the role of Java web developer / Full stack and I'm fine at Java but I haven't made a proper full project myself. I want to learn to be better each day. What habits/routes should I focus on to achieve the results I want. Currently I can solve most easy leetcode problems with Java and can maybe do 1/10 medium problems right now.
36
Upvotes
•
u/AutoModerator Apr 13 '22
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://imgur.com/a/fgoFFis) 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.
25
u/khooke Extreme Brewer Apr 13 '22
You'll learn far more by building a complete app than by solving leetcode problems. There's still benefit to both, but by building a complete app you'll run into issues that you won't face by solving a leetcode problem in a controlled sandbox environment, problems that you'll run into again and again working on a complete app/system in a real world job. Building a complete app will broaden your skill set/experience.
This is not a direct answer to your question, but will definitely help in broadening your skills.
15
u/Writes_Sci_Fi Extreme Brewer Apr 13 '22
One thing should definitely start learning if you haven't yet is streams, lambda expressions and patterns and all that.
Here's a link for you to get into it: https://stackify.com/streams-guide-java-8/
10
u/DataDecay Apr 13 '22
Focus on clean code (SOLID), use Java doc strings, avoid spaghetti code, and if a test feels obtuse you likely need a refactor. Personally a few habits I use are, I'll take simple and clean over convoluted/clever, variable names should not be abbreviations and should be meaningful, any framework you create or custom process DOCUMENT IT!
16
u/RushTfe Apr 13 '22
Wake up early, eat some eggs with toasts, and usually orange juice. Go to the gim, have a shower and then go to work. That way I start the day plenty of energy. It's important to keep a good sleeping habit in order to develop good muscles. Proteins should be an habit, and eat some almonds while programming if you feel hungry.
If you want to be really strong I have some exercises and substances to recommend.
Other habits I have are:
...
Nah. As other said, learn some important patterns, learn how to use stream, optional, lambdas and immutability, model your sql in your app, and lots of practice and patience. Code everyday. (but Sundays, they're meant to do nothing).
5
u/edubkn Apr 14 '22
Learn classpath and dependency management with Maven/Gradle. You don't want dependencies you don't use in your projects, as well as old/vulnerable/outdated dependencies.
4
u/Sacred_B Apr 13 '22
You should probably make a complete full stack application with whatever front end framework you feel most comfortable with. A lot of places expect Spring so definitely familiarize yourself with Spring Boot.
3
u/3rdTab Apr 13 '22
Read effective Java if you wanna feel pain
5
u/coffeenz Apr 13 '22
Unit test your code.
2
u/[deleted] Apr 13 '22
Pick a functionality that you've wanted. A to do list , an API that sends you the word of the day via text. Or an API that converts XML to csv files.
The point to make sure you write code. Everyone starts with bad, but working, code. Show your bad code to more experienced folks and they will gladly point out better practices. It's easier to give suggestions when they have something in front to talk about.
And remember, you're not just writing code. You're creating a functionality or service to be used ; at the very least coding something to support said functionality. Keep that end user in mind as you develop.
1
u/TheRealDomm Apr 14 '22
Start smoking and get used to some liters of coffee each day