JavaRush /Java Blog /Random EN /Kitchen(); Rules.
terranum
Level 28
Milan

Kitchen(); Rules.

Published in the Random EN group
Kitchen();  Rules.  - 1 Kitchen();
  • Target:
Write beautiful, readable code using the best algorithm. Share and gain experience, enjoy communication, help and explain to the weak, like and learn from the strong. Creativity is welcome!
  • Rules:
After an indefinite period of time, the task is posted. First, let's try our luck in simple problems involving one-dimensional arrays. There are no special rules. The main thing I would like to emphasize is that we need to post working code whenever possible and improve it. Plus I would like to pay special attention to testing. In general, nothing complicated. You will see everything for yourself. I hope you like it and get something out of it. One big request : all these tasks can be easily found through Google and it will not be interesting to continue if someone posts them in one pack on one day. I don’t know what will come of this, but let’s try! If all this is interesting to someone, then we will continue. Thank you for attention! System.exit(0);
Recommendations for coding
  • Classes and interfaces.
The first letter of a name must be capitalized and if the name contains several words, then each first letter in subsequent words should be capitalized (in other words, use camelCase). Class names should be made nouns. For example: Cat FootballTeam Interface names should be given in the form of adjectives: Runnable Serializable
  • Methods.
The first letter should be lowercase and then follow camelCase recommendations. Names should be given as a combination of verbs and nouns. For example: getNumber doCalculation setCustomerName
  • Variables.
As with methods, stick to camelCase and assign meaningful names so that it is clear what this variable is for without any comments: labelText myAwesomeString
  • Constants.
Constants in Java are created using the reserved words static and final. Constant names should be written in capital letters only, and words in the name should be separated by underscores: MY_CONST
Comments
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION