DEV Community

Discussion on: Sometimes, the elegant implementation is just a function

 
awwsmm profile image
Andrew (he/him)

Ah I see. The Utils pattern really does fly in the face of OOP, doesn't it?

Thread Thread
 
mortoray profile image
edA‑qa mort‑ora‑y

Yes.

Thread Thread
 
bertilmuth profile image
Bertil Muth

I understand that you see this as a problem, conceptually. In practice in Java, you could statically import the class and use the methods like functions. In that case, the class would ask more like a namespace than a „true“ OOP class.