News for hackers. Stuff that matters.
Re:In Praise of Buttons by skybrian on Thursday February 01, 2024 @12:13PM (#39218347)
The distinction between navigation and action seems rather blurry. Two pages often have often different views of the same entity. You’re not really “going somewhere,” particularly if it’s not a full page reload.

But I guess the main point is not to use buttons in your nav bar.

Re:In Praise of Buttons by danaris on Thursday February 01, 2024 @12:19PM (#39218425)
My rule of thumb can be described in two ways:

1) Can you return things to exactly the state they were before simply by hitting the browser's "back" button once? Then use a link. Otherwise use a button.

2) Will this navigation have side effects (eg, change values in the DB)? If so, then use a button. Otherwise, use a link.