Skip to content

калькулятор счета#1

Open
MedvedevMeke wants to merge 4 commits intomainfrom
master
Open

калькулятор счета#1
MedvedevMeke wants to merge 4 commits intomainfrom
master

Conversation

@MedvedevMeke
Copy link
Copy Markdown
Owner

pr1


class Input {

public static int inputCheckInt(){
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Лучше использовать такие названия, чтобы было сразу понятно, для чего данный класс/метод/переменная нужны. Например, метод inputCheckInt() нужен для обработки ввода количества людей - лучше и назвать соответствующе, например, calculatePersons(). То же касается других названий - inputCheckDouble(), класса Input, Stuff и др.
Эта тема хорошо раскрывается во 2 главе книги Роберта Мартина "Чистый код", рекомендую к прочтению. Также на хабре есть краткий конспект книги: https://habr.com/ru/post/485118/

}
return rubResult;
} //рубль/ля/лей

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не хватает фигурной скобки

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants