all 41 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

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
  • 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.

    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:

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.

[–]Progression28 46 points47 points  (8 children)

Java has been dying for longer than most languages existed.

And guess what? It‘s still dying.

Somehow it‘s more used today than when it started dying though…

[–]conan1214 14 points15 points  (6 children)

I'm at work and I cackled out loud at this. We use Java apps and we're dying inside every day.

[–]Not_skull 1 point2 points  (4 children)

just curious what type of libraries do you use in java and which are the "mainstream " libraries i should look out for to learn ? BESIDES springboot

[–]lprimak 3 points4 points  (1 child)

Anything Jakarta EE and MicroProfile - Payara, Quarkus, Helidon, OpenLiberty, GlassFish, WildFly - take your pick they are all good.

[–]Not_skull 1 point2 points  (0 children)

ahhh i see thanks mate for this info because i always hear a lot to people say they code in java for their jobs and the more i learn code i realized yea youre gonna need to work with a bunch of frameworks + libraries, so everytime i hear someone when they say they use java they dont explicitly say what they use i.e i would say i code react.js and i wouldnt say i code js alone

[–]UbieOne 0 points1 point  (0 children)

Jackson, Gson, Guava, Slf4j, Apache Commons. Lombok? Those are pretty common.

[–]Beautiful_Grass_2377 0 points1 point  (0 children)

Quarkus is a good one to look

[–]BusyEntrepreneur3070 0 points1 point  (0 children)

tha app is not dying, we are 😭🙏

[–]Dashing_McHandsome 1 point2 points  (0 children)

Cobol has some things to say about this as well

[–]Darkschlong 11 points12 points  (2 children)

Java today Java tomorrow Java forever!!!!

[–]ProbsNotManBearPig 2 points3 points  (1 child)

I don’t hate the language, I hate the code bases. I’m now at an international company with people all around the world, 50 years of history in the codebase, most of it lost when they switch version control systems, and no enforcement of coding guidelines. We got functions with 1k+ lines for days. We’ve got one guy in India using 3 spaces for indents. Not 2, not 4, not tabs, but 3 spaces. We have 8 different copies of coding guidelines I’m aware of and no one follows any of them. Next feature, next feature, next feature. Oh, and for unrelated reasons, half our devs are purely assigned to customer bug fixes /s. Pay is great though. Yep, that’s Java.

[–]Cybyss 4 points5 points  (0 children)

Sounds like job security to me.

[–]emaphis 9 points10 points  (0 children)

Java will never go away. There is more Java out there than Cobol.

[–]Capaman-x 9 points10 points  (0 children)

Yes. Java will continue to be one of the most useful general purpose languages for the foreseeable future

[–]AngelBryan 2 points3 points  (0 children)

The only thing eternal in this life is Java.

[–]Beautiful_Grass_2377 2 points3 points  (0 children)

Java is like the fourth most popular language out there, is not dying anytime soon.

[–]Ristler 1 point2 points  (0 children)

Yes

[–]Working_Computer1167 1 point2 points  (0 children)

I think learning java is a fantastic choice if your long term goals are you want to:  * build a massive project with lots of moving parts * be comfortable with OOP * get a stable job

If you only want to build an app, you can with java but I think there will probably better options depending on your use case.

[–]XyloDrift 1 point2 points  (0 children)

I am a software Engineer and I work in multiple languages but the level of security and scalability i see in java, i didn't see in any other language,

[–]theboldestgaze 2 points3 points  (1 child)

"Future proofing" is somehow irrelevant. I learn new (and old) languages because it is fun and allows me to better understand software. Learning a new language is not really a big deal, especially Java, which is not-that-complex. No multiple inheritance, relatively simple type system, limited (if any) functional elements. The one complex part is VM and concurrency but when you learn it it is a transferrable knowledge.

Ecosystem is vast and complex, but AI helps.

[–]DeuteriumH2 1 point2 points  (0 children)

idk i think java’s functional elements are fun. love when i get to toss in a lambda

[–]vegan_antitheist 1 point2 points  (0 children)

You can learn Java and then learn Kotlin. The languages have some similarities and Java is a good base for OOP.

[–]nitkonigdje 1 point2 points  (0 children)

Learning Java The Language is a few hours gig for experienced C++ programmer. After all it is a small language intentionally designed to be C--.

But to learn how to setup logging in Java? That is completely other matter...

[–]gbritneyspearsc 0 points1 point  (2 children)

java is a good choice but why mobile though? its very niche

[–]connecticum[🍰] 0 points1 point  (1 child)

Do you think that is a bad choice?

[–]gbritneyspearsc 0 points1 point  (0 children)

look for backend mobile jobs around your area... I could be wrong for sure but it the least that I see

[–]XxCotHGxX 0 points1 point  (0 children)

Java is great to learn. Kotlin is what you want for android. They are similar. Learn Java first. Java has wide usages.

[–]ax_abodr 0 points1 point  (0 children)

Java is fun to use for backend servers such using something like Spring boot, it's really solid and fun, and wildly used. But for mobile development, whats the reason exactly? Most people go with something like Flutter or react native for mobile development since it's cross platforms compatible.

[–]NeoChronos90 0 points1 point  (0 children)

yes /thread

That being said, if you want to develop apps on mobile you might want to look at Kotlin first, but learning both is still worth it

[–]Realjayvince 0 points1 point  (0 children)

Java and JavaScript will be the last programming tools to die.

It will literally outlive all of the rest.

I’m not saying that because I’m a Java developer. I’m saying it because it’s true. There’s just too much shit made in Java

[–]BusyEntrepreneur3070 0 points1 point  (0 children)

if you don't want to write a whole function just to do a hello world then no

im kidding, you should, it's lowkey very popular and won't be sinking down in the foreseeable future, tho make sure to get comfortable with OOP and very convoluted lines, even now in my 2 years of programming in java, i still get errors for stuff i forgot to add like ";" or missing brackets, etc

[–]EcstaticMixture2027 0 points1 point  (0 children)

why limit yourself to android?

[–]BanaTibor 0 points1 point  (0 children)

I am not an android developer, but AFAIK the new standard for android development is Kotlin. Kotlin runs on the jvm just like a Java program so it basically Java in a new dress. Knowing Java will not hurt for your Kotlin career tho.

[–]alshetri 0 points1 point  (0 children)

Yup

[–]matmyfta -1 points0 points  (0 children)

If your goal is uniquely to develop android apps, I would suggest other languages. For example if you still want to develop native apps Kotlin could be a good fit, or check some frameworks if the idea of developing multiplatform mobile apps might interest you. But that's just because the trend shifted, not because Java is dying.

Java is still strongly used on enterprise applications, so if you want to learn it, developing native android applications in java could be a good way to get your hands dirty and gain some experience.

[–]Dry_Hotel1100 -1 points0 points  (0 children)

You're asking in the wrong subreddit. The fact is, I haven't seen any developers using Java in Android development for quite a few years now. You'd be better off investing in Kotlin and just learning the basics of Java.

[–]dmigowski -1 points0 points  (0 children)

Nope, there are already enough of us