3 ms·
I'm sorry, but if I had to look at a page 20 times a day that took 8 seconds to load, I would help that web app commit suicide. There is absolutely no call for
by DiabloD3 11y ago
I'm sorry, but if I had to look at a page 20 times a day that took 8 seconds to load, I would help that web app commit suicide.
There is absolutely no call for a web app that badly written to exist in 2016. Period.
- JangoSteve 11y agoNo piece of code is written perfectly the first time. A software application (web or otherwise) tends to be a bundle of validations and compromises when written under the constraints of budgets, deadlines, and priorities. There are many scenarios where a page used 20 times a day takes 8 seconds to load. For example, an admin dashboard page that shows some statistics on some aspect of customer usage written early on in a startup's life might only need to be looked at once a month by one of the founders (since it app has little traction, they have bigger things to worry about than seeing statistics from an n of 3). So, it's hammered out with inefficient queries, improper indexes, etc. (after all, we don't even have a clear enough view of actual usage yet to know what indexes or queries we should really be doing). Time goes on, the startup picks up traction, and before you know it, it's April 15, 2016, and the application handles millions interactions a week across its users. Someone on the support team at some point in the near past realized that they should be looking at these usage statistics to help drive improvements to the interface of the application, but the page now takes 8 seconds to load, because of all the data stored in that table, and because of the inefficient queries, improper indexes, etc. Due to the nature of the business and the aforementioned constraints of budgets, deadlines, and priorities, this person has spent the last month or so just dealing with the 8-second page load. But now, it's a priority, and someone can go in, look at the data that's actually there, and figure out the best way to refactor, optimize, and improve it. The point is, there are many scenarios where a web app can have a page checked 20 times a day that takes 8 seconds to load without assuming it's so badly written, and it certainly has a reason to exist (after all, it is partially the success of the app and value it provides to people that has caused this issue in the first place), and it doesn't need to die, it needs to adapt.
- mseebach 11y agoOK, that's fair. So how about this: You go over there (points to corner) and make angry and dogmatic proclamations of what should and shouldn't be, while the rest of us go out into the world, where these apps do exist in large numbers and see heavy usage supporting very valuable workflows, and collect obscene salaries making them better.
- mdpopescu 11y agoAll the way back to 2015, I got a job that said "we have a page (in a Windows app) that loads in 5 hours; we'd like that to be much faster, preferably in under a minute". I got it down to a few seconds, but that's not the important part: that was an application that was being used, daily. That page would just take 5 hours to load.
- bpicolo 11y agoThere's actually a really good reason: As data gets bigger, so do page speeds. Take a look at Google Analytics. Their "slow result" takes quite a bit to process. If you're just rendering a couple database fields to a page? Sure, that's easy
- MichaelBurge 11y agoI used to work at a place where the front-end guys had a big push to get the page load times down below a minute. People paid tens of thousands of dollars for a subscription to it. The alternative was that you pay another company a couple million and wait 6 months for a binder to arrive in the mail, so the customers were content with the page load times. The backend team was more worried about keeping daily processing and offline reports below 24 hours. The offline reports were essentially SQL queries.