--

;-)

Actually what Vue.js / React / etc. try to do today with their components are OO (see https://v3.vuejs.org/guide/single-file-component.html#introduction), with descriptive / functional approach.

"One important thing to note is that separation of concerns is not equal to separation of file types. In modern UI development, we have found that instead of dividing the codebase into three huge layers that interweave with one another, it makes much more sense to divide them into loosely-coupled components and compose them. Inside a component, its template, logic and styles are inherently coupled, and collocating them actually makes the component more cohesive and maintainable." --> Exactly what OO (== attributes and behaviours) does it already ;-)

Such a structure also available today in Java / GWT, example: Complex Data Table component in Java / Domino: https://github.com/DominoKit/domino-ui/blob/master/domino-ui/src/main/java/org/dominokit/domino/ui/datatable/DataTable.java

--

--

Responses (1)