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 ID SRConstants.ASPECT_STEREOTYPE_ID poor practice #3

Open
turbogeek opened this issue Apr 10, 2020 · 0 comments
Open

Using ID SRConstants.ASPECT_STEREOTYPE_ID poor practice #3

turbogeek opened this issue Apr 10, 2020 · 0 comments

Comments

@turbogeek
Copy link

Using ID SRConstants.ASPECT_STEREOTYPE_ID poor practice.
A) Models must retain the ID across model implementations which means that if you are using MagicDraw/Came versus Sparx or IBM, you may not have the same ID.
B) Loss of context provided by the canonical path. If we are only using an element ID, how do I tell the user it is missing and more importantly 'what' is missing?

Yes, there is less code (a little faster too, but efficiency is can be attained by lookup of an ID only once), but no useful errors when things go wrong.

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