DerpyCoder's Avatar

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

142 Followers  |  287 Following  |  278 Posts  |  Joined: 04.12.2024  |  2.0882

Latest posts by derpycoder.bsky.social on Bluesky

Ah, got it.

17.01.2025 09:58 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Here's how I am doing the routing.

I am using Echo framework, not the stdlib router.

17.01.2025 09:00 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

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.

17.01.2025 08:23 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

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.

17.01.2025 08:17 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image Post image

Also, seeing internal server errors.

17.01.2025 07:05 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@psionicalch.com ,

Is Golang Templ unstable?

I’m running into lots of weird issues.

LSP is pointing out wrong places for errors.

JavaScript and CSS formatting and highlighting is not working in the style and script tags.

For loop is acting weird.

17.01.2025 07:03 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

I’m using fastmail, but what’s the news?

16.01.2025 18:29 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Raw dog code like the rest of us.

16.01.2025 13:16 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I give up trying to search for this online.

Please tell me the site name.

10.01.2025 10:06 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
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.

You don’t need a library for File Walking in Go!!

#golang, thanks for the fast defaults.

engineering.kablamo.com.au/posts/2021/q...

10.01.2025 03:47 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

What’s the binary size?

Are you able to compile the project with tinygo without issue?

08.01.2025 04:00 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

What’s RapidAPI alternative to sell APIs?

This stops me from using them:

β€œRapidAPI currently only pays out API providers via PayPal”

PayPal, is a no-no for me.

#buildinpublic, #golang, #indiehackers

07.01.2025 20:02 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

SSH is a thing of the past.

07.01.2025 17:14 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Haha, I didn’t touch the code, but my mind kept racing.

07.01.2025 16:51 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Bunny Optimizer | Dynamic Image resizer powered by a CDN Improve your website performance with next-generation image optimizer, dynamic image optimization, and CSS & JS minification powered by a CDN.

bunny.net/optimizer/

07.01.2025 16:44 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

For CDN based approach, Bunny CDN comes to mind.

They also have image optimisation service for 10$ a month.

07.01.2025 16:42 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Haha, same here.

The todo list is overflowing and so is my brain.

07.01.2025 16:37 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
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

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...

07.01.2025 16:36 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
Unlighthouse Like Google Lighthouse, but it scans every single page.

Try unlighthouse.dev, it will run on every page, so you can get that score on every page.

07.01.2025 15:52 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

Whoa, you are killing it.

I'm procrastinating, blank canvas is scary.

07.01.2025 15:51 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Haha, I was going to post the same thing now.

07.01.2025 15:42 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
CSRF Token with HTMX

CSRF Token with HTMX

This is what I tried as well. Which added to my confusion as well.

This vs Form vs JS vs Cookies.

07.01.2025 15:30 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

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.

07.01.2025 15:10 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

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.

07.01.2025 12:15 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

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!

07.01.2025 12:09 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Using the talosctl to change or access machine config.

And kubectl to talk with kubernetes.

07.01.2025 12:06 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I will give it a try if it’s stable.

07.01.2025 11:50 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

That’s so cool!

At the same time, I think that modern servers can be much more lightweight and not even have this port scanning issue.

For example, TalosLinux has no ssh binary, so what’s the hacker going to do?

No unnecessary process in the background, just a server that serves HTTP.

07.01.2025 11:24 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Thanks for this gem.

I want to show some middle-fingers to haquers.

07.01.2025 10:39 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

AI goes brrr…

07.01.2025 10:32 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@derpycoder is following 20 prominent accounts