u/vxab

258 post karma · 324 comment karma · joined Dec 2018

  1. 1points

    Best conceptual diagram to understand flow of inbound/outbound traffic on a linux machine?

    0 comments · source

  2. 0points

    Best conceptual diagram to understand flow of inbound/outbound traffic on a linux machine? (self.linux) [Discussion]

    9 comments

  3. 31points

    Will JavaOne conference video be uploaded to YouTube? (self.java)

    12 comments

  4. 1points

    How can I fix this on a leather sofa? (self.furniturerestoration)

    0 comments

  5. 1points

    How can I fix this on a leather sofa? (self.upholstery)

    1 comments

vxab

Which language illustrates the utility of linear/affine types best? Just for someone to understand more on the topic with actual examples?

vxab

I understand their dislike of Lombok because of the way it interacts with the JDK. But as an actual tool it is very useful to end users. And those who say records get rid of its use case do not understand how lombok is more than just its `@Value` annotation.

JPA (as of 2026) is inherently mutable and it makes working with it much more pleasant.

vxab

Well hence the question - to survey what exists and people have found useful.

vxab

why the downvotes?

vxab

thank you

vxab

I have taken courses and understand the principles and have learnt the commands. I just wanted an all-you-can-eat image which connects everything. Was asking if anyone had good reccomendations.

vxab

The class nested inside a method? What is a typical use case for doing that? I can understand creatinga a record inside a method but a whole class?

vxab

thank you

vxab

Are the benefits of final meaning final lost if you are using the unnamed module?

Sorry for the layman question - it is difficult to infer from the JEP text.

vxab

u/pron98 - I have in certain situations used `setAccessible` on a `Constructor` object, to allow me to instantiate an instance of a class I would not be able to do otherwise (inside gnarly framework code).

Will this use of the Reflection API eventually be restricted too?

The JEP only shows the restriction applying to a `Field` currently so I was not sure.

vxab

which version of Java are you comparing Kotlin to?

vxab

It is a marker interface. Serializable is a special case.

vxab

baby step features is actually a great thing.

Why so bitter? You waiting for Valhalla too?

vxab

Why not? Could this not be done for records already, since it has a canonical constructor?

vxab

It's written in the sidebar of the subreddit:

Where should I download Java?

With the introduction of the new release cadence, many have asked where they should download Java, and if it is still free. To be clear, YES — Java is still free.

If you would like to download Java for free, you can get OpenJDK builds from the following vendors, among others:

vxab

Is that JUnit5 or Junit4?

vxab

Seems similar to Axon Framework

vxab

Will System.identityHashCode always return the same thing for two value records with the same fields?

Or is it possible for them to differ?

vxab

Records are limited in some sense because they do not allow inheritance and are intended to represent dumb data. They also don't allow you to hide the canonical constructor - so if you want to force construction through a factory method which performs validation you are out of luck.

Although you are probably right about adding that functionality to your library - thanks for sharing it anyway.

vxab

not sure why you are getting so much hate. A nice library. Can you make it so that you can optionally: (i) have no setter created, (ii) have a "fluent" naming convention i.e. without the "get" and "set" prefixes?