journal/2021-06-06--13-43-12Z--service_oriented_programming.org

This commit is contained in:
Yann Esposito (Yogsototh) 2021-06-08 00:36:06 +02:00
parent 2c5fb583be
commit 918eea926e
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -43,3 +43,11 @@ foo-service-methods
def foo-service
create-service( config-service, bar-service, baz-service)
#+end_src
The component will form an acyclic graph of dependencies.
Principles:
A service contain an internal state.
Every method of the service can access this internal state.
No OOP is needed, only functions.