r/GoodSoftware • u/fschmidt • Aug 22 '19
Core Programming Principles
http://www.mikraite.org/Core-Programming-Principles-tp1237.html
1
Upvotes
r/GoodSoftware • u/fschmidt • Aug 22 '19
View all comments
Show parent comment
1
u/A_Plagiarize_Zest Sep 02 '19
Thats my point... By attaching a lightweight server to the backend of the browser wouldn't it be possible to host the files in the window.localStorage and window.sessionStorage with the browser acting as the in between. The problem is deciding what gets stored in window.localStorage and window.sessionStorage and I propose that what gets stored permanently (until user manually deletes) in the window.localStorage are websites that take longer than 1 second to respond (this would be require some type of ping/response time ratio algorithm), and it also stores sites that the user bookmarks. During the users session if a website responds faster than 1 second but slower than .1 second then it gets stored in the window.sessionStorage until the users session ends. Faster than .1 never gets stored. This would make server hosting irrelevant once enough people used the browser wouldn't it? I could be missing some huge piece that I just am not seeing but it seems like it would be possible. Fortunately/Unfortunately I found a well written java web browser on git hub that uses javafx. Im gonna fork it, remove some of the junk, implement window.localStorage and window.sessionStorage and try to attach webserver to it. Ill post results.