r/learnjava • • Jul 18 '24

Should I go with Java?

I am a 2 years experienced C# developer. I have learned java in my university. Should I learn/go with Java or continue with C#?

7 Upvotes

44 comments sorted by

•

u/AutoModerator Jul 18 '24

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.

12

u/0SRSnoob Jul 18 '24

Whichever one you enjoy or whichever one gives you more opportunities where you’re located

29

u/borankux Jul 18 '24
  • Programmer: Hi

  • Python: Hi ?

  • JavaScript: whatever

  • CSS: I am not a language

  • HTML: Yes you are, like me

  • Go: sup?

  • C#: Hello? How are you doing ?

  • Rust: cunt!

  • C: Fuck you !

  • C++ I apoligize for that...

  • Java : Hi, nice to meet you ? You look so good. It's so nice to meet you ? Did you know that there is a new Cofffe place in town ? maybe we should hang out sometime ? what do you say? By the way, do you mind giving me a lift home ?

5

u/JoshuaTheProgrammer Jul 19 '24

Haskell: a monad is a monoid in the category of endofunctors what’s the problem :-)

2

u/[deleted] Jul 22 '24

Perfect way of describing C 😂

2

u/snipe320 Jul 18 '24

What about Kotlin?

8

u/mofomeat Jul 18 '24

Suka Blyat.

1

u/borankux Jul 18 '24

right on

2

u/ahonsu Jul 18 '24

Hard to say without knowing your situation and reasoning.

But by default I would answer: no, you should continue with C#. You're already 2 years in the industry, with real experience. C# is still on demand, a lot of work for a developer like you. It makes more sense to invest your energy to further improve your existing skills, than starting something new.

Can you tell us your reasons to ask this question and doubt your current career?

1

u/[deleted] Jul 18 '24

Because C# is a Microsoft thing. I like open source, I like Linux.

.Net runs on Linux, but is it the same for Nuget packages like BouncyCastle?

0

u/[deleted] Jul 19 '24

C# is open source. They also have a Linux version.

The copyright for Java is owned by Oracle. Let that sink in.

I like Java by the way, but i tend to like MS more than Oracle. Java runs on more platforms and the JVM is sweet. It also hosts other languages I like.

I did c# for 5 years professionally. It’s nice as well, but I don’t find it more attractive than Java in some cases. It’s not a bad language, and I have actually used prior languages by c#’s creator and I am a fan of his.

3

u/Ciro_23 Jul 18 '24

it's really difficult to give you an answer without any context. knowing many programming languages can benefit you because of more job opportunities, but it's not strictly necessary.

if you know you have to work on something which requires java, like minecraft mods, legacy android projects (as they're mostly written with kotlin nowadays) or web apps with spring, then you may want to learn it.

if you're simply interested in knowing java, as it is still heavily used in lot of corporation projects (from my experience), nothing is stopping you to give it a try. c# and java are not that different from each other, so it won't be a totally new experience.

another suggestion may be to learn a totally different language, used for totally different goals, because you may find it more fun, for example i really like dart (mainly used for flutter apps) because it has lot of more modern features and it's kinda fresh air for me.

3

u/Jason13Official Jul 18 '24

Depends on what you’re trying to accomplish.

Make a Minecraft mod!!!!! - I say this every time

2

u/connorjpg Jul 18 '24

Go with Go.

1

u/[deleted] Jul 19 '24

Or gogo, a stripped down version.

0

u/connorjpg Jul 19 '24

Please explain more… I’m not familiar

1

u/[deleted] Jul 19 '24

1

u/connorjpg Jul 19 '24

This was a solid joke. Happy to be fooled 😂

0

u/Aks029 Jul 19 '24

I will definitely laugh when your entire life will be a joke buddy.

1

u/[deleted] Jul 19 '24

What does it look like when someone’s entire life is a joke?

0

u/Aks029 Jul 19 '24

Sooner or later you will get the answer. Don't worry!

1

u/[deleted] Jul 19 '24

Genuine question: why are you throwing shade? From your post history you are new to programming in general. Why be a jerk?

0

u/Aks029 Jul 19 '24

It's about you who joked for no reason, not me. Basics buddy!

1

u/[deleted] Jul 19 '24

Ah, so you don’t like people who tell jokes. Got it.

Thankfully, no one cares.

It’s just somewhat amusing because I’ve been in the field successfully 25 years and used Java since 1.1. I already have a principle software engineer position at a fortune 50. It’s a nice gig, work from home, cash bonus and restricted stock units.

It’s kind of hard not to laugh when you tell me my life is going to be a joke. Like… it’s too late for that.

→ More replies (0)

1

u/AutoModerator Jul 18 '24

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:

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

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.

1

u/Laevend Jul 18 '24

I think people forget how verbose c++ can be sometimes

1

u/Jason13Official Jul 18 '24

imo it’s brothers with Java 😂

1

u/MoreCowbellMofo Jul 18 '24

Java is a good first choice of programming language (although not necessarily easy) and can result in you developing a good understand you won’t necessarily appreciate if you start with, say, python. Your skills learned will transfer better to other languages that follow.

1

u/Jcbook47 Jul 18 '24

I'd stick to COBOL my first 😀

1

u/abs1710 Jul 19 '24

Any pair programming communities?

1

u/realFuckingHades Jul 19 '24

It's like asking an Indian(I'm one), Do you like biryani? Obviously you will get biased answers. Let me tell you my biased answer. Yes. You get paid well, it's constantly getting updates, the community is strong and since it's not beginner friendly, they can't just replace you with an intern or something with very less experience.

1

u/Hour-Night8287 Jul 19 '24

Before go with Java make a quick research about job market then based on that make your decision.

If you don’t care about job market just developing as hobby, choose wherever you want.

If Java has more opportunities where you located go with that. Don’t follow the hype. Don’t be like me, I followed the hype of (Flutter & Dart) then when I released there is no opportunities for Flutter in my location. Now I need to choose between JavaScript, Java & C++ most asked language where I am in. (I picked Java just learned the basics and now diving into spring framework)

1

u/KastroFidel111 Jul 19 '24

I like Java personally. It makes more sense to me. You use it extensively in coding in computer science classes. But really the language doesn't matter as long as you understand the concepts of how programming languages work. You can pick up a new language on the fly.

1

u/Mou_NoSimpson Jul 19 '24

Keep grinding C# you don’t need java at this moment, the C# ecosystem is so complete and big, as java developer I admire C# ecosystem

0

u/Aks029 Jul 19 '24

I loved Java the most when I jumped into programming. And it was a challenge for me to understand Java as it is a statically typed language. But Java wasn't the first programming language that I taught myself, it was python. I personally don't like python. I don't consider python as a programming language.

So I decided back then to learn Java. But things changed when I entered Kotlin for android app development. Kotlin was impressive, concise and easy to code. It follows the declarative paradigm which is very often seen in Flutter+Dart development and Swift programming.

Then after all this, I started building software using WPF. It was the moment when I realised how complex it is to build software for windows. But learning C# and building software was the most enjoyable part of my life. I learned about system design, data structures and algorithms, multithreading concepts, unit testing and what not with C#.

My recommendation is: if you are going for app development for smartphones, then go with Kotlin. If your plan is to build software, stick with C#. And even you are fully ready to enter into game development as well with C#.

So no matter what, you have to let go off Java.