r/learnjava • • Oct 29 '20

What are some technologies a Java developer must know?

I know it's mostly job specific but while seeking job posts, I see some technologies, "micro" frameworks and services are demanded frequently in requirements like Git, Hibernate, JUnit, kafka, aws etc.

I want to work on backend development, studying Spring Framework right now.

80 Upvotes

17 comments sorted by

107

u/snot3353 Oct 29 '20

HTTP and how to develop a web service. Other related concepts like REST and JSON. Having experience with libraries that facilitate serialization between request/response bodies and objects like Jackson or GSON are almost always useful (Jackson is the default in Spring and highly used).

Basic SQL concepts and how to use an ORM or at least create your own data access layers at a basic level. How to be secure when doing so and avoid simple but very dangerous SQL injection vulnerabilities. Also having some experience with other various data stores would be good, many NoSQL and key/value data stores have become very popular and useful and you may find yourself writing services that use them exclusively or in conjunction with relational databases. Check out MongoDB or DynamoDB, etc.

The difference between Asynchronous and Threaded web servers and web frameworks. For example, in Spring you can now choose between Webflux (built on top of Reactive JVM / Reactor) and the old-but-reliable standard Spring Framework that is built on top of standard threads. Understand what the difference is, what the potential benefits and downsides to each are.

Testing. Learn the difference between unit and integration tests and learn about the various frameworks and tools that get used. JUnit5 + Mockito + a good assertion library like AssertJ is a good combo. Learn about other various HTTP mocking tools such as okhttp's MockWebserver (https://github.com/square/okhttp) or Spring's MockRestServerService.

Dependency Injection. If you already are working in Spring you should have some ideas here but learn how it really works deep down and what the benefits are. Understand scenarios where being able to swap between implementations of something during test vs runtime or in different environments can be made possible using just wiring and configuration. Learn how to inject environment specific configuration using these patterns as well.

Cloud providers. Learn how to deploy and maintain a Java service in a container in AWS or another cloud service. Learn how to develop and deploy serverless Java functions using something like AWS lambda.

Security. Learn how to secure a web service using something like a JWT access token or some other mechanism.

Source control. Learn how to use Git to maintain your code and collaborate. Learn how to maintain your secrets and other secure information in a way where it does not get exposed in your repository. Learn about various patterns like Git Flow or GitHub Flow or Trunk Based Development.

HTTP might not always be the right approach. Learn other ways your systems can communicate. Look into things like messaging/events and web sockets (still SORT OF http but has more built on top of it).

There's surely more, that's just off the top of my head. If you really want to learn, build something and then find the tools to support that something. Just randomly trying to dig into each of the above topics might not be the right way to approach it if you really want it to stick.

3

u/scarofishbal Oct 29 '20

Such a great advice, thank you !

7

u/[deleted] Oct 29 '20

Amazing write up, thank you!

2

u/Overlord-Xert Oct 30 '20

I think I love you a little bit.

Thanks for such a fantastic and comprehensive overview! Seriously helped me figure out where I'm going next.

-3

u/mikezyisra Oct 30 '20

Not everyone who does Java wants to be a web developer

2

u/snot3353 Oct 30 '20

Did you read his post? He explicitly mentions things like Hibernate and backend development and Spring. Those are generally related to webdev.

12

u/heihei-cant-swim Oct 29 '20

Each of the technologies you’re listing fall into a inherently different category - Git is a source control management tool, JUnit is a unit testing framework, Hibernate is a domain-mapping framework, etc.

If you research each a little bit, you’ll find some learn really well together - JUnit & Spring, for example. Others like Kafka and AWS won’t provide the same kind of learning experience because they’re both very different things.

Spring is one of the most widely used Java frameworks today. Java EE being the other. Spring’s use case fits more a more micro-services oriented architectural designs, while the general Java EE use case would be a scalable monolithic application. That being said, either one of these frameworks would be a good place to start, just understand what the use case for each is and tailor your learning more towards what you’re interested in.

However, if you want my 2c as senior developer who spends most of their time mentoring and teaching junior devs, I would recommend starting with Spring & JUnit, while using Git to manage your code within whatever code repository you decide to store your code in. Start small and make sure you have an understanding of how the tech using works before moving on to the next item on your list. A good learning road map might look something like:

  1. Study Spring & create a vanilla Hello World Spring Boot application and run it locally

  2. Learn Git to commit your code to a repository of your choice and effectively manage the code base your learning on

  3. Continue learning Spring, but begin to throw in JUnit as a unit testing framework, adding unit tests for each new piece of Spring functionality you learn

  4. If you’re confident, study AWS services like EC2 that allow you to take Spring app with test coverage & deploy it to the cloud (bonus points if you can configure a GitHub workflow to do it for you)

Keep in mind even just these 4 steps won’t happen over the course of a day or even week. It’s a slow grind, but it’s worth it in the end. Have fun!

Edit: Fixed formatting

1

u/scarofishbal Oct 29 '20

Thanks a lot for precious advices and road map! Sometimes i lost and i don't know what i am doing because i am self studying and didn't worked on a real world project. These advices help me to open my mind.

1

u/shauns1988 Oct 30 '20

Thanks, saved. I'll come back to this once I've got a better understanding of java.

3

u/Interstate75 Oct 30 '20

Maven or (Gradle) and of course Relational Database.

1

u/manysoftlicks Oct 31 '20

Super late to the party, but I recently looked at that Hyperskill lists and I think it's an excellent general purpose view for a Java developer!

Hyperskill Knowledge Map

0

u/[deleted] Oct 30 '20

Mockito

-4

u/warpedspockclone Oct 29 '20

Nobody is saying Java?

Also, Kotlin!!!!

-6

u/AnotherRichard827379 Oct 30 '20

Java FX, be familiar with 2-3 different IDEs, know how to execute code/jars from a command line, JUnit tests.

I’m not sure if this is exactly what you were looking for but it’s basic stuff that everyone should know but a lot don’t.

3

u/just3guyspodcast Oct 30 '20

Why Java FX?

-2

u/AnotherRichard827379 Oct 30 '20

I think everyone should have experience with coding a GUI, if you already know Java, JavaFX seems like a logical choice.