DerpyCoder
banner
derpycoder.bsky.social
DerpyCoder
@derpycoder.bsky.social
Engineer by Passion

Backend + Frontend
#golang, #templ, #tailwindcss, #alpinejs, #htmx

Database
#clickhouse, #sqlite

Devops
#kubernetes, #taloslinux, #hetzner

Workhorse
#nvim, #zellij, #wezterm, #starship

#selfhosting, #indiehacking, #microsaas
Ah, got it.
January 17, 2025 at 9:58 AM
Here's how I am doing the routing.

I am using Echo framework, not the stdlib router.
January 17, 2025 at 9:00 AM
I might have to.

I get why golang devs prefer the stdlib over anything else.

Currently echo framework is not giving me any issues, but if does.

I’m going full stdlib, no external libs for the core server.
January 17, 2025 at 8:23 AM
I just migrated away from JS land to Elixir land to Goland.

I don’t want to move to PHP or JavaScript.

I hope Templ doesn’t keep giving me issues.
January 17, 2025 at 8:17 AM
Also, seeing internal server errors.
January 17, 2025 at 7:05 AM
I’m using fastmail, but what’s the news?
January 16, 2025 at 6:30 PM
Raw dog code like the rest of us.
January 16, 2025 at 1:16 PM
I give up trying to search for this online.

Please tell me the site name.
January 10, 2025 at 10:06 AM
You don’t need a library for File Walking in Go!!

#golang, thanks for the fast defaults.

engineering.kablamo.com.au/posts/2021/q...
You Don't Need a Library for File Walking in Go
Go file walk implementations have radically different performance characteristics. In 2021 the native implementation has improved so much, you don't need anything else.
engineering.kablamo.com.au
January 10, 2025 at 3:47 AM
What’s the binary size?

Are you able to compile the project with tinygo without issue?
January 8, 2025 at 4:00 AM
Haha, I didn’t touch the code, but my mind kept racing.
January 7, 2025 at 4:51 PM
For CDN based approach, Bunny CDN comes to mind.

They also have image optimisation service for 10$ a month.
January 7, 2025 at 4:42 PM
Haha, same here.

The todo list is overflowing and so is my brain.
January 7, 2025 at 4:37 PM
Haha.

As for images, if they are sized dynamically and differently at different places then you can use imgproxy.

Else just cli for webp or imageoptim is great.

github.com/imgproxy/img...
GitHub - imgproxy/imgproxy: Fast and secure standalone server for resizing and converting remote images
Fast and secure standalone server for resizing and converting remote images - imgproxy/imgproxy
github.com
January 7, 2025 at 4:36 PM
Try unlighthouse.dev, it will run on every page, so you can get that score on every page.
Unlighthouse
Like Google Lighthouse, but it scans every single page.
unlighthouse.dev
January 7, 2025 at 3:52 PM
Whoa, you are killing it.

I'm procrastinating, blank canvas is scary.
January 7, 2025 at 3:51 PM
Haha, I was going to post the same thing now.
January 7, 2025 at 3:42 PM
This is what I tried as well. Which added to my confusion as well.

This vs Form vs JS vs Cookies.
January 7, 2025 at 3:30 PM
I did the same, but on each form submission instead.

So this clever.

However I am confused between 3 approaches that Echo framework has.

TokenLookup: cookie, form, header.

Like which is more secure. At work I use form based.

Maybe all 3 are secure.
January 7, 2025 at 3:10 PM
Yes, give it a try after your release, as this will be a time sink.

There’s one or two 6 - 10 hours video on YouTube, which is the most comprehensive vdo on this.

Also, courage is not needed at all, seriously.

Even casual users are self hosting so many web apps, engineers have nothing to fear.
January 7, 2025 at 12:15 PM
They even have Omni, I think I reposted a post from @siderolabs.com, that allows users to manage their servers from a GUI.

Like a self hosted, managed Kubernetes nodes.

Kubernetes as the OS, instead of Kubernetes running on top another OS.

I very much like the declarative nature of this approach!
January 7, 2025 at 12:09 PM