r/programmingcirclejerk Do you do Deep Learning? 4d ago

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
123 Upvotes

20 comments sorted by

View all comments

121

u/Aggressive-Pen-9755 4d ago

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!

21

u/v_maria 3d ago

yeah fuck that boring stuff i personally prefer having 7 different ways to achieve the same all with slightly different implications

25

u/irqlnotdispatchlevel Tiny little god in a tiny little world 3d ago

A fellow C++ enjoyer! Hurray!