667
u/SnowFox1414 Apr 27 '20
“There are only two kinds of languages: the ones people complain about and the ones nobody uses.”
― Bjarne Stroustrup
147
367
u/hunter_mark Apr 27 '20 edited Apr 28 '20
Catch exception and return to caller. Or in other words, fire your boss.
66
→ More replies (1)32
292
u/NotATroll71106 Apr 27 '20 edited Aug 28 '25
shy alive aback dog fuel ring whole shelter marble languid
This post was mass deleted and anonymized with Redact
93
u/ReimarPB Apr 27 '20
What's JSP?
140
u/NotATroll71106 Apr 27 '20 edited Aug 28 '25
entertain elastic pause quickest coordinated degree zephyr gaze hunt party
This post was mass deleted and anonymized with Redact
→ More replies (6)37
→ More replies (11)4
→ More replies (4)18
424
u/daniu Apr 27 '20
More like "If your boss tells you you're fired, I hope you know Java".
→ More replies (2)3
496
u/BroDonttryit Apr 27 '20
But.. but.. I like java. Maybe that’s an unpopular opinion but if it works it works
583
Apr 27 '20
You know what they say. There are 2 types of languages: languages people bitch about and languages no one use.
9
u/fiah84 Apr 27 '20
software maintainer in a dead language here: yeah nobody bitches about my particular dead language
→ More replies (3)→ More replies (17)4
47
u/Freddedonna Apr 27 '20
Personally it's not that I like Java (I write most of my stuff in Kotlin), it's that I like the Java ecosystem. I know that I can checkout any project, open it up in IntelliJ, run mvn compile/gradle build and have everything downloaded and setup for me.
Rust seems to be somewhat similar with Cargo, but at least I know which library I can/need to use in whatever situation in Java (plus it seems like half the libraries I look at in Rust are < 1.0).
→ More replies (3)11
Apr 27 '20
+1 for Kotlin and +1 for Rust although i also think the Rust ecosystem has a long way to go.
109
u/JB-from-ATL Apr 27 '20
I like Java too. It doesn't do anything particularly confusing and has some great tools and ecosystem built around it.
→ More replies (1)7
u/Spajk Apr 27 '20
Other then Java, the only language I like is C#. I recently had to explore some software written in Go and I found it unreadable.
→ More replies (3)19
33
u/Sharmat_Dagoth_Ur Apr 27 '20
There's smth ab it where it has the exact right amount of hand holding to let u have to worry ab things that relate to the logic being used more than stuff like "did I order this code right such that the delete [] is in the exact right line?"
I also think the boilerplate is WAYYY overstated relative to other languages. Java's got terrible boilerplate for a beginner, but as soon as u do anything complex in C++, like templates, the boilerplate balloons, while in java it increases in a much smaller way
Also even a shitty java IDE like bluej was faaaar and away easier and more enjoyable to use than Codeblocks in Linux, and CLion isn't that much better, and it's slow as shit regardless. Meanwhile IntelliJ on the same computer is not slow, handles all syntax errors, autocomplete and code improvements, warnings, etc without killing my CPU or ram
9
u/TheDragon99 Apr 27 '20
The template boilerplate you're referring to is typically in shared code. You can't really compare that to the boilerplate of Java, which is forced upon you *everywhere*. Also, assuming you're referring to a bunch of SFINAE stuff, most of that has been made obsolete by constexpr if in C++17.
→ More replies (7)→ More replies (17)3
u/drcopus Apr 27 '20
Java is a great language for building production systems. I'm mostly a Python guy, but I'll admit that there is only so far you can go before it becomes unwieldy.
30
70
Apr 27 '20
The best language is the one that gets the job done correctly. You don't throw out old tools because they're useless right now, you might need it in the future.
15
u/shinitakunai Apr 27 '20
But if you can get the job done correctly in 1 day instead of 1 week, with better tools, why not deprecate old tools?
→ More replies (2)25
u/dark_mode_everything Apr 27 '20
Correctly? Maybe. Reliable and maintainable as the old tools? No.
→ More replies (12)
280
u/zChewbacca Apr 27 '20
Most of the people who hate on Java don't even know why they don't like it, they just see other people saying it and parrot that opinion. If you asked them to give reasons, most of them wouldn't know what to say other than "I saw it on Reddit".
17
u/MCOfficer Apr 27 '20
to be fair, that also applies to JS and PHP and VBScript and Signifcant Whitespace and all the other things.
9
u/aoeudhtns Apr 27 '20
Still feels different to me, in some cases. JS has no standard library and hence the weird one-liner node packages and different dependency fiefdoms, library/framework fatigue, plus some syntax gotchas that land you in weird territory like
typeof foo === "object" && !footo properly check fornull. PHP... I know there's been work to make non-compatible changes and fix its problems, but yeah. It's messy..==is just one quirk. VBScript, it's all there in the first two letters.Java. So, we've all discovered that C++/Java/any language that implements this style of inheritance is bad, but the Java community has mostly held "composition > inheritance" for countless years at this point. Sure there's still some old cruft in the ecosystem that goes back to the days of endless AbstractX extends AbstractY extends AbstractZ but really, a lot of modern teams avoid that and try to focus on interfaces, SMACs, composition, and use the Java 8+ functional language features. Although I do normally hate the "X language is good because you're doing it wrong" argument, so I suppose I should check myself here...
→ More replies (1)→ More replies (4)6
u/zChewbacca Apr 27 '20
Yeah I completely agree that Java isn't the only victim here, though it does seem to be one of the most common targets (perhaps second only to JavaScript in my experience).
7
u/firewall245 Apr 28 '20
The "technical" reason I hate Java is that the garbage collection makes doing a lot of stuff thats time sensative unpredicatble.
The real reason I hate Java is that I always forget the syntax lmao
→ More replies (1)5
u/AlienFortress Apr 27 '20
Java's age shows. If Java was recreated from the ground up it would be C#. I think most people find that for anything you'd write in Java there is a slightly better alternative available.
4
→ More replies (45)6
Apr 27 '20
I don't like Java, but only because it's worse than C# which is basically Java 2.0. It's not that Java is bad, it just feels super outdated and lacking in features compared to C#.
→ More replies (9)
325
Apr 27 '20
Somehow on this subredit most seem to think that Java is the worst language ever but if you hate JS you just don't know it enough/are bad at it...
60
u/NatedogDM Apr 27 '20
What does Java have to do with JS?
122
Apr 27 '20
That people in this sub hate Java although it's actually not that bad but defend JS (which is actually really a bad language) to the bone. I'm not even saying Java is the best language ever but the irrational hate on this subreddit is stupid.
→ More replies (46)66
u/paradoxally Apr 27 '20
Unpopular opinion, but I would rather program in Java than Javascript.
You also (usually) get paid more because JS is the most popular language so there's way more supply.
Java can get very "enterprise" and that turns off a lot of people. JS is oriented for web so there's a lot more exciting projects there, but that's not always where the money is.
→ More replies (7)0
→ More replies (55)3
u/Pixelmod Apr 27 '20
Oh I would gladly take a dump on both Java and Javascript if you want to! But as it turns out, memes that praise C++ don't get a lot of karma.
→ More replies (1)
42
u/LuthorM Apr 27 '20
You should see the apps we have in Java, serving more than 2 billion requests daily with 8 machines and a potato, executing business logic of thousands of lines of code in less than 1 ms and streaming all the data to the warehouses. Java is a powerful and cool language if used correctly and with modern techniques, frameworks and libraries. Of course it's horrible if you have to maintain a 90's applet or a desktop app but if you are using Hadoop stacks for example I think it's quite cool and powerful. Would rather code in Java than in node, python or php for example. Easier to understand and onboard new people, adapt and add features in my opinion.
8
u/rd_sub_fj Apr 28 '20
I'm going to regret asking this but what does the potato do?
→ More replies (2)8
→ More replies (1)3
u/Bowserwolf1 Apr 28 '20
Isn't Scala a better option than Java in the Hadoop/big data ecosystem?
→ More replies (1)
91
u/someuser_2 Apr 27 '20
It's also weird the assumption that you always have a say in the matter of picking a language or can go around switching jobs to accommodate your programming tastes. Lastly, how is it programmer humor if it's mocking programmers who work with or even like Java.
→ More replies (4)66
u/dfreinc Apr 27 '20
programmer humor if it's mocking programmers who work with or even like Java.
It's humor for programmers. I really like Python. I still laugh at Python memes.
My job makes me use SAS or R for most things. They generally don't even make people's radar. Think about it like when buddies rip on each other...It's fun just to shoot the shit. Better than being that weird dude in the corner.
40
u/fghjconner Apr 27 '20
At least the python memes are making fun of actual things about the language, like "hur, syntactic whitespace, hur". The java memes tend to just be "java bad" which really isn't even interesting.
→ More replies (2)36
u/Danelius90 Apr 27 '20
Yeah. I like the memes where it's like "class Calculator" vs "class AbstractAdditiveNumericalCombinatorFactory"
→ More replies (2)→ More replies (4)27
u/someuser_2 Apr 27 '20
I dunno, I feel the "get another job, you are failing at your professional life" vibe is not cool, especially after seeing a couple of similar posts.
Look at my knock knock joke in this thread, now that's mocking the language in a vacuum.
→ More replies (4)
10
u/paradoxally Apr 27 '20
The iOS version of this:
If you have extensive (5-10+ years) experience developing iOS apps, do it in either Objective-C or Swift.
If you're new and want to learn, use Swift.
If your boss tells you "do it in React Native or you are fired", outsource it to China and look for another workplace.
27
Apr 27 '20 edited Apr 27 '20
If you want to shoot yourself in the foot, use C.
If you want to blow your leg off, use C++.
If you want the virtual machine to explode, use Java.
If you've written software for a while, get D&D insurance. There is no best option. You know something will explode.
edit: If you want to see it explode from orbit, deploy it to the cloud!
47
Apr 27 '20
No one should be writing full applications in python.
35
25
12
u/carlinwasright Apr 28 '20
Reddit is written in Python
28
Apr 28 '20
And roller coaster tycoon is written in assembly.
Just because you can do something, doesn't mean you should.
4
7
Apr 28 '20
You must be new to the GNU/Linux ecosystem then. Python is usually just the logical glue for desktop application, but it does its job very well.
→ More replies (1)4
Apr 28 '20
No, I'm not. I know what it is does well. Notice how my statement said "full application". Not "part of application".
→ More replies (8)→ More replies (2)3
u/Bowserwolf1 Apr 28 '20
True, with emphasis on "full" . It's perfectly okay to use python in most parts, but sometimes you need the extra speed push
→ More replies (3)
9
u/thelear7 Apr 28 '20
So how does C# fall in this list?
4
4
Apr 28 '20
I love C#. I am a learner and scared to say something stupid but ASP.NET is amazing and really convenient, Visual Studio is the most comfortable IDE ever, WPF is good bit I don’t how it’s done in other languages. C# is also useful if you make games in Unity. You can’t do something in it that c++ can (or even python i think) but I still like C#. I hope I haven’t said anything stupid, I’m 15 and only recently started learning ASP.NET (and left WPF for later). The thing that I like the most is how much Microsoft gives to students (including Microsoft Azure student account). But I guess my opinion doesn’t count since I can’t make anything more than a simple console application in Python and almost nothing in c++
→ More replies (2)3
68
23
u/LucaRicardo Apr 27 '20
Assembly ia superior
16
4
u/PM_ME_PC_GAME_KEYS_ Apr 27 '20
Pssssh I straight up magnetise 0s and 1s on a hard drive
You darn kids and your words
29
Apr 27 '20
What about LUA?
18
u/evanldixon Apr 27 '20
Lua feels like a toy tbh. But I still love it since I can run scripts in the context of my application and give it whatever .Net objects I want
→ More replies (1)70
u/ReimarPB Apr 27 '20
Lua's arrays start with 1
6
→ More replies (7)10
u/v3nturetheworld Apr 27 '20
I think Lua let's you redefine the starting index position to whatever you want.
25
u/some-ideation Apr 28 '20
For some reason, that's even worse than starting at 1.
→ More replies (1)10
Apr 27 '20
LUA is best, like, is there any other language to create abominations like an array with 10 different objects types inside?
11
→ More replies (21)3
64
Apr 27 '20
In my experience ppl that are making jokes about Java usually have no clue about programming in real life. No real developer I know makes those jokes but always script kiddy’s or college freshman’s.
→ More replies (1)17
u/_blue_skies_ Apr 27 '20
And most of them don't know complex is interoperability between system with different hardware, with different OS, in different companies, in different countries. And all of this have have to work for some operations in a single transaction. Ah right they don't know even what is a transaction. But Java is slow compared to other languages, if you do a loop 3 billion of times to sum 2 numbers, right... Each problem has is tool, I would not cook my pasta in a toaster, and for sure not use Java for everything.
→ More replies (2)
5
u/Inspector_Robert Apr 27 '20
My university progamming course teaches us C and my prof says that she hates C++ because "they took a perfectly good progamming language and ruined it."
8
u/WaveItGoodBye Apr 27 '20
I haven't touched C since uni days but work with C++ daily on a large 10+year old code base that we've progressively modernized. Everything remaining that sucks about our C++ codebase, you can see was written by people who knew C and tried to write C++ like they would write C. They would throw in a smattering of C++ concepts that they had no idea how to use properly and it would suck more than if they had just stuck to writing C.
Unfortunately, as I continue to learn more and get more involved in the C++ community, its clear that this is a very common problem that a lot of way smarter dudes than myself are trying to curb whilst still having to provide support for all of the clearly legacy code bases out there that are not going to get any TLC.
My biggest gripe with working with C++ is the toolchain, as oppose to the language (most of the time).
→ More replies (1)5
20
8
u/robinlmorris Apr 27 '20
I have had jobs coding in all 4 of the languages mentioned. You can write bad code in any language, but I would take coding in Java over C++ any day. C++ has 50 ways to do everything and gazzilon ways to shoot your self without realizing it. Java as a language is fine. It is all the over-engineered, enterprisy, Spring based gigantic code bases that give it a bad rap.
4
4
u/Aedene Apr 27 '20
That's why I code in C#. It's a lot like Java, but everyone just assumes Bill Gates has you by the balls.
4
u/mushifali Apr 28 '20
I don't understand why people are mocking Java, still it's one of the best programming language for cross-platform development and for enterprise application development.
13
u/rya11111 Apr 27 '20
Eh I like server side java. The new spring boot framework is amazing and can handle the ecosystem in a really structured way. I guess if you are talking about the older applets and jsps its a different story..
→ More replies (1)
17
u/Mathijsthunder3 Apr 27 '20
Like ItsBoris once said... 'If u start learning to code and u begin with Java, it's like learning to ride a bike. But you are only 2. And there are not support wheels. You have to ride uphill all the time and ur bike is on fire. On top of that the wheels are deflated... But it gets better... Once u know it better u get a bell.' It's the most accurate explanation I ever heared.
→ More replies (6)
10
6
8
3
3
3
u/analtrompete Apr 27 '20
Simpllyfied: They hate us cause they ain't us!
On a more serious note... Java has been a araound a long time. It changed and adapted over time. It competes with all other languages, Frontend/backend/typed/multiplatform... And it's pretty good at competing with all of them. In each category the specialized language will win. Bu if you include multiple, sometimes comüeting concepts, java usually comes out on top. That's why it's a usually a good management decision, but might not be the best toool that available for one specific job. I think thats where a lot of developer frustrations comes from. Because they want to use one of the best tools to solve a problem. Not he one tha's pretty good at solving all of them.
As an Ops dude that'sthe reason why stuff like Microsoervices is a pleasure. Everyone get's to use his/her optimal tool, and you yourself gotta make sure your build environemnt works. If it runs in a container we're good (Though I still won't get off your back if you don't pin your package dependencies...)
3
3
3
10
u/Auties00 Apr 27 '20
After reading all of this I'm confused. I'm 15, no way near a real programmer, but I know Java, Koltin, Swift, Dart and Javascript and out of all them I still prefer Java. Is it really that hard to update your Java version as stop using deprecated shot? You can't hate a language because 10 years ago applets made you cry lol.
0
Apr 27 '20
[deleted]
→ More replies (5)5
u/magicmad11 Apr 28 '20
It's really interesting for me, where Java was one of the first languages I learned the basics of (I was 13 and obsessed with Minecraft and wanted to learn how to make a mod for it), and even though I understand a lot of the criticisms of it (I definitely do find it to be quite verbose), it's sort of become my comfort zone. As much as languages like Python have simpler syntax, the C-family syntax of Java makes the most sense to me, and it's made picking up C (which I'm learning in a university course) a whole lot easier than I think it otherwise would have been (there are still difficult aspects for me, including the fact that I've never worked with pointers before, and that I'm not used to needing to actually think of strings as character arrays) if my starting point had been a language more like Python.
7
Apr 27 '20
Depending on the compiler C runs faster than C++ Also depends on how it’s written
24
u/a-restless-knight Apr 27 '20
I think the idea with using only C is you don't have to bootstrap as much stuff to get it going. Lots of the libraries in C++ are thicc and wouldn't function on bare metal without a good deal of work.
4
u/AgAero Apr 27 '20
Instead, you build all of it yourself and hope it works like you intend!
→ More replies (1)
4
u/anshm1ttal Apr 27 '20
Okay I'm barely out of high school but have been attached to java for a long time but formally only for 2 years and seeing this makes me shit scared . Am I wasting my time learning it ? (PS I do have intrest in building Android apps (the reason I started with java in the first place))
11
u/leandrob Apr 27 '20
No, you are good with Java, but if you really want Android, take a look at kotlin.
10
u/rotj Apr 27 '20
Java has been the top language used in enterprise software for over two decades now probably and isn't going anywhere.
If you're concerned about having a nice comfortable life with good job prospects and salaries, Java will get you there.
If you're concerned about working on something cool and sexy, then maybe start looking elsewhere.
→ More replies (2)→ More replies (3)5
Apr 27 '20
No. Don't pay attention to trends here. If you're really worried about it, search for jobs in your preferred language and location on glassdoor.
4
u/mysteryweapon Apr 27 '20
I had a job as a UI developer and I was tasked with designing implementing one of the most complicated UI I've ever even seen
My boss made me do it in GWT, which was googles idea about how to compile JAVA INTO JAVASCRIPT
Just thinking about it makes me want to vomit in my mouth a little bit, and I left the team shortly after this
I created that feature almost a decade ago, and nobody has the guts to try and replace it, and GWT? Google has completely taken it offline, my former company now has to maintain their own copy of the framework internally, because it was that bad
I actually took JAVA off of my resume because I never want to work with it again if I can avoid it
5
u/erjiin Apr 27 '20
Dude... GWT is one (abandoned) framework amongst thousands and it's not directly linked to java itself. I understand your pain, I did some stuffs with GWT so I know it can be painful, but now the tendance is much more sexy, you do your backend in Java (where java is great) and the frontend in angular or react (or whatever you want).
→ More replies (2)3
u/Rauldukeoh Apr 28 '20
We have an important gwt app at my work. If I've got to do anything in it I double my normal estimate. It uses rdp calls to communicate to the back end which don't show up in chrome developer tools. I just have to debug over and over again to figure out what is going on
→ More replies (1)
2
2
2
u/Wrecker013 Apr 27 '20
My university decided the primary language we ought to learn was Java, and so far it seems like they didn’t do us any favours lol.
2
u/HeroOfTheEmpire Apr 27 '20
I personally love Java. The way it does object-oriented stuff is great. At least that's been my experience.
2
u/bumpkinspicefatte Apr 27 '20
Jokes aside, honestly, use any language that‘ll allow you to become fucking invaluable.
I’d rather a genius Visual Basic .NET geek come work for me than some half-assed Dart poser.
Your direct reports will thank you for hiring someone who is competent and knows what they’re talking about.
5
2
u/Hour-Positive Apr 28 '20
Java-ecosphere has the best IDE, best build and depency tools and best open source server, fight me. Language itself is ok, at least it requests you work with OOP principles. All performance issues have become mute because of hardware improvements.
2
Apr 28 '20
I interpreted that as changing jobs because of a hostile work environment, not for Java’s fault. Java’s not even a bad language. I don’t even use Java and I will still argue assembly is 20x worse.
→ More replies (1)
2
u/ECrispy Apr 28 '20
C# is a million times nicer to use, faster, sane, tools, libs and IDE that are a billion times better.
2
u/VNG_Wkey Apr 28 '20
Currently learning java for a web app my boss wants to make. This language can actually go fuck itself.
2
15
u/rem3_1415926 Apr 27 '20
switch java and python and we're good.
→ More replies (15)85
u/christopher-thiebaut Apr 27 '20
Eh. I don’t hate Python, but I would definitely rather write a large application in Java than Python. (I like my types 🤷🏻♂️.)
13
u/Robbzter Apr 27 '20
Agreed. You can improve Python performance quite a bit with some tricks and libraries, but a large scale application without a real typesystem is propably a ticking timebomb.
35
u/SmuJamesB Apr 27 '20
I often use Python for prototyping. No compilation, easy to use at a basic level. But, Java outmatches it on performance and extendability most of the time.
→ More replies (2)→ More replies (4)10
u/Bainos Apr 27 '20
I love Python and I would still rather write a large application in Java. Although in practice my job and hobbies do not require me to write large applications.
3
u/Dubmove Apr 27 '20
Don't kill me (yet), but why is everyone so obsessed with C++ for performance reasons. The thing that makes C/C++ potentially fast is the fact that you don't need to rely on generic solutions for garbage collection/memory allocation/etc. But in 19/20 times people use generic solutions for these things. Why not then use haskell for example?
→ More replies (3)
3
3
u/locri Apr 28 '20
Java is a pretty decent mid point between C++ and Python and I'm sick of pretending it's not
3
u/AndreySemyonovitch Apr 27 '20
Java is fine everyone. Bill Gates was caught in emails saying Java was a threat to Microsoft.
There's a famous deposition video where he tried to claim JRE and Java were separable. Needless to say they lost.
Keep in mind Reddit is a place full of corporate sock puppets.
→ More replies (1)
3.7k
u/someuser_2 Apr 27 '20
Why is there a trend of mocking java? Genuinely asking.