Hikapasya05 / CodeRefactoring1

0 stars 0 forks source link

Invalid Names #2

Open Hikapasya05 opened 1 year ago

Hikapasya05 commented 1 year ago

Example 1

class battle_defeat_james : AppCompatActivity() {
    private lateinit var binding: ActivityBattleDefeatJamesBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        ...
    }
}

This class is for the activity of the player vs James battle. The naming of the class is incorrect because an activity should be camel case order, not snake case.

Invalid namings violate the principle of clarity and readability, which is crucial for maintaining code quality and facilitating collaboration among developers.

LidiaIvanova commented 1 year ago

0,2