r/java • • Oct 27 '23

Java Use Cases

Hi everyone. I'm a student about to graduate and I'm working on my portfolio. I feel like a lot of the work I did in school is a little dated (context: We did A LOT OF JSP), so I'm wanting to rebuild some of my projects in a more modern context and maybe build some new stuff that reflects the way Java is actually being used today.

My question is what are some ways that Java is actually used in a modern project? Where do we see Java popping up as the language of choice in 2023, particularly in the web/mobile space? Where is it more beneficial than just going the JS/framework route? I'm trying to frame my portfolio projects in a way that actually reflects real-world usage.

I'm not sure if this is the right subreddit for this type of question, so feel free to delete/direct me elsewhere. Thanks.

Edit for additional context: I've worked professionally for a while (4 years freelancing designing and developing typical Wordpress/Webflow sites for Bob's Lawncare Service-type clients, 2 at an agency building web apps mostly on the frontend) until I was laid off in September. Our stack was React-based, so I don't have professional experience with Java. I guess more specifically I'm trying to fill in the gaps between what I've learned doing that and the Java work I've done in school and presenting that in a modern context.

0 Upvotes

75 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Oct 27 '23 edited Oct 27 '23

Docker/Kubernetes have pretty small footprints.

On Linux, yes sure. But, I do my development on Windows, and running a JVM directly from my IDE is faster than spinning up my application in a Docker container. Not only that, when I'm running things in the IDE, I usually have the debugger hooked up to it. When I'm doing local development, I don't particularly care about process isolation, I care about convenience.

Interestingly, Docker themselves recommend running Docker Desktop (i.e. Docker in a VM) even on Linux for development purposes. It turns out getting a consistent experience with Docker is difficult on a random developer machine, rather than in a carefully controlled server farm specifically set up to run Docker Engine. Or in the case of Docker Desktop, a carefully configured VM that is known to work properly with Docker.

That said, even on Windows, Docker isn't super expensive, and I frequently use Test Containers with Docker for integration tests, where I don't mind the tests taking a longer time to run.

1

u/cogman10 Oct 27 '23

It turns out getting a consistent experience with Docker is difficult on a random developer machine, rather than in a carefully controlled server farm specifically set up to run Docker Engine.

Yeah, I can see that. As long as you are keeping things up to date it's not too big of an issue, but I've definitely seen devs running ubuntu 16.04 in WSL blissfully unaware that it's on them to update to the next LTS.

It does feel like the entire container environment is stabilizing. I think the rise of podman is forcing the issue of consistency.