pull down to refresh

feels a bit like typescript

people should just use typescript in the backend.

with bun it is possible to get the index.php like productivity and simplicity in the backend

i made my own minimalistic framework around it to solve
https://github.com/spirobel/mininext/blob/master/docs/architecture.md#no-function-coloring-in-the-backend <- function coloring (async vs sync methods)

and

https://github.com/spirobel/mininext/blob/master/docs/architecture.md#how-this-solves-props-drilling <- props drilling

in the backend.

In the frontend i hated the constant state change annotations of React and competing frameworks.

thats why I also made a frontend version of this that uses the immediate mode gui paradigm.

it uses the fact that the raf (request animation frame) loop will slow down when the tab is out of sync. makes state handling much easier. similar to dearimgui

frontend example https://github.com/spirobel/counter/blob/master/frontend/cou...

on the backend this obviously runs only once. the main issue with backend frameworks is, that the request and other context data has to be passed through the business logic + VIEWS. leads to tight coupling of all the components as it is downstream from the data structure + presentation

this is resolved by resolving the html template strings at the end and allowing functions (that also produce html template snippets) to be passed into the template strings.

this decouples views, business logic and data

https://github.com/spirobel/mininext/blob/master/docs/archit...

worked on this for the last few years. But it is still only a few hundred lines of code that you can understand in a few hours

i think from a security perspective react with rsc/nextjs is becoming an even worse cf than php. Hydration based high severity vulnerabilities have been plaguing other js frameworks besides nextjs, like svelte for example. their abstractions are often leaky.

https://github.com/spirobel/mininext/blob/master/docs/architecture.md#hydration <- how mininext avoids svelte / rsc like hydration weaknesses

i want something raw that just works and is simple