News for hackers. Stuff that matters.
Re:Htmx Is the Future by robertoandred on Friday May 05, 2023 @01:08PM (#35832200)
No it doesn't and no you don't. Every modern SPA framework has solved that problem long ago.
Re:Htmx Is the Future by afavour on Friday May 05, 2023 @01:13PM (#35832270)
Right, so you agree: you have to reimplement it. You can just use a framework to do so.

It might be news to folks to learn that every single SPA framework has solved the problem entirely because it's really not an uncommon experience to have your browser history broken by a SPA. I believe that most frameworks implement the API correctly. I also believe a good number of developers use the framework incorrectly.

Re:Htmx Is the Future by Joker_vD on Friday May 05, 2023 @01:23PM (#35832403)
Or simply unaware about the whole "back button" debacle. Which is yet another stone to throw at the SPA camp: if using technology A requires a programmer to learn about more stuff (and do more work) than technology B for achieving pretty much the same end results, then technology A is inferior to B (for achieving those particular end results, of course).
Re:Htmx Is the Future by robertoandred on Friday May 05, 2023 @03:10PM (#35833855)
That's like saying you have to reimplement assembly arithmetic, you can just use the Calculator app to do so.

Bad websites are the results of bad developers, not the tool. You can have your history messed up by any kind of website.

Re:Htmx Is the Future by afavour on Friday May 05, 2023 @03:27PM (#35834025)
No, it’s like saying you’ve been provided with a calculator but may, if you wish, create your own calculator with some parts provided. No guarantee it adds numbers together correctly.
Re:Htmx Is the Future by robertoandred on Friday May 05, 2023 @03:32PM (#35834096)
Why would anyone choose to create and use their own unreliable calculator instead of what came installed?
Re:Htmx Is the Future by afavour on Friday May 05, 2023 @03:45PM (#35834243)
…that’s the point being made
Re:Htmx Is the Future by robertoandred on Friday May 05, 2023 @04:08PM (#35834520)
The point that bad websites are the result of bad developers, not the tools?
Re:Htmx Is the Future by afavour on Friday May 05, 2023 @04:12PM (#35834560)
I don't understand why this point is so complicated. Yes, bad SPA developers mess it up all the time. Bad MPA developers do not mess it up because it doesn't require reimplementation by said bad developer, it works out of the box.
Re:Htmx Is the Future by robertoandred on Friday May 05, 2023 @04:18PM (#35834628)
It works out of the box on SPAs too. It doesn't require reimplementation by said bad developer.
Re:Htmx Is the Future by afavour on Friday May 05, 2023 @05:23PM (#35835309)
We’re way too far into a thread for me to have to restate the original point I made in the first post. If what you’re saying is true we’d never see bad implementations of history in SPAs yet we do all the time.

But look, whatever. It’s Friday afternoon, I’m out of here. Have a good weekend.

Re:Htmx Is the Future by robertoandred on Friday May 05, 2023 @10:07PM (#35837292)
We see bad implementations of everything all the time. You think no bad MPAs exist?