Frontmatter
| number | 3199 |
| title | INFOREQ: PascalCase in namespaces |
| author | ThorstenSuckow |
| category | General |
| createdAt | Jun 25, 2022, 5:33 PM |
| updatedAt | Jun 29, 2022, 6:15 AM |
| closed | Open |
| closedAt | |
| routingDispositionSchemaVersion | discussion-routing-disposition.v1 |
| routingDisposition | undetermined |
| routingDispositionReason | untrusted-or-unclassified-root-author |
| routingDispositionEvidence | [] |
| contentTrust | |
| projected | |
| quarantined | 1 |
| signals | [] |
INFOREQ: PascalCase in namespaces


As mentioned inside Slack, it is mostly PascalCase for namespaces and class names, the rest is lowercase.
examples:
- Covid.view.country.Helix
- Neo.data.RecordFactory
- Neo.main.addon.LocalStorage
- Neo.table.Container
- RealWorld.view.user.ProfileComponent
Makes sense or would you do it differently?

Okay, got it. Some companies like to use abbreviations for their app names (first namespace part) and I'm more used to camelCase all along except for PascalCase for class names. Does it make sense to make first and last part of the fqn PascalCase? I guess this is just personal taste and does not affect functionality though:
import com.domain.namedPackage.MyClass;
vs.
LoginHelloWorld.view.LoginFormContainer
as a valid example for current conventions - although the app name might be chosen badly - leaves me visually confused... 👀
Is the PascalCase for the app-name a SHOULD BE or a MUST BE?

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.