How to read other's code
To all those who are saying "keep track of each variable and function of what they are doing" I think this approach helps only when the code is written in c++ or python or some other non web languages and that too when it is short. But what can one do if he is reading a code that is written in web languages (here on sololearn)? It's equivalent to reading three codes in 3 different languages at the same time and all of them interwoven in a beautiful and ugly way at the same time. When each of the section (html, css, js) contains more than 300 lines and I can't even count how many local or global variables and functions are used there, it becomes a terrible mess (specially when it doesn't have comments). Is there any suggestions on this? How do you guys read and understand such huge codes? I know you don't read the whole code (obviously), but some of you just look at some parts of the code and get the idea of what and how it is doing something. How you guys do it?