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,...
  • May 16, 2022
  • 0 Comments
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...
  • May 5, 2022
  • 0 Comments
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...
  • April 16, 2022
  • 0 Comments
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,...
  • April 4, 2022
  • 0 Comments