Templating is much simpler model to write web apps with (MPAs) with a little sprinkle of interactivity on the front end. I built a progressively enhanced cash tracking site with Pocketbase where it doesn't need any JS and is just a pure MPA. Then I added in interactivity where needed. Then I made it so it can work partially offline (it cashes the live pages and any updates it will save for saving later). The first iteration was amazingly simple. Then adding in the extra interactivity made it a little more complex. Then adding the service worker made the complexity even a little higher. But over all it was nice to build. Templating for the win!
@earlymorningdev8 күн бұрын
I like this model of building as well. I think adding in alpine for interactivity is a good way of building micro apps. Next.js isn't terrible but it just isn't a well rounded solution - it tries to solve all the problems and doesn't solve any very well
@dovh498 күн бұрын
@@earlymorningdev I've played with Alpine a bit but I tend to mess things up with it and can't get it working properly all the time. Probably something I'm doing. What I used for the cash app was an HTMX-lite lib that I created (html-form on npm). If I need more interactivity than I just use web components. On a bigger more complex, state-based website I think reaching for something like Alpine would make sense. But mine was grabbing data from the back end all the time and I just had small state-based things that web components could handle with ease. I've built a lot of personal websites like this, but the others are offline-first so they are driven by a service worker instead. The simplicity was amazing. One thing I'm really excited about though in CSS is the concept of layering CSS. So, now that we can layer CSS frameworks like PicoCSS make a lot more sense as you can layer it and then overwrite it easily with other CSS or custom CSS easily. This makes a lot of modern CSS frameworks - like Tailwind, etc - obsolete.
@sadkebab9 күн бұрын
Timestamps seem from another video 👀
@earlymorningdev9 күн бұрын
Rip just changed it thanks for that
@patrykkowalski83557 күн бұрын
lol next 13 :D
@earlymorningdev6 күн бұрын
And 14 as well. I haven't bothered to upgrade to 15 yet but from what I have read it doesn't look like it will change these major problems