Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

About coding convention #177

Answered by ithewei
trunglebka asked this question in Q&A
Discussion options

Hi, I'm in my journey to find handful networking framework in C++ (comming from netty)
IMO, this project is a good fit for me and seem like it is structured good. But after reading through some examples, I see that the coding convention is not consistent especially naming convention. Ex. file name, class name, function name...
Can you tell me the convention you are following so I can easy understand it? If not, I think it's a good point to define some convention to follow. 🤔

You must be logged in to vote

I'm glad you paid attention to this library. Because both c/c++ are used, the naming style does not seem to be uniform. C mainly uses the underscore method and h or hv_ prefix, and c++ mainly uses the camel case method and namespace hv. If you think the reading is not smooth, looking forward your suggest or PR.

Replies: 1 comment 1 reply

Comment options

I'm glad you paid attention to this library. Because both c/c++ are used, the naming style does not seem to be uniform. C mainly uses the underscore method and h or hv_ prefix, and c++ mainly uses the camel case method and namespace hv. If you think the reading is not smooth, looking forward your suggest or PR.

You must be logged in to vote
1 reply
Comment options

Oh, thanks for the answer, I'm just begin to learn C++ without knowledge of C.
The question is silly now :D

Answer selected by ithewei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /