-
Notifications
You must be signed in to change notification settings - Fork 1
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Критерий - совмещение логики обработки данных и вывода в stdout #11
Comments
@AndrewGavril покажите, пожалуйста, пример - как правильно и как не правильно (и желательно возможные исключения из правила:) |
Плохой пример:
В данном случае происходит поиск шаблона в строке и преобразования в строку другого вида, совмещенной с выводом в stdout, Последствия такого вывода таковы, что может быть очень сложно найти всю последовательность функций из которых склеивается строка в потоке вывода (к тому же такое решение не будет работать в многопоточном режиме, но к этому курсу это не относится).
|
Часто происходит одновременная обработка и вывод результата на экран -- чего нужно избегать
The text was updated successfully, but these errors were encountered: