naming-convention / naming-convention-guides Goto Github PK
View Code? Open in Web Editor NEW๐ Collection of naming guides for writing more consistent and readable codes
Home Page: https://namingconvention.org
License: Apache License 2.0
๐ Collection of naming guides for writing more consistent and readable codes
Home Page: https://namingconvention.org
License: Apache License 2.0
Hi guys,
I was thinking to contribute to the Git naming conventions. In the majority of my projects I've use this model (https://nvie.com/posts/a-successful-git-branching-model/) . This branching model encourage certain naming conventions. I am aware that every developer in the community reshapes this model to his own workflow and needs. But I think worth to described the guideline as it was described in first place.
For me this is not a standard, it is just a well know naming convention guideline and I am not sure what is the best way to organice this in the guideline.
If you guys want to integrate cases like this, I would say to add one section to the main Git section with the name Known models
or Common cases
where we can explain in there which naming conventions this case encourage (keeping the same format as the main README).
What do you think?
C# constants should be all caps because, constants being all caps is a recognized convention across multiple languages, python, ruby, java and php, for visual identification, C# consts convention should also be all caps, what do you think ? (if you want me to do it and create a pull request, let me know) , oh and i noticed that, for C# there exist a constant naming convention, its under the enum_naming.md file, (there is a PR waiting to be merged for this)
In the page commit-message-naming.md it says that the body of a commit message should not exceed 72 characters. In the example right after, the body of the commit is a 101 characters long for the first line and 110 for the second.
File: Readme.md (master / dev branch)
Links for https://github.com/naming-convention/naming-convention-guides#naming-convention-topic-list are broken.
Maybe you should use:
/tree/master/
instead of /blob/
The given examples for naming conventions conveniently avoid the hottest debates. In fact, very few style guides I've found even address this question
Relevant style guides
style guide | link |
---|---|
AirBnB, JavaScript Style Guide | https://github.com/airbnb/javascript#naming-conventions |
Google, Java Style Guide | https://google.github.io/styleguide/javaguide.html#s5.3-camel-case |
Microsoft, General Naming Conventions | https://learn.microsoft.com/en-us/dotnet/standard/design-guidelines/general-naming-conventions |
kettanaito/naming-cheatsheet | https://github.com/kettanaito/naming-cheatsheet |
Other variables to consider
XMLHttpRequest
(an actual web standard name, smh. What's to be done when you have two acronyms right next to each other?)Add JavaScript as a topic
We are currently missing the whole topic for JavaScript naming conventions.
Acceptance Criteria:
If it is the first time that you contribute to NamingConvention.org, follow these steps: (you need to have make and yarn available on your machine)
I asked a question on gitter/matrix and although multiple users are in the channel there is no response from anyone. Looking at this repository I'm starting to think it's been abandoned.
Anybody still around?
Hungrian notation should be added to the list of notations in the docs/lexicon page.
Hungarian notation resembles "camelCase" and "PascalCase" with the exception that it has a prefix that denotes some additional semantic meaning (usually data type). For example:
pContractor
is a pointer that points to a Contractor object.bEmployed
is a boolean representing whether someone is employed or not.fHourlyPayRate
is a float representing the amount a contractor is paid per hour.Hungarian notation can be extended to include the scope that the variable exists within. For example:
m_iDaysWorked
represents the number of days someone has worked for, that is stored as an integer and whose value is a member (meaning: is independent for each instance) of a class, in this case of contractor.s_iNumberOfOpenContractorPositions
represents the total number of contractor positions available, stored as an integer. Since this value would be the same for all instances of the contractor class, it is declared and assigned statically on the contractor class itself.More info: https://en.wikipedia.org/wiki/Hungarian_notation.
Personal note: While hungarian notation is falling out of use thanks to more modern development environments and tooling, it is still prevelent in many older and/or larger projects. It is also worth being aware about to prevent confusion among developers from different backgrounds. For instance:
Programmer A creates a variable called iHaveCompletedCourse
, and commits the code to a project. Some time later, Programmer B tries to use or updates the variable iHaveCompletedCourse
and ends up encountering errors. Now they have to spend time trying to determine why a variable they think is an integer, is not accepting an integer value when in fact it was a boolean and the "i" is in fact refering to whether the user themselves have completed a course or not.
The link linking to the page 'Constant Naming' in the README.md file leads to a 404, while the file constant-naming.md works fine.
Currently when users land on the home page, if they click on one of the item in the topic list, after navigating to a policy in a certain topic, the user will be redirected to a wrong URL.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.