Skip to content

04 weather client#9

Open
mr-SlavaK wants to merge 25 commits intodriverdevteam:masterfrom
mr-SlavaK:04_weather_client
Open

04 weather client#9
mr-SlavaK wants to merge 25 commits intodriverdevteam:masterfrom
mr-SlavaK:04_weather_client

Conversation

@mr-SlavaK
Copy link

No description provided.

response = server.GetWeather(date + ";15:00");
temps.push_back(ParseWeather(response).temperature);
response = server.GetWeather(date + ";21:00");
temps.push_back(ParseWeather(response).temperature);
Copy link
Collaborator

Choose a reason for hiding this comment

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

строчки для получения температуры по времени почти повторяются с GetAverageTemperature, нет рефакторинга, где этот код можно вынести в отдельный мето

response = server.GetWeather(date + ";15:00");
result += ParseWeather(response).windDirection;
response = server.GetWeather(date + ";21:00");
result += ParseWeather(response).windDirection;
Copy link
Collaborator

Choose a reason for hiding this comment

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

код повторяется 4 раза

response = server.GetWeather(date + ";15:00");
speeds.push_back(ParseWeather(response).windSpeed);
response = server.GetWeather(date + ";21:00");
speeds.push_back(ParseWeather(response).windSpeed);
Copy link
Collaborator

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.

2 participants