Each company has different writing methods, and even different teams within a company will have different writing methods.
But there is always a way of writing that is correct most of the time, and that is the hump.
The camel case writing method has also been verified by experiments. It is the easiest to recognize and the recognition speed is fast. You can read the study on camelback readability here
Personally, I think the so-called specification is the agreement between your front-end and backend. Once the agreement is made and it can meet the needs, then this agreement is your specification.
Each company has different writing methods, and even different teams within a company will have different writing methods.
But there is always a way of writing that is correct most of the time, and that is the hump.
The camel case writing method has also been verified by experiments. It is the easiest to recognize and the recognition speed is fast. You can read the study on camelback readability herePersonally, I think the so-called specification is the agreement between your front-end and backend. Once the agreement is made and it can meet the needs, then this agreement is your specification.
The first one
https://img.hacpai.com/file/2...
There is no standard answer to the style question. Cases can be found in the 3 methods you listed.
I personally use the underline method page_num, which is more readable and uses lowercase letters, which is more suitable for url/uri.
It is recommended to use Douban’s URL design http://www.prower.cn/interact...