poly
Search…
Context
The component interfaces bring context to the development experience.
Object oriented languages give us context by using objects. Let’s say we work in an object oriented language and that we want to save the object userToBeSaved. If we type userToBeSaved followed by a ., the intellisense in the IDE will show us a list of available methods for that object, for example persist:
1
userToBeSaved.persist(db)
Copied!
...or if implemented as a service:
1
userService.persist(db, userToBeSaved)
Copied!
With Polylith we get the same level of support from the IDE by first importing the user interface and then typing:
1
(user/
Copied!
...now the IDE will list all available functions in the user interface and one of them would be persist!:
1
(user/persist! db user-to-be-saved)
Copied!
Last modified 2mo ago
Copy link