-
Notifications
You must be signed in to change notification settings - Fork 470
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
[SPIKE] SDK: Public API Naming Convention #31152
Comments
Note:What we're aiming for here is to standardize our public API to make it more readable, memorable, and closely aligned with dotCMS branding. In this case, using the dot prefix could be a suitable choice. However, this ticket isn't simply about renaming the Public API. We need to conduct some research on SDK standards, adapt them to meet our specific requirements, and then propose our approach to other developers for feedback. |
FindingsThe Prefix in SDK ComponentsThe standard requires a prefix for components exposed in the library, giving us the flexibility to handle internal components however we choose. In the Angular SDK, the exposed component is A nice-to-have improvement would be to standardize internal components to use the prefix consistently. In some components we use the prefix
|
@fmontes I think the prefix decision is a product decision, so it would be very helpful to read your opinion cc: @rjvelazco @zJaaal |
Final Decisions on Naming ConventionsAfter discussing with the team, these are the final decisions: We will use the prefix
|
Document resulting from this research: SDK Rules and recommendations |
Important
Time Frame: 4-5 hours
Parent Issue
#30943
Overview
There is a need to review and normalize the naming convention used for the public API across these SDKs to ensure consistency, maintainability, and clarity for developers working with the SDKs.
Task
Define a standard for naming variables, classes, and functions exported to the client.
Define/Answer this questions
DotCms
orDotcms
In the
@dotcms/client
package, we use the naming conventionDotCmsClient
, while in the@dotcms/react
package, we useDotcmsLayout
. Which naming convention is correct—uppercase "C" or lowercase "c"? What is the industry standard for naming conventions in such cases? Is it suitable for us to usePascalCase
?Scope
@dotcms/client
,@dotcms/react
,@dotcms/angular
, and@dotcms/experiments
Proposed Objective
Core Features
Proposed Priority
Priority 3 - Average
Important
What we're aiming for here is to standardize our public API to make it more readable, memorable, and closely aligned with dotCMS branding. In this case, using the dot prefix could be a suitable choice.
However, this ticket is about conducting some research on SDK standards, adapting them to meet our specific requirements, and then proposing our approach to other developers for feedback.
Assumptions & Considerations
The text was updated successfully, but these errors were encountered: