Is there a convention for naming enumerations in Java? My preference is that an enum is a type. So, for instance, you have an enum Fruit{Apple,Orange,Banana,Pear, ... } NetworkConnectionType{LAN,Data_3g,Data_4g,...
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by...
This question’s answers are a community effort. Edit existing answers to improve this post. It is not currently accepting new answers or interactions. For many questions the answer seems...
I haven’t used C very much in the last few years. When I read this question today I came across some C syntax which I wasn’t familiar with. Apparently...
When using the xhtml1-transitional.dtd doctype, collecting a credit card number with the following HTML <input type="text" id="cardNumber" name="cardNumber" autocomplete="off"/> will flag a warning on the W3C validator: there is...
I’m designing a database table and asking myself this question: How long should the firstname field be? Does anyone have a list of reasonable lengths for the most common...
It’s common in C++ to name member variables with some kind of prefix to denote the fact that they’re member variables, rather than local variables or parameters. If you’ve...
This question’s answers are a community effort. Edit existing answers to improve this post. It is not currently accepting new answers or interactions. C++17 is now feature complete, so...
Enums are classes and should follow the conventions for classes. Instances of an enum are constants and should follow the conventions for constants. So enum Fruit {APPLE, ORANGE, BANANA,...