+ 2

How To Understand Other People's Code?

I Love Coding, but I code alone most of the times, Now I hage gotten in a community to help program a dynamic website. I often struggle to understand the JS within the repository.

12th Aug 2017, 9:18 PM
Given
Given - avatar
2 ответов
+ 2
That's why comments on codes are important but if there's no comments then you can try visualising the code as a map. On a map you get destinations and roads that connects these destinations. Comments are like road signs but if there are no road signs then the only way to know which destinations the roads leads you to is to follow the roads. So if you are trying to understand a function for example, the function would contain roads that lead to destinations. That's how you uncover what they do.
12th Aug 2017, 9:42 PM
Ghauth Christians
Ghauth Christians - avatar