S
S
Sergey Beresnev2011-11-08 11:46:59
Programming
Sergey Beresnev, 2011-11-08 11:46:59

Should I follow the programming style when implementing the protocol?

The programming style we use says that variables must be in lower case and words must be separated by a dash at the bottom.

So, in theory, the variable that contains the status of the order should be named: But in the protocol
order_status

that I implement, it is indicated:
OrderStatus

clarity. But I am tormented by vague doubts…

What do you think?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Infernal, 2011-11-08
@sectus

You need to use your programming style. A person reading the protocol spec will be able to understand that OrderStatus is order_status. But if you have lower case and underscores in the project part, and CamelCase in the part, then what's the point of the style standard?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question