News for hackers. Stuff that matters.
Re:Show HN: htmgo - build simple and scalable systems with g... by 2024user on Sunday September 29, 2024 @07:40AM (#41686654)
Without touching JavaScript but now you have to type

return h.NewPage( h.Div( h.Class("flex gap-2"), h.TextF("the current time is %s", now.String()) ) )

To me that is horrible.

Re:Show HN: htmgo - build simple and scalable systems with g... by maddalax on Sunday September 29, 2024 @08:26AM (#41686845)
Well when you put it all on one line it doesn’t look great :)

With it properly spaced out and nested, after a few days it started reading exactly like HTML to me, where I can quickly see the hiearchy

Re:Show HN: htmgo - build simple and scalable systems with g... by snorremd on Sunday September 29, 2024 @08:49AM (#41686992)
As a developer who has worked extensively with React and Reagent (a ClojureScript wrapper around React) I actually enjoy this kind of syntax. Better that then some custom HTML templating syntax I need to learn in addition to the language.

It doesn't look too bad if one also break the code into multiple functions to make "layouts" and "components".

I have had lots of fun building with Bun, ElysiaJS, and HTMX. Might test your go library out as well. Looks pretty neat.

Re:Show HN: htmgo - build simple and scalable systems with g... by maddalax on Sunday September 29, 2024 @09:30AM (#41687269)
Awesome, yeah those are pretty nice technologies. Definitely let me know if you do / encounter any issues!
Re:Show HN: htmgo - build simple and scalable systems with g... by j45 on Sunday September 29, 2024 @09:25AM (#41687229)
Everything doesn't have to be for everyone, and that doesn't make it bad.
Re:Show HN: htmgo - build simple and scalable systems with g... by sitkack on Sunday September 29, 2024 @10:49AM (#41687802)
This attitude would stop over 50% of disagreements.
Re:Show HN: htmgo - build simple and scalable systems with g... by j45 on Sunday September 29, 2024 @01:02PM (#41688666)
and.. piss off another group who get their validation externally by evangelically putting down the technological choices of others.

Prejudice may not be in social areas but the same behaviour of prejudice is alive and well in justifying your own or denigrating someone else’s technology choices.

Same folks aren’t willing to be open to what is new to them in a new framework is still a 20 year old thing.

Re:Show HN: htmgo - build simple and scalable systems with g... by sitkack on Monday September 30, 2024 @06:43PM (#41702904)
Being open to try new things is a rare state of mind and immediately disqualifies much of the population.

Having an open mind, and curious mind that seeks out new ways and experiences not something that happens randomly. You have to cultivate it in yourself and others.

Re:Show HN: htmgo - build simple and scalable systems with g... by 2024user on Tuesday October 01, 2024 @07:46AM (#41707141)
I specifically said "to me"
Re:Show HN: htmgo - build simple and scalable systems with g... by j45 on Wednesday October 02, 2024 @11:14AM (#41721487)
You did, but you didn't lead with it.

Leading with it sets context before the fact.

Re:Show HN: htmgo - build simple and scalable systems with g... by 2024user on Saturday October 05, 2024 @06:59AM (#41749018)
I'm not sure what you expect out of this conversation
Re:Show HN: htmgo - build simple and scalable systems with g... by hadthischat on Sunday September 29, 2024 @11:21AM (#41687978)
You still type out code? My toolkit is endless generators and macros.

I suppose bike shedding still matters to people who see themselves as Hemingway not an engineer

Re:Show HN: htmgo - build simple and scalable systems with g... by bilekas on Sunday September 29, 2024 @01:08PM (#41688713)
This is not right, there's nothing wrong with typing out code. Generators are fine, until they're not.

> I suppose bike shedding still matters to people who see themselves as Hemingway not an engineer

This is anything but bikeshedding.