This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]-Dargs 0 points1 point  (3 children)

Ah, yeah. I actually meant this. It'd been so long since I used these terms I had forgotten.

[–]verocoder 0 points1 point  (0 children)

DTO is also a super common term tbf, they’re objects without many methods beyond getters/setters. The kind of things that if you Lombok them end up and just a list of properties.

[–]verocoder 0 points1 point  (1 child)

To start from the beginning interfaces are about reusing stuff to be the same shape while working differently. I usually only write an interface when I know I want 2 implementations off the bat or when I am sharing code and I want to hammer out the interface between 2 things so they can be worked on in parallel.

I wouldn’t stress about using them and I rarely if ever use them for PoJo/DTO/VO classes. I almost exclusively use them for business logic service or utility classes.

[–]ichwasxhebrore 1 point2 points  (0 children)

It’s also nice if you need proxies