You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Overall good job! The structure of your code is easy to understand and the use of Mockito helps a lot with your testing. There is however a concerning lack of documentation and you should work on it ASAP. Furthermore, the code style is not consistent and lots of part would heavily benefit from spacing.
We found the following comments:
Your Repository is too bloated. Functionalities such as users, friends, games, statistics, ... could be split into different repositories to make the codebase easier to manage and re-use.
All of your public functions should be documented (except maybe the really obvious ones). This principle applies especially to the interfaces and abstractions. Most of your code is not documented at all and it heavily hinders its comprehension.
There is a problem with the code organization within your files and classes. Functions, variables and objects are mixed together randomly. Try to apply the following guideline: constants first, then fields/properties, then companion objects, then functions and event listeners. An example is the OfflineGameService.kt file.
Your code is hard to read because you don't follow common layout principles. We see a lot of comments with no spacing after the //, some spaces missing before/after brackets or types, ... Don't forget that Android Studio has an automatic code formatter that you should run on the project before you commit. It is present everywhere, but a perfect example is the Cache.kt file.
You have a tendency to drop extremely dense chunks of code in your functions without any spacing or dinstinction between the lines. Even inside a same function adding spacing between different parts of the code helps. An example is the TicTacToeGame.kt file.
RockPaperScissors
Overall good job! The structure of your code is easy to understand and the use of Mockito helps a lot with your testing. There is however a concerning lack of documentation and you should work on it ASAP. Furthermore, the code style is not consistent and lots of part would heavily benefit from spacing.
We found the following comments:
Use it to log.
The text was updated successfully, but these errors were encountered: