4 ms·
This is a forum, not a management system where I need to open dozens of listings and hundreds of different detail pages and make modifications there. It also d
by throwaway60707 3y ago
This is a forum, not a management system where I need to open dozens of listings and hundreds of different detail pages and make modifications there.
It also doesn't bother me much on here because HN is much faster than these systems - no wonder, since it's just a forum. But try updating the details of 50 employees, each separated into 5 subpages, when you need to wait 750ms to have each page load. And you need to load that page multiple times - first to get into the detail, then to put it into "edit" mode, then to save it - and then you can switch to a different subpage of the detail.
- gunapologist99 3y agospeed has nothing to do with the problem that you originally described. an AJAX call can take 750ms also.
- throwaway60707 3y agoThere's no AJAX call in a SPA if all I did was close a detail side-pane to get back to the listing. The AJAX call goes on in background if I saved a modification and I can continue to use the app as it runs. And when I open a detail, at least I'm not watching the whole damn app reload and reconstruct itself from scratch for the 1000th time, and need to download just the data and not the whole bloated HTML mess.
- happytiger 3y agohttps://laravel-livewire.com/ https://laravel-livewire.com/
- JohnFen 3y ago> when you need to wait 750ms to have each page load Wait, what? If it's taking most of a second for a page to load, then that's the problem, not that it isn't a SPA.
- throwaway60707 3y agoWhat can I do? Do you have a suggestion for a different HRIS? All of these that have all needed features are bloated OOP apps in PHP...
- hliyan 3y agoAmdhal's Law would suggest that much of the 750ms latency is likely attributed to I/O operations (mainly DB ops) and not CPU. Also, without knowing anything about your setup: upgrading to PHP 8 and/or enabling opcode cache may help. All that said, my original quibble was with development time, not run time overheads.
- happytiger 3y ago750ms transaction times and it’s “the language” that’s the problem? Not bloody likely.
- iamphilrae 3y agoBeauty of that though is that you can CMD+click on each one and open all 50 into separate tabs, then work on each one whilst the others load in the background. Want to cross-reference? Easy, just shift a tab to a new window. All likely not possible in an SPA, either because links don’t work like links, or because it’ll muck up state.
- throwaway60707 3y agoYou can do that with a SPA. All SPAs I made and most of the ones I use support it just fine.