-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
code review #62
base: master
Are you sure you want to change the base?
code review #62
Conversation
return roundNumber(pay, 2); | ||
} | ||
|
||
double calculateSimplePercent(double amount, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
аргумент метода лучше в одну строчку, если они помещаются в 120 символов
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Принято
double calculateSimplePercent(double amount, | ||
double yearRate, int depositPeriod) { | ||
|
||
return roundNumber(amount + amount |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут тоже думаю не стоит переносить
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Аналогично, принято
Scanner scanner = new Scanner(System.in); | ||
|
||
System.out.println("Введите сумму вклада в рублях:"); | ||
amount = scanner.nextInt(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
на мой взгляд приятнее читать код, когда написано int amount = scanner.nextInt(); Сразу видишь какой тип, глазами не бегаешь на верх. Тут, наверное, дело вкуса.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ну да, кому как. Мне, например, удобнее так, но услышал тебя, спасибо.
No description provided.