r/learnjava • • Apr 07 '22

Is a good choice Java in 2022?

If yes wich path ? Microservices > Unit Tests > Spring ? I am new in programming and i start with Python and Flask but i really like the Java Structure

55 Upvotes

51 comments sorted by

•

u/AutoModerator Apr 07 '22

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://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:

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.

34

u/Domo22lol Apr 07 '22

Yes java good start learn Oop and java basics and every other languages than start to be easier to learn. Only after you good with java you take a look at frameworks spring boot or some other. Depending on what type of project you want to work on. Who ever said java is bad choice is only salty because they can't understand it.

9

u/bananal_fligh Apr 07 '22

Java receive a lot of haters, that's why I catch myself asking if is or not a good language, thanks man

5

u/jdm0214 Apr 07 '22

I wonder if they hate because it is difficult for them? Java is widely used for many applications, I highly recommend it.

3

u/bananal_fligh Apr 07 '22

Thanks for open my mind

14

u/Domo22lol Apr 07 '22

Java is my first language and if I would start learning again I would start with java. My opinion. But who ever says it's bad they don't know what they are talking about.

14

u/MeImportaUnaMierda Apr 07 '22

Yes, Java is a very good choice. I‘d actually start with Vanilla Java first including some advanced topics such as networking or multithreading. Before you hop into Spring (Boot) I‘d also look into the basics of the web and especially how Rest Apis work. Unit testing can be done somewhere in between, maybe not at the beginning but as soon as you feel confident with the Java basics

3

u/bananal_fligh Apr 07 '22

I will start and domain the basics before go to some framework, thanks man, appreciate it

2

u/krisko11 Apr 07 '22

Great advice, really solid comment, thanks 🙏

9

u/[deleted] Apr 07 '22

Java is a great choice, still very popular. Your lists of subjects to study is a bit weird…first get used to the syntax and such, then db > rest apis > spring

1

u/bananal_fligh Apr 07 '22

Haha i want work with microservices, thats why i put in the first place, but thanks man, I appreciate the help

3

u/[deleted] Apr 07 '22

Why do you want to work with micro services?

2

u/bananal_fligh Apr 07 '22

Because i think there is a area that should be growing in the next year's, together with the cloud computation

2

u/[deleted] Apr 07 '22

Fair enough, seems like a good mindset. Good luck man.

1

u/bananal_fligh Apr 07 '22

Thanks brother, now it's time to put my brain to work haha

2

u/[deleted] Apr 07 '22

The hard part :) I suggest checking out Java brains on YouTube. He has a ton of good content, especially his rest api course.

12

u/[deleted] Apr 07 '22

Look at udemy courses. First learn the basics such as loops, polymorphism, inheritance etc. Then data structures and algorithms. Do Unit testing while you learn. Then a framework like spring. I’m about to get my associates in C.S and we did all that except learn a framework.

1

u/bananal_fligh Apr 07 '22

Thanks man, I will start with the basics stuffs and pretend take the OCA Java Se

4

u/Tommy_TZ Apr 07 '22

Java is a great language to learn with since it's very structured. Ultimately languages don't matter that much. I have to use C# and VB at my job and I'd never really used them before (I did most of my learning on Java and Python). What's more important is learning HOW to program. Control flow, algorithms, logic and problem solving.

1

u/bananal_fligh Apr 07 '22

Thanks man, I'm trying do some codeforces and becrowd exercises

3

u/voraciousBeaver Apr 07 '22

Java is always a good choice, imo. There are many folks saying that Java is dying. However, it has been 'dying' for the last 10 years or so. Anyways, it's a good start even if it won't be your primary language in the future. There are many JVM languages like Scala, Kotlin, and so on that could be easily utilized after learning Java Core.

1

u/bananal_fligh Apr 07 '22

Thanks man, I think if you now Java you can write in any code

2

u/xRageNugget Apr 08 '22

Java, Rest, Spring/Springboot and you are set.

1

u/bananal_fligh Apr 08 '22

That's sound like a good way

2

u/__Obscure__ Apr 08 '22

First step in finding a job is making a good impression in your resume, your cover letter, and your online communications. First step to mastering those? Good grammar.

  • "Which," not "wich."

  • Don't put spaces before question marks. You got that? Notice the difference?

  • I started with Java too. First programming language I learned in college. (When talking about your past, use past-tense verbs.)

  • Always capitalize the word "I."

1

u/bananal_fligh Apr 08 '22

English is not my primary language, this is a skill there I pretend evolve... Grammar is the part more difficulty to me

1

u/[deleted] Apr 12 '22

Another important thing in getting a job is personality, for example not being a pedantic asshole on social media accounts when they're going to be easily found based on information in your résumé

1

u/__Obscure__ Apr 12 '22

You know, one important piece of personality is taking criticism well. And for crying out loud, that comment wasn't even directed at you! Do you feel offended for OP's sake? How useless is that??

1

u/[deleted] Apr 12 '22

I'm just offering you some constructive criticism, no need to go for my throat. Just know that potential employers will probably find this account and your GitHub. Companies are looking for team players, and being uselessly pedantic on reddit and naively entitled on GitHub doesn't reflect well on that.

1

u/[deleted] Jul 12 '22

You do seem like a cunt though.

1

u/__Obscure__ Jul 13 '22

Gee, thanks. It's a blessing and a curse.

75

u/greglturnquist Apr 07 '22

Java is always a good choice.

2

u/sext-scientist Apr 08 '22

How so?

The way I look at Java currently, it seems to be becoming more of a 'teaching language' for use in academics. Java is definitely commonly used, but in my experience it's in a sense of: "We need to use Java because something written 10 years ago uses it, and we depend on that."

That's just my arbitrary personal bias, feel free to enlighten it, or point out the cool new things happening in the language.

1

u/greglturnquist Apr 08 '22

What do you prefer over Java?

2

u/sext-scientist Apr 08 '22

C++, TypeScript, Python. In that order.

If I'm writing new code for JVMs it's going to still be in Java though. The Koltin bandwagon is getting very popular for new projects, but I'd prefer to wait on that one.

2

u/Alerdime Sep 04 '22

writing c++ is suicide. It's an overkill for the most part.

3

u/Serializedrequests Apr 08 '22

It's guaranteed employment, but I almost wish I didn't know it as some java stuff can be quite dreary, but I keep getting work so there's that at least. There's a java way or library to do everything, some are quite nice, some are terrible but seem to persist due to total ignorance that life could be better (java people only doing java).

1

u/quan194 Apr 07 '22

well Java is still very relevant. So if u like it then why not

1

u/bananal_fligh Apr 07 '22

Thanks 🙏🏻

2

u/[deleted] Apr 08 '22

Depends on your local area of work. I work for a company that uses Java but the online job market is packed with c# dev or JavaScript full stack dev. But I mean if you learn all the basics of Java and get good at it, you’ll know where you wanna go from there. Spring framework is probably the most useful if you wanna job as a Java dev.

1

u/ultimateWave Apr 08 '22

I love Java.

Use Java 11+, JUnit for unit testing, and Dagger for dependency injection (done at compile time rather than runtime like Spring).

Java is a lot more organized and easier to code with than Python imo

-2

u/Bitter_Boat_4076 Apr 07 '22

Maybe kotlin might be more smooth as transition.

1

u/bananal_fligh Apr 07 '22

Why do you think that? Thanks for the tip

1

u/Bitter_Boat_4076 Apr 07 '22

The syntax is somewhat similar to python. Less {} to think about, less verbose and easier to read. Many features are available out of the box (singletons for example) and in general the language feels way more modern than java, imo.

1

u/bananal_fligh Apr 07 '22

I never see a code in kotlin, thanks man, I will look some kotlin codes

1

u/bananal_fligh Apr 07 '22

I never see a code in kotlin, thanks man, I will look some kotlin codes

4

u/[deleted] Apr 07 '22

[removed] — view removed comment

1

u/bananal_fligh Apr 07 '22

I have some curiosity about mobile development, what do you tell me about kotlin and jobs opportunities? In my country we don't have many ways for mobile