Single File Applications

24 · Peter Krumins · April 26, 2022, 11:29 a.m.
At Browserling, we're huge fans of single file self-contained applications. Our entire website is a single index.php file and the entire browser application is a single script.js file. The index.php is a 18,000 line file. $ wc -l index.php 18060 index.php And the script.js is a 30,000 file. $ wc -l script.js 30301 script.js Having your entire application in a single file has many advantages: 1) Everything is in the current buffer. All functions and variables are just there. They are no where...