News for hackers. Stuff that matters.
Re:Rife Is a Framework Experiment by revskill on Monday February 20, 2023 @03:00AM (#34866074)
I thought "modern Java" means classless ?

Why do i need to put some code inside another superficial class here ?

Re:Rife Is a Framework Experiment by winrid on Monday February 20, 2023 @03:07AM (#34866097)
Everything in java is a class, not sure what you mean.

Personally, it's nice from an operations perspective. Makes debugging performance problems a lot easier.

Re:Rife Is a Framework Experiment by revskill on Monday February 20, 2023 @03:08AM (#34866109)
Then it's "old Java", not "modern java" ?
Re:Rife Is a Framework Experiment by hibbelig on Monday February 20, 2023 @03:29AM (#34866232)
Are you thinking of JavaScript? In Java you can’t even write hello world without a class.
Re:Rife Is a Framework Experiment by vips7L on Monday February 20, 2023 @09:25AM (#34868339)
Re:Rife Is a Framework Experiment by mrkeen on Monday February 20, 2023 @03:20AM (#34866168)
> I thought "modern Java" means classless ?

Nope.

> Why do i need to put some code inside another superficial class here ?

Which class is the superficial class?

Re:Rife Is a Framework Experiment by dgb23 on Monday February 20, 2023 @04:00AM (#34866386)
Are you thinking of records?
Re:Rife Is a Framework Experiment by re-thc on Monday February 20, 2023 @07:12AM (#34867383)
It's still a class :p
Re:Rife Is a Framework Experiment by int_19h on Monday February 20, 2023 @04:18AM (#34866479)
Only if by "modern Java" you mean Kotlin.

C# has top-level functions and even top-level code these days, but it evolves a lot faster.

Re:Rife Is a Framework Experiment by pjmlp on Monday February 20, 2023 @07:05AM (#34867341)
When Kotlin ships with their own JVM replacement, we might think about calling it "modern" Java.
Re:Rife Is a Framework Experiment by int_19h on Tuesday February 21, 2023 @01:42PM (#34884989)
I did not mean suggest that it is one. But many people outside of the ecosystem seem to treat it this way after Google started promoting it, which would explain OP's confusion.
Re:Rife Is a Framework Experiment by bzzzt on Monday February 20, 2023 @04:30AM (#34866546)
"Modern Java" is not formally defined, but most people seem to associate it with Java for Microservices (small runtimes instead of ancient Java EE), functional programming, streams, reactive programming and generally using newer (Java 8+) language constructs.

There's a lot more to it than obsessing over a single line of boilerplate code...