ccn-lite icon indicating copy to clipboard operation
ccn-lite copied to clipboard

inconsistent naming convention

Open basilkohler opened this issue 11 years ago • 2 comments

example: pkt-ccntlv-enc.c: ccnl_ccntlv_fillContentWithHdr instead of ccnl_ccntlv_fill_content_with_hdr

what should the convention be? Always a_b?

basilkohler avatar Oct 29 '14 10:10 basilkohler

On Wed, 29 Oct 2014, Basil Kohler wrote:

example: pkt-ccntlv-enc.c: ccnl_ccntlv_fillContentWithHdr instead of ccnl_ccntlv_fill_content_with_hdr

what should the convention be? Always a_b?

No, I prefer camelcase for the functional desciption and x_y for the categories (ccnl software, ccntlv library)

tschudin avatar Oct 29 '14 15:10 tschudin

In that case there there are other incosistent names like ccnl_get_face_or_create or ccnl_populate_cache.

This is a minor issue ofcourse and i would give it a low priority if possible with the github interface. But it is probably a good idea to make the naming consistent going forward and maybe write the naming convention down somewhere so that everyone is aware of them.

basilkohler avatar Oct 29 '14 15:10 basilkohler