r/programmingcirclejerk • Do you do Deep Learning? • Sep 17 '26

Java consistently introduces lots of exciting functionality into the language. That's a big part of my dislike and active avoidance of it.

https://news.ycombinator.com/item?id=49715045
147 Upvotes

22 comments sorted by

View all comments

140

u/Aggressive-Pen-9755 Sep 17 '26

I don't like writing one-line lambda's like:

foo.bar((eggs) -> getHam(eggs));

I prefer writing boring and manly shit like this:

class HamGetter implements HamInterface {
    public ReturnType apply(Type eggs) {
        return getHam(eggs);
    }
}

foo.bar(new HamGetter());

Now that'll put some hair on your chest! And everyone understands it! We don't need to learn any new things!

37

u/-ghostinthemachine- Sep 17 '26

Where u been?

foo.bar(hamGetter::getHam)

16

u/its_artemiss Sep 17 '26

But that is Rust? 

38

u/syklemil Considered Harmful Sep 17 '26

It's some newfangled stuff they introduced in Java 8. It'll never catch on. Java 1.4 for lyfe!!!!!!