jackfrost13 / observer-pattern

0 stars 1 forks source link

Try not to use variable names like cd sd sd2 #1

Open raveesh-me opened 6 years ago

raveesh-me commented 6 years ago

https://github.com/jackfrost13/observer-pattern/blob/7d06046d335df2e9cc39da0faa33b32463f3d0c9/main.dart#L7

Whenever a collaborator has to ask what does cd mean, the code is not clean. Always prefer longer names to shorter ones. use statisticsDisplay and statisticsDisplay02 instead.

raveesh-me commented 6 years ago

recommended reading: clean code also this variable naming guideline in effective-dart: https://www.dartlang.org/guides/language/effective-dart/design#names