Oleg Varaksin
Dec 7, 2024

I mostly agree with the author. But if you're adding such utility / helper functions to the BO (business object), please make them static. Just pass the BO itself to the static method. In my real-time application we have e.g. classes like Point, Line, Path,... which are instantiated very frequently, and there is a huge amount of such instances. If the methods are not static, every class instance would have them in memory. That's not good.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Oleg Varaksin
Oleg Varaksin

Written by Oleg Varaksin

Thoughts on software development. Author of “PrimeFaces Cookbook” and “Angular UI Development with PrimeNG”. My old blog: http://ovaraksin.blogspot.de

No responses yet

Write a response