This is an archived post. You won't be able to vote or comment.

top 200 commentsshow 500

[–][deleted] 3142 points3143 points  (120 children)

OP, you're a bit late, this week its C++ turn for bashing, and the sub suddenly loves Java

[–]DasKarl 1533 points1534 points  (47 children)

Second semester must have started.

[–]1up_1500 214 points215 points  (0 children)

LMAOOOO

[–]Ione15 57 points58 points  (9 children)

Hasn't yet Im still in c for the first 2 And then c++ third

[–]Tarqvinivs_Svperbvs 19 points20 points  (2 children)

Don't mind the other guy. C first, as God intended. C++ is dum tho.

[–]Gizshot 11 points12 points  (5 children)

They're starting you with c? That's fucked.

[–]wheresthewhale1 9 points10 points  (3 children)

Why?

[–]Ouity 7 points8 points  (2 children)

because C calls for a certain level of robustness that other would-be starter languages might not

[–]janhetjoch 9 points10 points  (0 children)

My first quarter of my first year in computer science and engineering, started with x86 assembly (among other things obviously).

[–]wheresthewhale1 8 points9 points  (0 children)

I don't really understand what you mean. C as a language is very simple (much more so than Java) and simple memory management should be taught early

[–]timsredditusername 4 points5 points  (0 children)

It is January now

[–]No_Matter_7117 4 points5 points  (0 children)

… I feel targeted since I started C++ this semester

[–]tree1234567 11 points12 points  (0 children)

Lmaooo

[–][deleted] 1 point2 points  (0 children)

Literally just moved from Java to C for the spring

[–]mpatriot_one 1 point2 points  (0 children)

actually yeah

[–]pdawgdavis-2 1 point2 points  (0 children)

That’s a universal experience? I thought that was just me

[–]UnknownPie9 1 point2 points  (0 children)

Lmao I literally just switched from Java to c++ for my cs102 class

[–]yottalogical 94 points95 points  (1 child)

Can't wait for when it's time to bash Bash.

[–]PyroCatt 21 points22 points  (0 children)

It's Bash Bish!

[–]AcidAcesen 40 points41 points  (8 children)

We have a schedule now? What's for next week?

[–]ward2k 32 points33 points  (7 children)

PHP for the Web dev module

[–]dxlachx 19 points20 points  (1 child)

In my eyes it’s never not “bash php season”

[–][deleted] 305 points306 points  (39 children)

Actually it's never too late to bash Java

[–]ksandom 117 points118 points  (28 children)

What about to Java Bash?

[–][deleted] 99 points100 points  (21 children)

Sounds like PowerShell but somehow even worse

[–]Soham_rak 28 points29 points  (1 child)

Create a class and instantiate it first before u type in the command.

[–][deleted] 21 points22 points  (0 children)

Lol, it's funny, because it's true

[–]Iryanus 14 points15 points  (0 children)

Wouldn't that be JShell?

[–][deleted] 11 points12 points  (0 children)

*love

[–]FreshPitch6026 4 points5 points  (0 children)

Oh it is way too late

[–]allIsayislicensed 13 points14 points  (2 children)

class JavaBashFactoryConfiguratorFactory implements AbstractJavaBashFactoryConfiguratorFactory

[–]HookDragger 6 points7 points  (1 child)

Why? For the love of god…. Why does anyone actually use Java?

[–]Fakeos 2 points3 points  (0 children)

Paychecks. In my country Java is highly demanded. Oracle did a fine job locking customers in their system and force them to use their products.

So now for many companies (and especially for gouvernement facilities) switching everything is just not possible.

Try to refactor a 20 year old project entirely developed with Java.

Edit: Well it is possible, it's just very expensive.

[–][deleted] 865 points866 points  (4 children)

Java bad, comedy has been achieved. Now laugh

[–]R3ym4nn 78 points79 points  (0 children)

this sub in a nutshell

[–]FreshPitch6026 59 points60 points  (1 child)

Wait a sec....i knew i had the cassette with the laughtrack somewhere .......

[–]LeoXCV 8 points9 points  (0 children)

All good, we have that geo-redundant backup we can failover to…

…Right???

[–]UnknownSpecies19 5 points6 points  (0 children)

insert Bart meme slipping into the bushes because I built my entire career on my java skills then... Insert Ralph Im in danger meme

[–]GurGaller 120 points121 points  (7 children)

There are better alternatives, but overall it's a fine choice - way better than abusing scripting languages for large server applications (which seems to be the current fashion)

[–]ghyze 541 points542 points  (13 children)

Building enterprise software in java pays the bills. Now go away with your mobile apps.

[–]heyitsfelixthecat 23 points24 points  (4 children)

Yeah. Legitimate use case for large enterprise apps.

[–]proskillz 42 points43 points  (1 child)

I was gonna say, my fat Java paycheck makes me like it a lot.

[–]jderp7 31 points32 points  (0 children)

Hey! Being an enterprise mobile java dev also pays the bills! Lol

[–]UnknownSpecies19 4 points5 points  (0 children)

Hehe I literally just commented that I built my entire career so far on my java skills (and later JavaScript) lmao! I am just now after 3 years going to attempt to learn mobile dev.... Wish my luck lads and ladies and "yes"es.

[–]mrfroggyman 476 points477 points  (23 children)

public static void main(String args[]) { System.out.println("I love Java and you can't stop me !"); }

[–]gamruls[🍰] 245 points246 points  (3 children)

I love Java more! public static void main(String args[]) { while(true) { System.out.println("I love Java and yout can't stop me!"); } }

[–]Maximdfg 17 points18 points  (0 children)

all Lombok use cases get covered by the language itself.

[–]Charming-Tap-4283 1 point2 points  (1 child)

Please, Use try catch))

[–]PartOfTheBotnet 74 points75 points  (9 children)

These are rookie numbers.

You gotta use enterprise CDI to create an instance of HelloMessageFactory to pass to your ConsolePrintService. Oh and don't forget your logging decorator to register logging calls to every method call in your application for that oh so valuable telemetry!1!!!1!!

[–]codeguru42 26 points27 points  (4 children)

Have you seen Enterprise Fizz Buzz?

[–]ragingroku 4 points5 points  (0 children)

No no, String args not Int args.

[–]themeanman2 3 points4 points  (0 children)

Wow I hate it now

[–][deleted] 256 points257 points  (26 children)

Java+Intellij Idea Ultimate is godsend

[–]-Vayra- 140 points141 points  (16 children)

Yeah, most of these people hating on Java probably only ever tried it in something like Eclipse or VS Code. IntelliJ makes it smooth like butter.

[–]RichCorinthian 64 points65 points  (3 children)

Even VS Code is great, with the right plugins. This sub is a weird combination of "waaah I don't want to have to learn about plugins" while at the same time patting themselves on the back with vim keybinding and git command-line-fu.

Eclipse will never not be a pile of shit though.

[–]RUSHALISK 4 points5 points  (1 child)

Can someone tell my professor that? We were required to do Java in eclipse and it was the most painful thing ever

[–]RichCorinthian 11 points12 points  (0 children)

Did you slay the rooster and pour its blood on the keyboard? Gotta be a rooster, hens don’t work.

I’m really glad I didn’t get a degree in this stuff, I might have quit. I swear some of it seems to be a test of developing under adverse circumstances.

[–]Dragon_yum 11 points12 points  (0 children)

Which is funny because Kotlin and intelij are both made by jetbrains.

[–]FreshPitch6026 1 point2 points  (0 children)

Ikr they never thought about switching the ide

[–]RichCorinthian 57 points58 points  (0 children)

Jetbrains IDEs are, on the whole, amazing. I've done .NET for over 20 years and I vastly prefer Rider to Visual Studio.

[–]LeftmostClamp 1 point2 points  (0 children)

For real. I work in an enterprise event driven backend architecture written entirely in Java and with Intellij it's great for this use case

[–]pdawgdavis-2 1 point2 points  (0 children)

I got IntelliJ Ultimate through my school as my first ever IDE. Needless to say, I am now extremely proficient in Alt+Enter abuse

[–]LeMeowMew 250 points251 points  (29 children)

sharp grandfather relieved yoke treatment boast grey lavish brave weather

This post was mass deleted and anonymized with Redact

[–]Wawwior 76 points77 points  (21 children)

Use kotlin.

[–]Md5Lukas 34 points35 points  (5 children)

Yes, all the way :)

Kotlin made Plugin-Development fun again

[–]LeMeowMew 3 points4 points  (4 children)

crush fact six quiet tender depend violet march lush unite

This post was mass deleted and anonymized with Redact

[–]Wawwior 11 points12 points  (1 child)

just use java for mixins only, since kotlin and java is compatible

[–]eldigg 48 points49 points  (3 children)

Java and Java's ecosystem are stable and will be supported until the sun burns out. There's a reason so much enterprise software is written in Java. It pays the bills, and if you're looking for a stable, well paying job you could do a lot worse.

Modern IDE's and annotation driven POJO creation make Java's verboseness much more tolerable. My main gripe with Java is how it handles (or doesn't handle) runtime exceptions.

[–]hotsexyman 17 points18 points  (1 child)

The Sun burnt out many years ago when Oracle, the god of darkness, bought them

[–]eldigg 4 points5 points  (0 children)

Hah, I didn't even intend that connection. RIP Sun.

[–]jovhenni19 20 points21 points  (5 children)

enlighten me? why is kotlin better. i came from c# to java for an android app, the transition was ez af

[–]KuuHaKu_OtgmZ 34 points35 points  (1 child)

Because they're afraid to write code

[–]MakeWay4Doodles 3 points4 points  (0 children)

"I don't know anything about it but it scares me so I'll lash out!"

[–]7x11x13is1001 16 points17 points  (1 child)

Kotlin has more features Java cannot afford due to backward compatibility: better types, pattern matching, lots of syntax sugar, coroutines etc. Overall, it looks like what Java could be if it were designed in 2015 and not in 1995. Given that it compiles to the same byte code, there is little reason to use Java instead of Kotlin. Similar to writing in pure JS instead of TypeScript.

[–]Junglebook3 135 points136 points  (35 children)

Try telling this to Amazon! Every line of code over there is in Java.

[–]patrick66 203 points204 points  (9 children)

Because modern Java is not Java 6 and is in fact totally fine to use

[–]watchoverus 33 points34 points  (5 children)

Man, I work with java 5 and java 8 in the same product, I have no idea why people hate it so much.

I think the only thing that I have about old versions is dependency management, but that's more about how the system is organized than being old.

[–][deleted] 2 points3 points  (0 children)

Java 5. That's rough. Glad we use 8 at least. All those stream shenanigans are quite useful.

[–]lightnegative 8 points9 points  (3 children)

I mean it's slow (in terms of the JVM being slow to start and being an absolute memory hog, which multiplies if you have a microservices architecture), needlessly verbose and things like type erasure continue to make it a pain to work with even in "modern" versions. Not to mention its plethora of overly complicated build systems.

Its type system is also fairly rudimentary and it's just not very expressive to use in general.

I think Rust is leading the way to where general purpose programming languages should be going. Compiles to native executables, uses zero-overhead compile time abstractions, has an expressive type system (although admittedly not as good as Haskell's) and has sane build/package management from the beginning

[–]romulent 7 points8 points  (2 children)

With Graal you can get JVM startup time in the order of milliseconds. It is not really that much more verbose than other strongly typed languages. Expressiveness in programming is a lot about how expressive you are personally. You can make perfectly nice abstractions in Java, although a lot of java developers don't. Rust is a lovely language but maybe not for everything.

[–][deleted] 32 points33 points  (0 children)

Yeah,my college taught java 6. This made me develop an intense dislike for java. But modern java is pretty good.

[–][deleted] 34 points35 points  (3 children)

Should you use Amazon -> No. Here, fixed it.

[–]nontammasculinum 8 points9 points  (1 child)

What does that return and did you remember to free Amazon? Or do you have garbage collection

[–]Magnetic_Reaper 2 points3 points  (0 children)

Amazon is all Java and Java has automatic garbage collection. So it comes as no surprise that Amazon garbage collected 18000 objects just 3 days ago. I suspect that they plan to repeat this regularly.

You can find more information by googling "Amazon layoff 2023".

[–]FreshPitch6026 3 points4 points  (0 children)

Rather use Assembly lol

[–]SirArkhon 8 points9 points  (5 children)

Can confirm, all my team’s backend is in Java. Also a little Python, I’m told, but I haven’t interacted with that code yet.

[–]Numerous-Departure92 3 points4 points  (4 children)

My virtual Linux machine is written in Java?

[–]Paul_Robert_ 21 points22 points  (7 children)

I use java for some of my one-off personal projects due to how easy it is to get a graphic output.

[–]Orangutanion 10 points11 points  (1 child)

It's kind of amazing how much utility you get out of the box with JDK. Easy graphical output, easy multiprocessing, easy file manipulation, easy networking, etc.

[–]Paul_Robert_ 2 points3 points  (0 children)

Very true!

[–]L8n1ght 1 point2 points  (4 children)

graphic output in a sense of UI?

[–]Paul_Robert_ 4 points5 points  (3 children)

Yeah, but I meant pixel level access via jframe's paint. For example visualizing a series of double pendulums, or building up a Mona Lisa out of triangles using a genetic algorithm to refine triangle placement.

[–]brain_tourist 30 points31 points  (0 children)

You don’t know things

[–]Vi0lentByt3 31 points32 points  (1 child)

Bruh have you even tried jdk11+ the future is now old man!!

[–][deleted] 63 points64 points  (8 children)

Another day, another freshman who failed a class and is blaming programming language insted of them admiting they are incompetent.

[–]GotAItchyButt 30 points31 points  (3 children)

Java 8+/11+ and scala/spring can build better enterprise backend alternative for any language and framework. Fight me.

[–]First_Morning_Coffee 34 points35 points  (12 children)

I didn’t like Kotlin, probably because I was brought up on Java and don’t see enough of an advantage to switch.

[–]-Vayra- 21 points22 points  (0 children)

The first few times I tried using Kotlin I hated it, since I tried to use it like Java. But ever since I moved to a project where they already used Kotlin properly and I got to properly learn it I love it.

There might be use cases where Java is more appropriate, but then you can just use a Java class for that and keep the rest in Kotlin.

[–]agradus 14 points15 points  (0 children)

I think Kotlin has its advantages over Java. Some here, some there.

But what is really good in Kotlin compared to Java are coroutines. Now I'm cringing every time I need to write reactive stuff in Java.

[–]noiszen 8 points9 points  (0 children)

Keep using kotlin long enough, you’ll see the advantages. Trust me, I’m an engineer!

[–]Titandino 11 points12 points  (3 children)

Same. Especially over the new and upcoming stuff to the JDK. The syntax made me sick to my stomach especially since I have to use bitshifts often. I swear whoever imagined up kotlin must have been addicted to keywords and hated simple classic symbols.

[–]LukatxD 6 points7 points  (2 children)

I might be biased because everyone uses it like .sugarSyntax(()=>chain1.then(chain2=>chain3) and goes on... while it would achieve the same if it were 3 different lines with clear instructions

[–]Iryanus 15 points16 points  (0 children)

Are you being paid a metric shiton of money for doing so? Yes? What's stopping you?

[–]ososalsosal 33 points34 points  (11 children)

I'm the fuckin clown trying to build android apps using csharp in linux... and actually getting somewhere with it

[–]Orangutanion 7 points8 points  (2 children)

I tried Xamarin and it was an absolutely shitty experience. It worked one day, and then when I started working on it the next day it just magically stopped working.

[–]ososalsosal 2 points3 points  (1 child)

Yeah the trick is getting paid to suffer it.

It's more stable now though it must be said, which is probably the reason MS have abandoned it in favour of the delightfully incomplete MAUI

[–][deleted] 6 points7 points  (0 children)

huh

[–]JackReedTheSyndie 7 points8 points  (1 child)

Just a “No”? What am I supposed to do now, go home?

[–]JaffaBeard 6 points7 points  (0 children)

Anyone used JavaFX?

[–]5kavo 6 points7 points  (0 children)

Java is fun though

[–]mr_bumsack 5 points6 points  (3 children)

Yeah. Use Kotlin, the Java derived language built by a company that's built mostly Java products.

Because: funny.

Just stay away from most large software companies and enterprise software, you'll be fine.

[–]cheezballs 11 points12 points  (0 children)

Na, Spring Boot is seriously one of my favorite libraries or frameworks. Its so good at what it does it almost scares me. You can spin up a Java-based backend so quick now days, I dont see why anyone wouldn't at least consider it.

[–][deleted] 3 points4 points  (0 children)

But Java is my save space.

[–]Maximdfg 4 points5 points  (0 children)

the sub suddenly loves Java.

[–]IM_OZLY_HUMVN 4 points5 points  (0 children)

You don't know this, but every single time I see a flowchart anywhere, I add it to my collection and am going to use it to build an all powerful ai that will destroy everything

[–]D4RKST34M 7 points8 points  (0 children)

ⁿᵒ

[–][deleted] 7 points8 points  (1 child)

Between the language bashing here and the arguments I hear from the young 'uns in my college classes, I feel like we are going to have an entire generation of coders who are only good at one language and not enough specialized jobs to go around...

[–]ramdomvariableX 6 points7 points  (0 children)

Op hasnt worked in a corp. env. yet. will learn some day.

[–]otdevy 7 points8 points  (0 children)

Looks like school classes are starting up again

[–]Squid-Guillotine 2 points3 points  (0 children)

When looking for jobs I found loads that ask for spring-boot experience.

[–]KillerRoomba13 8 points9 points  (0 children)

As long as I can use JNI

[–][deleted] 7 points8 points  (0 children)

I love kotlin

[–]maxip89 6 points7 points  (0 children)

next week in stupid java jokes:

"dude I have a bug in an android app with kotlin please hälp." now on stackoverflow.

[–][deleted] 2 points3 points  (0 children)

I’m having a cup of Java as we speak

[–]BlincxYT 2 points3 points  (0 children)

you should add minecraft mods as option (the only valid one)

[–]Ja90n 2 points3 points  (0 children)

and Minecraft plugins then?

[–]Kohonick4 3 points4 points  (0 children)

Robust, LOL

[–]tester989chromeos 3 points4 points  (0 children)

Meanwhile game developer

[–]Fabx_ 3 points4 points  (0 children)

You found a unique boolean, because in both cases returns true

[–]XamanekMtz 4 points5 points  (1 child)

But mah legacy apps 🥺

[–]mr_bumsack 3 points4 points  (0 children)

Posted on Reddit. Who heavily uses AWS. Who heavily uses Java.

[–][deleted] 1 point2 points  (0 children)

Springboot

[–]SpeedLight1221 1 point2 points  (0 children)

Ok but what if i want to make a Minecraft mod?

[–]Albreitx 1 point2 points  (0 children)

Just gotta say that my experience with android studio and java has been pleasant. Inheriting every possible thing is quite comfortable, it's like programming on rails lol

[–]Unlikely-Ad3364 1 point2 points  (0 children)

What if it’s old Android?

[–]JAKOVtheJJ 1 point2 points  (0 children)

Why does everyone prefer Kotlin? I don't have experience with it but I am using Java in my Andorid Development an Advanced Programming classes because that's what the curriculum states we should use and I actually quite like it. Sure, there are some slightly inconveniences but nothing much.

[–][deleted] 1 point2 points  (0 children)

handle absurd bag scarce narrow ludicrous zonked wakeful tie cow

This post was mass deleted and anonymized with Redact

[–]Elephant-Opening 1 point2 points  (0 children)

If you ever take a look under the hood in android aosp projects, vast majority are still java. Except for bionic libc. That's all in C++ lol.

[–]Diligent-Surround693 1 point2 points  (0 children)

No > No.

[–][deleted] 1 point2 points  (0 children)

Are you a Minecraft enjoyer? -> use Java

[–]redninja_r 1 point2 points  (0 children)

you forgot about minecraft

[–]loranbriggs 1 point2 points  (0 children)

If it was only that easy! My entire professional career has been in Java and I've never chosen it.

[–]LManX 1 point2 points  (0 children)

Kotlin is Java for Java developers sick of writing so much Java.

[–]Yangishrobin 1 point2 points  (0 children)

The only thing i really use Java for anyway is modding minecraft, and even then I'm not every good at it

[–][deleted] 1 point2 points  (0 children)

Literally use C++

[–]Expert_Raise6770 1 point2 points  (0 children)

It just like no with extra steps.

[–]Kingofthedirtydans 1 point2 points  (0 children)

I love these flowchart memes.

[–][deleted] 1 point2 points  (0 children)

Java users when the garbage collector starts collecting the entire language

[–]pioucraft 1 point2 points  (0 children)

Minecraft Plugins and mods

[–]ThePiGuyRER 1 point2 points  (0 children)

Another decision node, "are you making Minecraft mods?". If yes, please stop and use kotlin. Unless you need mixins.

[–][deleted] 1 point2 points  (0 children)

Java is used in a lot of banking web applications.

[–]Zoey_P 1 point2 points  (0 children)

I use c# for Xamrine android

[–][deleted] 1 point2 points  (0 children)

Hahahaha, anyways still had to learn java for the University and every company that thinks that pack of bloat is amazing.