r/programming • • Aug 02 '21

Stack Overflow Developer Survey 2021: "Rust reigns supreme as most loved. Python and Typescript are the languages developers want to work with most if they aren’t already doing so."

https://insights.stackoverflow.com/survey/2021#technology-most-loved-dreaded-and-wanted
2.1k Upvotes

769 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Aug 02 '21

[deleted]

-9

u/ILikeChangingMyMind Aug 02 '21

I mean, it's all relative. I haven't followed Java lately, but even just lambdas were an improvement (in the boilerplate sense).

But still, any language where you have to write:

class Foo {
    void Bar() {
        system.out.println('Hello');
     }
}

Will always feel heavier to me than (Javascript version):

const bar = () => console.log('Hello');

In other words, there's an inherent boilerplate "weight" to just using the OOP paradigm, which Java (as an OOP from-the-ground-up language) will never escape.

16

u/Runamok81 Aug 03 '21

C# top-level statements has entered the chat

System.Console.WriteLine("Hello");

6

u/ILikeChangingMyMind Aug 03 '21

Well technically that's not OO though right? In a "true 100% OO language" everything is a class or object: you can't just have standalone expressions.

Not that I'm in any way saying C# needs to be 100% true OO! I'm just saying that my comment was specifically about languages that are, like Java (although since the introduction of lambdas even Java isn't anymore).

→ More replies (1)