INFOREQ: PascalCase in namespaces #3199
Replies: 3 comments
-
As mentioned inside Slack, it is mostly PascalCase for namespaces and class names, the rest is lowercase. examples:
Makes sense or would you do it differently? |
Beta Was this translation helpful? Give feedback.
-
Okay, got it. Some companies like to use abbreviations for their app names (first namespace part) and I'm more used to import com.domain.namedPackage.MyClass; vs.
as a valid example for current conventions - although the app name might be chosen badly - leaves me visually confused... 👀 Is the |
Beta Was this translation helpful? Give feedback.
-
Hi Torsten, PascalCase for app names is optional. Neo is storing app names inside a json file, since the build programs will make the app folder lowercase => we can figure out, how the internal namespace should be. Of course you could rename the folder, in case you want to use camelCase or whatever. Inside the framework, I am using lowercase for all folder names, but this is optional as well. From a consistency perspective, we should keep it this way (or create a new concept and change it everywhere). inside the app / workspace scope, you can name folders however you like to. I definitely agree that our workshop demo app name is not a good choice @davhm. Way too long. tl-br: should be and NOT must be. |
Beta Was this translation helpful? Give feedback.
-
As a follow up to #3193, I wanted to understand the reasoning behind the usage of PascalCase instead of camelCase with namespace parts, since this is something you rarely see nowadays. @tobiu can you shed some light on this?
Beta Was this translation helpful? Give feedback.
All reactions