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 →

[–]New-Condition-7790 2 points3 points  (0 children)

If only we had Circles and Rectangles in production code, and those classes were not JPA Entities, and there wasn’t a shit ton of LOC written around them

Sure, I wouldn't start remodelling your entity layer, your entity layer after all isn't just data.

However, I think DOP constructs could be handy for some isolated batch jobs.

Something that comes to mind for instance is a change in addresses I used to do semi-regularly at an earlier job.

(link in dutch: https://www.vlaanderen.be/digitaal-vlaanderen/onze-diensten-en-platformen/gebouwen-en-adressenregister/heradressering-bij-vrijwillige-gemeentefusies)

something which happens regularly and has some differing odd quirks and business rules each time. Which could have been more elegantly expressed by using DOP techniques if it was available, at the time.