Skip to content

Проектная работа №1: «Калькулятор счёта» - #1

Open
Vegrow wants to merge 2 commits into
mainfrom
dev
Open

Vegrow wants to merge 2 commits into
mainfrom
dev

Conversation

@Vegrow

@Vegrow Vegrow commented Nov 3, 2023 •

Copy link
Copy Markdown
Owner

Шеф, я сделяль!
(Я студент высшего образования программы онлайн-бакалавриата, трек Android-разработки)

public class Calculator {

private final static String FINISH = "завершить";
private final UserInteractor mUserInteractor;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Возможно вас учат венгерской раскладке, но сейчас никто так в андроид разработке не пишет.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

хорошо бы увидеть пример, как пишут) без префикса?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Да, примерно вот так это выглядит
userInteractor
Можно почитать вот тут
https://ru.wikipedia.org/wiki/CamelCase

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

mUserInteractor.showProductAddSuccessMessage(product);
totalSum += product.getCost();
mStringBuilder.append(product.getName()).append("\n");
} while (!FINISH.equalsIgnoreCase(mUserInteractor.requestString()));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Я бы наоборот, сравнивал введенную строку с твоей константой. Хотя это наверно скорее вкусовщина

@AleksandrIlinskii

Copy link
Copy Markdown

Окончание слова "рубль" с 11 до 19 неверно
image

- добавлена минимальная длина для названия позиции
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.

2 participants