HackerTrans
TopNewTrendsCommentsPastAskShowJobs

pondidum

no profile record

Submissions

Print debugging: a tool among other tools

andydote.co.uk
3 points·by pondidum·2 anni fa·1 comments

comments

pondidum
·2 anni fa·discuss
I also think that printf debugging is fine, but there are better tools [1] - however they might be more involved to setup, or not be available in your codebase.

[1]: https://andydote.co.uk/2024/11/24/print-debugging-tracing/
pondidum
·2 anni fa·discuss
Thoughts after reading https://news.ycombinator.com/item?id=42219708
pondidum
·2 anni fa·discuss
Go: go templates and fiber for http serving. I have a mini framework for adding some structure to the templates (folder per feature: contains controller, templates, etc, and some naming conventions)
pondidum
·3 anni fa·discuss
If I understood correctly, you can achive this with `hx-target` and `hx-select` - I'm doing this in an app to replace an editor content based on which link is clicked.

- https://htmx.org/attributes/hx-select/ - https://htmx.org/attributes/hx-target/