|
|
42 kilobytes of basic web code Tuesday, August 13 2019
If I'm taking diphenhydramine (that is, what you might call BenadrylTM) on a "school night," I like to take it before 8:00pm so that it will mostly be gone from my body 12 hours later when I begin my workday. Tonight I took it at around 7:00 and then eventually took a bath. Baths are good for thinking, and I thought of a feature I wanted to add to the Distburbatron: the ability to create subdirectories (via the web interface) in the file system it has access to. Despite a great hunger for sleep, I was able to add these features in only a few minutes. This is all in vanilla Javascript, mind you, with a total unminified codebase of 42 kilobytes (that includes the Javascript, Python, and PHP, and a quarter of that is for a generic font-end HTML table re-sorter). I have a feeling that if I'd tried to do this in a framework like Angular or even React, it would've taken the better part of a day and the minified codebase with be over a megabyte. There may be some projects that are easier and better when done with a framework, but I don't know what they are.
For linking purposes this article's URL is: http://asecular.com/blog.php?190813 feedback previous | next |