Better HN
topnewbestaskshowjobs
Log inSign up

alvaroflm

43 karma · joined Jun 1, 2024 (2y ago) · 8 submissions

https://twitter.com/alvarofleiva https://github.com/alvarolm
Submissions

comment 1y ago · link · parent

Hey HN!

I got tired of writing field names twice: once in the struct tag and once as a constant. It was too much work to keep them consistent. So I explored two solutions: one that works at runtime with some overhead, and one with code generation. Both of these approaches have their pros and cons. But I would like to know what you guys think, and more importantly, how do you tackle this issue?

In the readme i documented the process and reasoning. It also includes some lazy benchmarks if you want to take a look

Thank you for your time

Alvaro

2.

Go struct field name retrieval: comparing runtime and codegen approaches(alvarolm.github.io ↗)

2 points · by alvaroflm · 1y ago · 1 comment

comment 1y ago · link · parent

just trying to be fair. maybe the original page title fits better.

comment 1y ago · link · parent

Please change the title to: Datastar response to misunderstandings

5.

Datastar response to misunderstandings(data-star.dev ↗)

108 points · by alvaroflm · 1y ago · 116 comments

comment 2y ago · link · parent

I'm proposing a solution to an overlooked security concern, any feedback is appreciated, thanks !

7.

Service Worker Verification(github.com ↗)

2 points · by alvaroflm · 2y ago · 1 comment