Hacker Newsnew | past | comments | ask | show | jobs | submit | alhazrod's commentslogin

I wish he had gone into more detail around 'A common critique of HTMX is that users lose the ability to use the “Back” button or share specific filtered views. In many frameworks, this requires complex series of state hooks to keep the URL in sync.'


That's what he addresses with “In the dashboard of this project, I solved this with a single attribute: hx-push-url="true".”, no?


He makes it sound like he did something special, but this is just something that htmx offers out of the box. In fact if he had used something like:

    <a href="/?page=2" hx-target="#dashboard-content" hx-boost="true">
      Next Page
    </a>
Then he would have gotten the functionality out of the box without even using hx-push-url explicitly. And he would have gotten graceful degradation with a link that worked without JS and Ctrl/Cmd-click to open in a background tab.

Also the article seems to be full of errors. Eg

> In HTMX, if the server returns a 500 error, the browser might swap the entire stack trace or the generic error page into the middle of a table by default. This is a poor user experience.

This is simply incorrect. By default htmx does not swap 4xx/5xx responses. Instead it triggers an error event in the DOM. Developers can choose to handle that event or they can choose to override the default behaviour and do a swap.


I think the Aston Marting with the Apple Carplay Ultra[0] is a pretty good example of what an Apple Car would have looked like.

[0]: https://www.astonmartin.com/en-us/our-world/brand-stories/as...


Echoes of ARPANET.


Interesting quote! Turns out that it is from Frank Wilhoit[0] the composer, not Francis M. Wilhoit[1] the political scientist. How odd!

[0]: https://en.wikipedia.org/wiki/Frank_Wilhoit_(composer)

[1]: https://en.wikipedia.org/wiki/Francis_M._Wilhoit#Misattribut...


Sorry, should have used Algolia to double check. Thanks for posting that link.


This is an excerpt from the book “README A Bookish History of Computing from Electronic Brains to Everything Machines” by W. Patrick McCray.

MIT Press: https://mitpress.mit.edu/9780262553483/readme/

Amazon: https://www.amazon.com/README-Computing-Electronic-Everythin...


I tried to get a copy of GNU Hurd via git a few weeks ago and it didn’t work. Can someone post a working repository link?



The Essentials of Compilation (using Racket) by Jeremy Siek links to this[0] which when downloaded says "An Incremental Approach in Python" and is in Python.

[0]: https://github.com/IUCompilerCourse/Essentials-of-Compilatio...



My man. I appreciate you, and your kindness to me.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: