eMoflon / emoflon-neo

A Neo4j-based implementation of eMoflon
Eclipse Public License 2.0
6 stars 2 forks source link

[Conventions] We need some naming conventions for all entities #183

Closed anthonyanjorin closed 5 years ago

anthonyanjorin commented 5 years ago

Hi all,

we need some naming conventions for all our entities.

Any suggestions? Should all be capitalised? Not? Only some entities? How about verbs vs. nouns?

anthonyanjorin commented 5 years ago

And? Any suggestions?

maxischm commented 5 years ago

I think rules should definitely have some verb in it describing the action that is performed with it. Also, I like the capitalisation rules Java has for its methods, i.e. start with lower case and then camel case and being consistent with it for all entities would make sense since being consistent was one of the basic ideas of the syntax and editor.

anthonyanjorin commented 5 years ago

Ok, so based on Java:

But how about models, patterns, constraints?

maxischm commented 5 years ago

Maybe a combination of nouns and adjectives (and how those other types of words are called)? For example something like simpleBoard for models and patterns or noFigureOnField for constraints is possible. It must contain a noun though otherwise I don't think it makes much sense. And then capitalization like Java objects/variables (start with small letter, camel case) since they all more or less instantiate the metamodel (class)?

anthonyanjorin commented 5 years ago

Ok, so:

maxischm commented 5 years ago

Yes, that would be my suggestion.