I read Randall Hyde Write Excellent Code (Volume 2), and I found this:
[...] its not a good programming practice for creating monolithic applications, where all the source code appears in one source file (or is processed by one compilation) [...]
I was wondering why this is so bad?
Thanks to everyone for your answers, I really want to accept more of them, but I chose the most synthetic one, so anyone who reads this question will immediately find the necessary things.
Thanks guys;)
Because everything is so crowded.
If you have separate files for individual things, you can find and edit them much faster.
, , .
, , , , , - . , , , API. , , , .
, C. , , , , , "" "" . "" , .., "" , API. "", , "" , API. "" , , , API. - "" , SQL- , "" .
() .
, , , .
:
, HTML CSS " ", , .css,.js .html : .
. . , . , .
, , , , .
, ( ), , ( ).
: , . , , .
, , , -, COBOL FORTRAN . , .
- - . OO , , , .
. " -" , , . , ..
, - . .
, , . , , , . , DLL, . , , , .
, . , , .
, .
, 3000- . . , , .
I think that you have never worked in a large company with 6,000 lines of code in one file ... and every couple of thousand lines you see comments like /** Do not modify this block, it critical */, and you think that the error is, you come from this block. And your manager says: "Yes, look at this file, somewhere in it."
/** Do not modify this block, it critical */
And the code breaks all those great OOP concepts, has dirty switches. And like fifty participants.
Lucky.
Source: https://habr.com/ru/post/1782775/More articles:что такое Java API? - javaScroll the DOM tree recursively and remove unnecessary tags? - domWhat is the best way to store date and time in MySQL? - phpMSI prevents registry key recovery - visual-studioLost dates and time zones - javaWhat does an empty javascript link mean? - javascriptВыбор лицензии с открытым исходным кодом для библиотеки - licensingMSI installer starts auto repair when service starts - windows-installerInsert my own illegal characters in Path.GetInvalidFileNameChars () in C # - c #Нужна помощь по созданию этого jQuery - javascriptAll Articles