News for hackers. Stuff that matters.
Re:Show HN: A Full-Stack Web Framework for Go by theptip on Friday May 13, 2022 @08:07PM (#31373829)
To me I think the approach of Hotwire, LiveView, Django-HTMX etc. is more interesting for a Go framework, since websockets/async are baked into the Go language.

In other words, render the HTML in Go and ship the diffs to a small blob of JS running in the client over a websocket, instead of baking a whole React build into your server-side app. Much simpler toolchain this way, much easier to reason about.

I appreciate that this is a fairly different solution; one of the author’s explicit goals is that it should “Feel like using a modern JS framework”. Personally I’d rather have it “feel like I’m using Django / Rails”, except with most of the superpowers that were historically FE-framework-only.

Re:Show HN: A Full-Stack Web Framework for Go by quickthrower2 on Friday May 13, 2022 @08:37PM (#31373994)
Where nextjs kicks ass is that coding front end interaction (sans back end interaction) and doing interaction in response to server feels almost identical.

There is no “ugh ok … better set up react now” feeling to make say an interactive chart because it was always there.

Similarly there is no “ugh ok … better set up a backend now” feeling you get using create-react-app as it was always there.

There is almost no mental gear switch as you switch from front to back to front.

The only small negative is you need to be careful what that first “server side” render produces and what it can access. But that is also part of the magic, as you can fine grain control the initial flash of content. For example include the layout/menus. Or include a cached view of a list that then updates on final render.

It just feels so well integrated more than any other framework I have tried (like aspnet mvc or RoR for example).

It will be hard to beat: If you want to beat it in Go you need at least a good Go->JS transpiler so you can use the same language. But even then anything other than JS/Typscript means I need a mental modal of what the transpiler is doing. I don’t get a free pass on understanding JS or the DOM.

Re:Show HN: A Full-Stack Web Framework for Go by matthewmueller on Saturday May 14, 2022 @03:38AM (#31375875)
Agreed. I love Next.js and used it religiously for the first couple years. I'm not trying to beat Next.js or any framework. There's plenty of space in the web ecosystem for alternative solutions.

I hope is that Go <=> JS/Svelte won't be too much of a context switch for folks.

I'm not planning on innovating as hard in the frontend space as Next.js. I'll probably just stick with SSR, add support for pre-rendering and build up the client-side runtime with features like prefetching and client-side routing. If something really cool comes along, we'll see.

I'll instead focus on the area where Next.js neglects: backends. DB workflows, mailers, queues, scheduling, pubsub are all coming to Bud.

Re:Show HN: A Full-Stack Web Framework for Go by 0des on Saturday May 14, 2022 @03:19AM (#31375782)
I just want plain HTML and some of {{ .These }}
Re:Show HN: A Full-Stack Web Framework for Go by matthewmueller on Saturday May 14, 2022 @03:33AM (#31375853)
You wish will be my command https://github.com/livebud/bud/discussions/8 :D
Re:Show HN: A Full-Stack Web Framework for Go by 0des on Saturday May 14, 2022 @10:52AM (#31378525)
How realistic do you think it is that you'll be able to complete all the what-abouts everyone is proposing to you before you get burned out? Genuine question.
Re:Show HN: A Full-Stack Web Framework for Go by quickthrower2 on Saturday May 14, 2022 @04:43AM (#31376144)
as well as sister comment, there is hugo, jekyll, etc.
Re:Show HN: A Full-Stack Web Framework for Go by 0des on Saturday May 14, 2022 @10:57AM (#31378577)
fucking no. I want plain html.
Re:Show HN: A Full-Stack Web Framework for Go by quickthrower2 on Sunday May 15, 2022 @05:47AM (#31386455)
? those things are as close the plain html without, well just editing html files yourself (which is fine!)