0
I've checked out source code of many sites and damn its a lot of code how do you design something like that +1000 lines of code
I want to know how the devs keep track of all that code. Is there a particular design method I'm missing because at this point I can't see myself writing that much code and it still making sense to me.Are there tools that write this code for them?
3 ответов
+ 9
I make some site - practice with 300 line of css and know what is for what. Make sure you use comments, devide code in sections, make some plan and use it and you will never get complete lost.
+ 3
For the most part, it's a long time of learning, time and dedication. It doesn't happen overnight. To whoever wrote whatever code you are looking at, it makes sense to them. With time, you could go back at that code and know roughly what is happening, if not exactly what is happening. There's no reason you can't be writing that type/length of code in time. Sometimes, people use code from elsewhere, templates and such, but I prefer personalised.
I hope this answers your question!
+ 3
One tool is modularization.
You partition your code into units (for example functions or classes) that do exactly one job each.
That way you can write and test each module separately and more easily find a mistake.