Unemployed #10 - HTMX

Hi, I am a cat lover and software engineer from Malang, mostly doing PHP and stuff. Software Engineer Live in Malang, Indonesia Visit my resume and portfolios at didiktrisusanto.dev See you, folks!
Search for a command to run...

Hi, I am a cat lover and software engineer from Malang, mostly doing PHP and stuff. Software Engineer Live in Malang, Indonesia Visit my resume and portfolios at didiktrisusanto.dev See you, folks!
No comments yet. Be the first to comment.
Journals of what I learned or built during my unemployment period while finding a new job
Commerce Company Sooooooooo, my contact on Glints already scheduled for 2nd interview round at 22th Oct next week. Took more than one month to get this progress after first interview. I already set my expectation to low on this, but still got hope be...
I believed this topic is a lot in the internet but I want to write it anyway, because documenting your own learning journey and share it to the world is good right? Request middleware performs some specific function on the HTTP request or response a...

Long time no see. After took a long break, I finally started to writing again. I missed code with Go so I decided to share about Graceful shutdown in this post. Graceful shutdown is safer and proper way to shutdown your HTTP server especially in Go w...

So my unemployed journey was stopped at #10 because many things happened and today at #37 or 57 days since my last day at work, I finally secured some job offers and agreed to join at a Singapore based company in 2nd January 2025 which I become first...

I was finding a fun project to work with Go, HTMX, and Tailwwindcss and ended up built a simple real-time web based system monitor with the power of web socket. Here’s the result. It shows system information, memories, disk, CPU, and running process...

No update on the job hunting today. An ex coworker gave me a job vacancy from Switzerland and didn’t took any action yet.
Decided to continue on my playground building a short url service using Go. The first one was how to implement templ in go as view template. It was interesting because we can separate the view components and made it reusable.
package components
templ Header() {
<header class="bg-gray-800 py-4">
<div class="container mx-auto px-4">
<h1 class="text-2xl font-bold">Goshu</h1>
</div>
</header>
}
That component later could be called into other template by @components.Head(). As a person who familiar with Laravel Blade, separating components seems good idea.
Anyway the landing looks like this now:

Tried htmx on POST form got successfully implemented but I struggled little bit. It’s been a while I played around with html forms because for recent years mostly related with REST API and platform related development. Also I need to adapt on the htmx syntax including all the events, attributes, etc.
However I still couldn’t parse the JSON response on the views side once the form submitted successfully. Definitely will be my next research on that.
That’s it, have a good day!