HackerTrans
TopNewTrendsCommentsPastAskShowJobs

mozey

no profile record

comments

mozey
·3 वर्ष पहले·discuss
The hx-disable attribute can be used to disable htmx for parts of the DOM that load user generated content, is that what you're referring to? https://htmx.org/docs/#security
mozey
·3 वर्ष पहले·discuss
> dynamically loaded modules, error boundaries

In an MPA, modules https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guid... can be included on the pages that require them with a script tag. Errors (and new features) are limited to a specific page, and the rest of the site remains unchanged.

> suspense (or another form of components loading their own data)

The htmx lib https://htmx.org/ mostly takes care of this: "gives you access to AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML". The hx-boost tag can also be used for progressive enhancement.

> as soon as you need the bloat you’re just reinventing a wobbly wheel without one

When building a rich client, using a framework could be productive. For example a photo/video editor app. For a news site and CMS I would probably stick to the approach I've described above.
mozey
·3 वर्ष पहले·discuss
> by wrapping a vanilla lib to a component or an action, you’ve essentially created basic Svelte version of that lib

This is the key to making framework churn go away. The DX of using vanilla JavaScript is getting better every day. And is a much better experience than it was a decade ago.

> Islands architecture and partial hydration can help you render static HTML with just a small portion of JavaScript for those components who need it

I'm doing this with Hugo for rendering the static parts, and htmx for loading hydrated partials. The HATEOAS approach simplifies state management in the application. There is no client side "routing", just links and the back button.

In addition to vanilla libs, I include one "app.js" bundle. This file is created with esbuild and linted with deno. My "business logic" can be written in TypeScript in VSCode with the Deno extension and LSP server.
mozey
·4 वर्ष पहले·discuss
> they're intentionally making me wait for their convenience

Lol, it's definitely possible to do this with text too "typing..."
mozey
·7 वर्ष पहले·discuss
I like traveling to experience different cultures and personalities, getting out of your comfort zone can be very rewarding. If you have the means, organizing social events in a safe space for other people to join is great for creating connections and making friends. Host a potluck dinner, or go on a roadtrip, invite random people. Who do you find interesting? Try to be that person
mozey
·9 वर्ष पहले·discuss
I've never seriously considered using Azure, I'm quite happy with AWS. Problem is the closest zone to South Africa is EU. This might make me consider using Azure. I hope Amazon has similar plans in the works.