I started with Java and I feel like it's a decent starting point. Very miniscule amount of syntax sugar makes it a great language for beginners. Having strong Java skills you can easily explore languages with more features such as C#, Go, even C++ for that matter. Python is not really a great choice if you actually want to learn programming for future career, it's a nice starting point for ultimate beginners but you have to learn much more at some point anyways.
I actually tried to start with Java and hated it, it kept me from programming for more than a year until I started to learn C# and then with Python was when I fell in love with programming. The final answer is, it depends.
Programmed off and on in Java for ten years. Don't understand all the Java hate.
Started working in C# about two weeks ago, though, and I really appreciate the new toys - inline anonymous objects, extensions, no more unboxing (well, so far as I know)...
I think learning Java first was definitely the right way to go, for me at least. A lot of the things that C# does implicitly or can disguise with syntactic sugar, you need to do explicitly and "longhand" in Java.
Not OP but I'll agree with your take! I detest dynamic typing but for quick and dirty work it's nice not having to define classes for every little thing. Just "hey, get this field. If it doesnt exist, go ahead and shit the bed".
Not at all, you can get a great job working in Java and that's not going anywhere anytime soon. Plus once you really groc java, learning a new OO language will be a breeze
My first language was Pascal, then Java, then C#, JS and Python. Now I barely write anything for work, but when I do I do Python and JS.
Honestly? I miss C# and to some degree Java and Pascal. Python is so simple to a fault, and I feel it continuously encouraged me to make bad programming decisions. JS is just a clusterfuck.
Nah, you've made a really good choice. Java is a great place to start from. It's not that complicated to learn, but it resembles quite well the syntax of the more complex programing languages like c++. So it's easier to go from Java and learn both easier and harder languages.
Mostly agree, but different tech have different career growth trajectories. If one job is coding Java with distributed systems and the other is mainframe with COBOL, I'm taking the Java job, even if the pay is a little less
And honestly, I never saw a COBOL job paying more than other languages. It probably pays really good who is working 20 years on the same COBOL code, not the people that are moving to COBOL
I remember when Java came on the scene being praised as a knight in shining armor. I wasn't impressed. C# came out soon after which I described to my colleagues as Java done right. Kotlin emerged giving Java a much needed breath of fresh air.
As for JS; if other languages ran directly on modern browsers then JS would be annihilated by non-use simply because other languages have far far far less WTF design decisions. But that's not the world we live in. Because devs are held hostage by JS for web development often there's a weird Stockholm syndrome where the devs praise and protect their captor.
We need another language for web browsers. It's like JS deliberately fucks with the devs just enough for them to be miserable, but not enough for them to quit.
WebAssembly exists and is being used by a few people and projects to create web apps, but the vast majority of web developers use and enjoy using JavaScript (and it’s derivatives, such as TypeScript) despite the growing availability of WebAssembly frameworks. ESNext is not 1st edition JavaScript, it’s quite a nice language to work with nowadays.
Unfortunately that has to go through a JS interface. It's not ideal but at least it's a step in a direction where other languages can be used in the browser.
As for JS; if other languages ran directly on modern browsers then JS would be annihilated by non-use simply because other languages have far far far less WTF design decisions.
This is why I hope Blazor takes off and does well. Or any other good webassembly implementation. Please, I don't want to use JS again....
"this" refers to the scope you run it in. If you're using it in the global object it should refer to the global object. The problem with JS is people come to it from other languages and expect to find the same concepts and rules
The lauguage itself is fine. But there are way too many people praising it like its a blessing from god and who want to port it everywhere and talk about how it is the launguage that can run on any platform
Seriously, why Java gets too much hate compared to C#? Because Java is too verbose, doesn’t have many new features and has a lot of legacy code, and C# has better syntax, more features and more importantly, no longer restricted to Windows?
Just to let everyone know, I’m aware of new Java versions, especially in Java 14-17, and I’m aware of the verbosity. I’m just pointing out why some people dislike Java for these reasons, especially if people are stuck using Java 8, still the most used version in 2022! Hard to kill legacy systems. And to be fair, C# gets just as much hate as Java, especially people who still associate it with being only Windows and who still use vanilla .Net, that is, not .Net Core/.Net 5-6
I don't use C# often so I may be wrong but I think even as their syntax and style are very, very similar, they're not really used for the same thing it seems. Java is usually for either Android or backend and microservices, whereas I see C# for things like game development and Windows stuff
Either, both, it's mostly hiring managers that care about that kind of thing. Anyone who's an expert in Java or C# can learn the other and switch between them in a months time, if that. Honestly switching between IDEs has more annoyances than going between Java and C# as a language.
My professional experience with it has been going between eclipse for Java and VSCode for C#, and that's been vastly more annoying than accounting for the differences between C# and Java themselves. Just poor planning and an unwillingness to spend on getting better tools.
This is such an interesting complaint I keep seeing in this sub. Java has streams which is very conceptually similar. I personally prefer LINQ, but the idea that there are no other languages that have APIs like LINQ appears to be a common misconception.
As someone who has over 6 years of professional Java experience, I completely agree. C# is just easily superior in every single way. Words still can't explain how I absolutely despise Java's retarded generics and type erasure.
Well, I'm not an expert in C#, but there's a big difference in how generics are handled between JVM and CLR. Metadata (specifically type information) is stripped out of the Java source code (hence type erasure), which means you can't (most of the time, there are exceptions) use any type metadata at runtime.
Why is that important? For example, imagine a situation where you'd like to dynamically create an instance of a generic type at runtime. It's not exactly a common thing, but it is very useful when you need it.
In Java, you would need to do:
public T createInstance(Class<? extends T> clazz) {
return clazz.newInstance();
}
createInstance(MyClass.class);
Obviously this is a very simplified problem, sometimes passing a class like this is very hard and convoluted if you're doing something pretty advanced.
In C#, you can directly deduce type of T at runtime like so:
public T CreateInstance<T>() where T : new()
{
return new T();
}
CreateInstance<Example>()
Of course, It's not the best example and I have to remind you that this is very oversimplified and doesn't look that bad at a first glance. Yet after working on really big, complicated, and reflection/generic heavy systems and frameworks in Java I really, really wish that was a feature. Type erasure has it's pros, but in my experience it was always a very big con. Hopefully I cleared that out a bit.
LINQ. Real generics that you can use things like reflection on because the compiler doesn't throw them away. Extension methods. Way better enumerations with stuff like yield return. Anonymous types. That's off the top of my head, I'm sure someone has a long list of pros/cons out there somewhere.
Which benefits of generics are you loosing? Generics are used to allow types as parameters, introduce stricter type checks and perform generic operations on objects of same type family. All of that stays. Yes, they erase the types during compilation, that's by design as an optimisation, but synthetic methods will be added by the compiler in case type casts are needed and type bounding is there if you need certain interface methods. What so specific cases you have that you need to pass a type as an argument?
C# is a fantastically well designed language. It's not perfect and it's not the right tool for a lot of jobs, but from a purely theoretical point of view, it's honestly just great.
Honestly I like Java. It's really nice when you go from some low level language to Java because you realize just how much work it actually does for you. I can crap out the steamiest mess of polymorphism hell with like five different types to do one thing and it'll still work.
All of them are shit, only our God and savior C is pure, free of OOP bloatware, with portability and speed. Come children that are ignorant to their own ignorance let us praise the one and only perfect programming language.
I think it's more the languages though. I have a 4/6 year split between the two and can't think of one thing that is better about Java as a language compared to C# (without comparing the ecosystems at all).
100% this. From a purely syntactical/tooling point of view, C# is superior. Did C# for a year, returned to Java for a project legit felt like I was reverted back to unga bunga neanderthal.
A lot of people in this sub are university students with no industry experience, who haven’t yet discovered how widespread Java actually is in the real world.
I refuse to believe all the takes in this thread are by actual devs. It reeks of college students making takes they think actual devs might possibly agree with, but no one actually does.
Not sure where this is from, but its dumb. Java and C# are virtually identical. Any class implemented in one can be identical in the other. JavaScript is unrelated in any way, like boon and baboon.
I really envy C# and its developers. They are completely satisfied with their set frameworks and libs, and get sh*ts done as quickly as possible without any hassle. Meanwhile, Java/JS developers be like, lets create a framework to print hello world.
Java has like one framework that’s actually used and is rather quite nice, it shouldn’t be compared with JavaScript’s 17 different frameworks that each does the same thing in its own retarded way
What's better, is that the US Constitution protects the right to assemble, so that even if Java, C#, etc. are illegal to code in, assembly language is a constitutional right.
I developed in both and I prefer C# over Java in terms of language design and features. Besides that however, Java wins in every way: ecosystem, jobs, pay, truly open source etc.
I only do programming as a hobby soo r/explainlikeimfive, why do people prefer C# over Java? Is it because C# is more easily capable of certain things?
More modern feeling ecosystem, no type erasure, modern features get added more frequently, async/await, better build system that breaks less often, LINQ/PLINQ, EFCore, ASP.NET Core
The biggest issue I see with C# is that you can’t write to the middle of a file with the standard libraries. It’s append or overwrite. If you want to edit you have to overwrite with the entire file contents but edited as a string, which is awful
273
u/E_BoyMan Jun 19 '22 edited Jun 20 '22
I decided to learn java first rather than python. Am i dumb ?
Edit: I learnt it on notepad so maybe I was.
1.3k
u/DerHamm Jun 19 '22
Every langauge is shit. Every technology is shit. You just gotta find the shit that smells the least for your use case.
796
u/[deleted] Jun 19 '22
For the Java devs. This is an anime reference.
Anime is some kinda horny foreign cartoon.
166
u/KanykaYet Jun 19 '22
Because they aren't the same
142
u/RyanNerd Jun 19 '22
I remember when Java came on the scene being praised as a knight in shining armor. I wasn't impressed. C# came out soon after which I described to my colleagues as Java done right. Kotlin emerged giving Java a much needed breath of fresh air.
As for JS; if other languages ran directly on modern browsers then JS would be annihilated by non-use simply because other languages have far far far less WTF design decisions. But that's not the world we live in. Because devs are held hostage by JS for web development often there's a weird Stockholm syndrome where the devs praise and protect their captor.
52
u/feuerwehrmann Jun 19 '22
Java != Java script
Java and C# are fairly similar, though I prefer c# syntax and tooling to be more enjoyable
27
u/rbuen4455 Jun 19 '22
Seriously, why Java gets too much hate compared to C#? Because Java is too verbose, doesn’t have many new features and has a lot of legacy code, and C# has better syntax, more features and more importantly, no longer restricted to Windows?
10
u/Crescent-IV Jun 19 '22
Which is the most useful for a job, generally?
240
u/jb28737 Jun 19 '22
Yeah, cos c#is fkn amazing
96
u/SocketByte Jun 19 '22
As someone who has over 6 years of professional Java experience, I completely agree. C# is just easily superior in every single way. Words still can't explain how I absolutely despise Java's retarded generics and type erasure.
61
u/BadBadderBadst Jun 19 '22
Did you mean mean:
123
u/Various_Studio1490 Jun 19 '22
How did we screw up Java and JavaScript again?
One can write the theme song for Batman in a single line.
The other needs an entire line just to access the print stream.
They are not the same!
57
u/jesterhead101 Jun 19 '22
*hmm..I spent considerable amount of time learning Java, I better defend it vehemently *
Guys, Java is the best. C# can go # itself.
30
u/Extra-Trifle-1191 Jun 19 '22
I love C#
24
u/althaz Jun 19 '22
C# is a fantastically well designed language. It's not perfect and it's not the right tool for a lot of jobs, but from a purely theoretical point of view, it's honestly just great.
8
u/Caching_History_Buff Jun 19 '22
"demon slayer meme templates on r/ProgrammerHumor doesn't exist. It can't hurt you."
this post:
21
u/ANewTryMaiiin Jun 19 '22
C# is a beautiful language.
18
u/Orangutanion Jun 19 '22
Honestly I like Java. It's really nice when you go from some low level language to Java because you realize just how much work it actually does for you. I can crap out the steamiest mess of polymorphism hell with like five different types to do one thing and it'll still work.
23
u/s0lly Jun 19 '22
I love Java yum yum in my tum
15
u/BigAnimeMaleTiddies Jun 19 '22
All of them are shit, only our God and savior C is pure, free of OOP bloatware, with portability and speed. Come children that are ignorant to their own ignorance let us praise the one and only perfect programming language.
10
u/CaptainPiepmatz Jun 19 '22
🦀
34
u/Henksteenbroek Jun 19 '22
I'm convinced these Java haters haven't done more than a couple simple things. The C# ecosystem is great but so is Java's.
13
u/thE_29 Jun 19 '22
Basically people complain about having to type more, when mostly the IDE autocompletes it anyway.
First world problems.
6
u/gerberag Jun 19 '22
Not sure where this is from, but its dumb. Java and C# are virtually identical. Any class implemented in one can be identical in the other. JavaScript is unrelated in any way, like boon and baboon.
3
u/AnonimowySzaleniec47 Jun 19 '22
If you're unfamiliar with C#, imagine Java...
3
u/[deleted] Jun 19 '22
Nowadays I write in Kotlin as much as I can instead of Java. Some spring stuff is unclear in kotlin but that’s the only drawback.
3
u/scwishyfishy Jun 19 '22
How does a meme about this sub have an ifunny watermark?
3
u/LOLteacher Jun 19 '22
"How this OP doesn't know that Java has nothing to do with JavaScript."
3
u/Luciel-Choi707 Jun 19 '22
what kind of insult is "basketball"
3
u/hullabaloonatic Jun 19 '22
I mean... .net 6 is legit really awesome tho. Oh and it's free, too.
8
u/AmoebaLogical Jun 19 '22
I really envy C# and its developers. They are completely satisfied with their set frameworks and libs, and get sh*ts done as quickly as possible without any hassle. Meanwhile, Java/JS developers be like, lets create a framework to print hello world.
2
u/[deleted] Jun 19 '22
You doughnut!
2
u/LaserTycoon27 Jun 19 '22
As a musician, I love C#
2
u/Super_S_12 Jun 19 '22
LMAO get PHPed.
2
u/darkliz Jun 19 '22
C# doesn’t get as much hate because not as many people use it.
2
u/Val-the-Crow-King Jun 20 '22
As a Java developer.... I fucking hate Java.
4
u/Neither_Sandwich_285 Jun 19 '22
C# has 9999 ways to do one thing.. beautiful
4
u/vector_9260 Jun 19 '22
famous games made on languages this sub hates fsr: Cookie Clicker (JS) Minecraft (Java)
3
u/[deleted] Jun 19 '22
Except me. I'm the opposite.
4
u/Keladran0 Jun 19 '22
Everyone talking about C sharp, but noone ever mentions C blunt
3
u/ArtyIF Jun 19 '22
java feels archaic af to me compared to c#. probably because it's much older
3
u/Nefariousness_Future Jun 19 '22
You mean Microsoft java?
2
u/Tinyhippy92 Jun 19 '22
I really enjoy programming in Java and I am not scared to admit it.
2
u/killchain Jun 19 '22 edited Jun 19 '22
C#? You mean Microsoft Java?
/s
1
u/Alarmed_Breakfast_62 Jun 19 '22
Will Java be the next PHP?
1
u/yohanleafheart Jun 19 '22
I mean, yes, it is Java. I don't wish it even on my worst enemy. I've got standards
1
u/MadamPickleness Jun 19 '22
Can confirm akaza is a basketball
1
u/StillPackage4369 Jun 19 '22
Assembly is key here. No-one understands it enough to make fun of it.
1
u/_alb4 Jun 19 '22
Me who uses C# happyness noises
1
u/Torch99999 Jun 19 '22
I've been treating dotnet like that since around 2003. Is this subreddit that old?
1
u/CaitaXD Jun 19 '22
Well duh it's the truth
1
u/KobeJuanKenobi9 Jun 19 '22
I know I like C# a lot better than Java but aren’t an experienced enough developer in either to know why
1
u/Strostkovy Jun 19 '22
For what I do I really need C flat or maybe C--
1
u/SevenCircle Jun 19 '22
everyone knows that Javascript is one of the lower 6
1
u/ThunderStruck115 Jun 19 '22
iFunny Watermark located. Dislike engaged
1
u/[deleted] Jun 19 '22
My school that teaches Visual Basic: Am I a joke to you?
1
u/Drauxus Jun 19 '22
I've been wanting to learn c# for a while now but I have no idea where to start (or ever what ide I should be using). Any suggestions would be great
1
u/akashneo Jun 19 '22
I used to think JAVA was pretty easy untill I came across C in college. I loved learning C but in later years they moved on to JavaScript and C++.
I didn't like javascript from start because I thought it would just like Java. That was not the case.
I thought C and C++ would be exactly same but I was wrong. I hated C++.
Then in my last year of college I started learning python. Now I love python.
1
u/Fresh-Boysenberry-63 Jun 19 '22
“You fucking donut”
1
u/CerealBit Jun 19 '22
I developed in both and I prefer C# over Java in terms of language design and features. Besides that however, Java wins in every way: ecosystem, jobs, pay, truly open source etc.
1
u/Zaurble Jun 19 '22
there’s a reason for that lol
1
u/[deleted] Jun 19 '22
I must say, this sub is absolutely right.
1
u/Davegavecool Jun 19 '22
Me
confused as I'm learning both
1
u/tempuhempfu Jun 19 '22
I recently started Java dev at work and after 2 days, I still can’t figure out why my IDE is not building my project 🙃 I hate it
1
u/therealmodx Jun 19 '22
I see nothing wrong with this post 🤣. I started programming with Java but have not touched it since I came into contact with C#.
1
u/darksim30 Jun 19 '22
What about boo or D
1
u/Luiyo033 Jun 19 '22
I will throw a nuclear bomb on JavaScript.
1
u/Clashfash Jun 19 '22
the only reason i have java downloaded is so i can play minecraft
1
u/NightRide99 Jun 19 '22
Joined this sub to show my programmer fiancé the memes.
Show him this one and he goes “fuck Java. Bag of dicks”
I’m dying.
1
u/uzbones Jun 19 '22
Only issue with java (other than which companies java), is the JRE wants to update almost every single day.
1
u/Ursomrano Jun 19 '22
I only do programming as a hobby soo r/explainlikeimfive, why do people prefer C# over Java? Is it because C# is more easily capable of certain things?
1
u/[deleted] Jun 19 '22
I mean, I fucking hate Java, but then I'm sure there are people that hate C# with a similar passion. Everyone has their language that they prefer.
1
u/[deleted] Jun 19 '22
I hate both :)
1
u/star47raven Jun 19 '22
well deserved
1
u/MoonTrooper258 Jun 19 '22
Funnily enough, I just got Java (to try to install mods on Minecraft), and nothing's working.
1
u/Negromancer06 Jun 19 '22
FUCKING YELLOW!!!!
1
u/KinggMe Jun 19 '22
seriously, what's up with the hate on java?
1
u/Mister_Lich Jun 19 '22
Based and correct
1
u/JC12231 Jun 19 '22
The biggest issue I see with C# is that you can’t write to the middle of a file with the standard libraries. It’s append or overwrite. If you want to edit you have to overwrite with the entire file contents but edited as a string, which is awful
1
u/toussah Jun 19 '22
https://c.tenor.com/ZUurqqnGICkAAAAC/weebs-making-the-worst-meme-weebs-walter-white.gif
1
u/[deleted] Jun 19 '22
The more features you have the better language is, right?
1
u/toussah Jun 19 '22
.
1
u/Equixels Jun 19 '22
Because string manipulation in java totally sucks. As well as garbage generation/collection. C# doesn't have those problems.
1
u/Fuelanemo149 Jun 19 '22
Heyyyyyyyyyyyyyy
What's your opinion on...
Rust
1
u/[deleted] Jun 19 '22
Why C#? In what way is it getting more love than C?
1
u/xancanreturns Jun 19 '22
Marc gets recursion.
1
u/PremierBromanov Jun 19 '22
I like c# until i have to do internet shenanigans and then i get mad that I can't just guess what's in the response
1
u/sorta_oaky_aftabirth Jun 19 '22
Haskell or bust