Comment by daveidol

Comment by daveidol 3 hours ago

6 replies

Sure you can make a blog without a framework. But for complex applications it’s far better/easier than raw DOM manipulation or rolling your own thing.

austin-cheney 2 hours ago

I disagree. It’s actually the same effort either way, but one of those costs substantially more to maintain and performs far slower.

  • adastra22 2 hours ago

    It is not obvious to me which one you are talking about.

netbioserror 3 hours ago

We should probably be making widget toolkits for the Canvas and using WebSockets for communication. DOM manipulation is a total hack-job. It's somewhat flexible, but the performance and dark-pattern cost is just too great. If you're making an interactive application, then treat it like an application and draw widgets to a canvas.

  • ioseph 2 hours ago

    This is an insane take, show me a responsive button with hover state and a tooltip implemented in the canvas that outperforms a button rendered with React.

  • christophilus 3 hours ago

    Accessibility suffers with that approach.

    • extra88 2 hours ago

      It doesn't just suffer it's impossible unless you recreate the whole thing with actual HTML behind the <canvas> rendered version.