r/learnjava • u/[deleted] • Jan 01 '23
LifeProTip: Don't learn modern frameworks before old ones.
I always thought learning the newest frameworks would give me the best market value as a programmer and turns out most projects out there are legacy code written with old frameworks. So, knowing SpringBoot gave me nothing since it is a too abstract layer of abstraction so I could not easily learn other frameworks since it was too sofisticated, not enabling me to go deeper.
You may ask why companies have old projects: it's expensive to upgrade them, requiring large teams and long time, even remaking the whole thing. It's like videogames: remasters are expensive and not always works.
So, instead of learning SpringBoot or Java 19, try to master Java 8 versions of old frameworks that are very used. For example, Spring 3. Also, don't panic for learning old stuff because that old stuff is bellow the newest one since we build code on top of old one to make things easier (frameworks are libraries at the end of the day).
2
u/8igg7e5 Jan 02 '23
You definitely should learn what is different between Java 8 and newer editions of Java.
As several years of surveys have confirmed, while Java 8 is very much in use, it is falling steadily. Additionally, for surveys that ask, it's now evident that many teams with Java 8 legacy projects also have newer projects using newer editions (often much newer editions, not necessarily limited to Oracle LTS releases).
I do agree that you don't need to chase the the bleeding edge too aggressively though. It's fine if your tutorial is in Java 8 and that you learn of newer Java features later. But be prepared for the fact that Java is picking up the pace on language change and there are some big changes coming (though the timeline's a little hazy).
For framework choice. Spring Boot is the dominant choice with Spring MVC following. I wouldn't be concerned about learning Spring Boot first (over learning the rest of the Spring framework itself).
Regarding framework versions. Spring 3 was released a decade ago and end-of-lifed over 6 years ago (for OSS), if you're learning this to pursue jobs with projects that still haven't moved on, you're doing your career a disservice. They're not going to help you grow with modern, currently supported frameworks if they're still using Spring 3.
Managing tech-debt to stay inside the support windows of platforms, application frameworks and component libraries is a sign of a healthy project.
The currently supported editions are Spring 5.3 (supporting Java 8+) and the recently released 6.0 (requiring Java 17+). If a project is on 5.x and they're actively working on migration to 5.3 or 6.0 then that might be reasonable but beyond that I'd question limiting my early career growth by learning dead technology.
https://snyk.io/jvm-ecosystem-report-2021/ (from data collected start of 2021)
1
u/coloredgreyscale Jan 02 '23
Don't learn specific frameworks, but general patterns / techniques.
That way you can more easily apply your knowledge to different frameworks and languages.
1
u/AutoModerator Jan 01 '23
It seems that you are looking for resources for learning Java.
In our sidebar ("About" on mobile), we have a section "Free Tutorials" where we list the most commonly recommended courses.
To make it easier for you, the recommendations are posted right here:
MOOC Java Programming from the University of Helsinki
accompanying site CaveOfProgramming
accompanying site NewThinkTank
Hyperskill is a fairly new resource from Jetbrains (the maker of IntelliJ)
Also, don't forget to look at:
If you are looking for learning resources for Data Structures and Algorithms, look into:
"Algorithms" by Robert Sedgewick and Kevin Wayne - Princeton University
Coursera course:
Coursebook
Your post remains visible. There is nothing you need to do.
I am a bot and this message was triggered by keywords like "learn", "learning", "course" in the title of your post.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
•
u/AutoModerator Jan 01 '23
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:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}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/TranquilDev Jan 01 '23
I would agree...but with some caveats.
It's situational, that being said I had a similar experience. I learned Java in college, and barely touched a framework. My first year working as a dev I used the old .NET webform application framework. When I started looking around I realized - there wasn't much of a market for devs with experience in that framework.
My next job was working with an old Frankenstein's monster of a project written in PHP 5.6. I was expected to take one of those projects and rebuild it but I was given some freedom in how I did so. So, I taught myself Symfony and it turned out really well.
Five years into my dev career and I'm slowly moving my way back to Java.
So, learn the language itself, learn how to do things from scratch in that language. And if you have the time I'd learn a modern framework. Because, while you may find yourself working in a legacy framework, or no framework at all. You aren't going to know till you get there. And knowing the fundamentals of the language is better than knowing any framework at all starting out.