Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using interfaces / traits / composition over inheritance ? #15

Open
s-celles opened this issue Aug 16, 2018 · 0 comments
Open

Using interfaces / traits / composition over inheritance ? #15

s-celles opened this issue Aug 16, 2018 · 0 comments

Comments

@s-celles
Copy link
Owner

s-celles commented Aug 16, 2018

Using
Traits.jl https://github.com/mauro3/Traits.jl
SimpleTraits.jl https://github.com/mauro3/SimpleTraits.jl
Traitor.jl https://github.com/andyferris/Traitor.jl (see andyferris/Traitor.jl#8 )
FieldTraits.jl https://github.com/SimonDanisch/FieldTraits.jl
union types
multiple inheritance
could help to avoid to repeat a lot of code

https://en.wikipedia.org/wiki/Composition_over_inheritance

IWidget
ITouchable
IColourable
IFontStyleable
ICallback(able)
IBooleanValued
INumericalValued
IStringValued

Maybe I should consider drawing a UML diagram
https://creately.com/
https://www.genmymodel.com/
https://yuml.me/diagram/nofunky/class/draw
http://www.umlet.com/
https://www.gliffy.com/examples/uml-diagrams
https://online.visual-paradigm.com/solutions/free-uml-tool/
http://staruml.io
https://www.modelio.org

@s-celles s-celles changed the title Using interface / Traits.jl Using interfaces Aug 16, 2018
@s-celles s-celles changed the title Using interfaces Using interfaces / traits / composition over inheritance ? Aug 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant