Skip to content
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

codestyle1 #1

Open
buter-brod opened this issue May 22, 2018 · 0 comments
Open

codestyle1 #1

buter-brod opened this issue May 22, 2018 · 0 comments

Comments

@buter-brod
Copy link
Collaborator

jsonResponse["survey"][count % 5]["specialst"]["specialist_id"] = std::string(res->getString("expert_id_fk"));

codestyle:

  1. jsonResponse["survey"][count % 5] можно вынести и не дублировать в каждой строке.
  2. магическое число 5 следует объявить.
  3. напрашивается форматирование, где одинаковые куски ("= std::string(res->getString(") окажутся друг под другом для удобства чтения.
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

No branches or pull requests

1 participant