reorder code to simplify reading
·
Let’s say you’re reading a file (we can have the debate about whether source code belongs in files some other day). You read the whole file, and you get to the end and there it is! The detail that would have helped you understand all the rest of the file. Reorder the code in the file in the order in which a reader (remember, there are many readers for each writer) would prefer to encounter it. You’re a reader. You just read it. So you know.
Link:: Tidy First
Обратные ссылки
Tidy First
Основная идея книги в том, что улучшение дизайна кода - это процесс последовательных изменений. Сама...