News for hackers. Stuff that matters.

flexterra

Re:Should I Use jwts For Authentication Tokens? on Monday May 27, 2024 @04:57PM (#40494627)
no
Re:A Real World React – Htmx Port on Sunday October 16, 2022 @09:58AM (#33223654)
Here's the sortable example: https://htmx.org/examples/sortable/

IMHO something slightly more complex than this example (more client side stat) will require using something like React/Vue/Svelte. But there's no need to rewrite the whole FE. Just create a component that performs the rich client side interaction and use HTMX for the rest of your app. Win-Win.

Re:A Real World React – Htmx Port on Saturday October 15, 2022 @09:27PM (#33220288)
Validating data on the client and not doing it again on the server will lead to security vulnerabilities. At the very least you will end up duplicating that validation code.
Re:A Real World React – Htmx Port on Saturday October 15, 2022 @08:20PM (#33219928)
IMHO this approach is better for most apps. Remix is bending the curve here. They make it extremely easy to progressively enhance a small part of your UI with all the power of React.

That said, using React on the server side and forcing you to run JS on the server is not my cup of tea...

Re:A Real World React – Htmx Port on Saturday October 15, 2022 @08:16PM (#33219901)
The difference in programming model IS THE advantage of HTMX. Changing from react to preact is a perf optimization.

If you are doing the SPA thing correctly you must duplicate business logic (data validation). Also when your API just sends "dumb data" (JSON) to the client, you are forced to make changes to the backend and frontend in lockstep.

Re:A Real World React – Htmx Port on Saturday October 15, 2022 @07:43PM (#33219710)
The programming model is totally different when working with HTMX. The server returns HTML instead of a JSON API which is the usual solution when building apps with React/Preact and similar.
DDD-Lite
Re:Extending HTML as a Hypermedia on Monday May 03, 2021 @08:41PM (#27032768)
HTML could and should do more
Re:Swimlanes.io – generated editable sequence diagrams on Tuesday April 27, 2021 @02:16PM (#26959456)
I've been using this for years. Is really good and the best feature is that diagrams don't look like crap by default, which is not the case for most code to diagram tools out there. Looking at your Plant UML.
what is the average size of a native mobile app?
Re:Facebook is down on Thursday September 24, 2015 @12:33PM (#10272585)
Re:Ember's Glimmer Engine on Wednesday March 04, 2015 @07:55AM (#9143866)
Ember's templates allows the framework to determine which portions of the DOM will never change, and so only needing to analyze the portions that might.

  <div class="container"> <-- this won't change
    <h1>Hello World</h1> <-- this won't change
    <div>{{name}} <-- this might change </div>
  </div>
Re:Freemail on Wednesday January 07, 2015 @12:20PM (#8851761)

Boards: open source app to share files for projects, research and inspiration

Hi I'm part of the team that made Boards a very simple web app to help teams collaborate around collections of files and notes.Boards is powered by one of our other products http://filepreviews.io an API to generate thumbnails of almost any kind of file.Check out Boards: http://boards.blimp.io

( Read More... | no comments | 4 points | on HN )

Older »