Sign in

DerpyCoder

@derpycoder.bsky.social
155 followers 288 following 278 posts

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

PostsRepliesMedia
DerpyCoder @derpycoder.bsky.social · 17/01/2025
Ah, got it.
030
DerpyCoder @derpycoder.bsky.social · 17/01/2025
Here's how I am doing the routing. I am using Echo framework, not the stdlib router.
120
DerpyCoder @derpycoder.bsky.social · 17/01/2025
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.
120
DerpyCoder @derpycoder.bsky.social · 17/01/2025
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.
120
DerpyCoder @derpycoder.bsky.social · 17/01/2025
Also, seeing internal server errors.
000
DerpyCoder @derpycoder.bsky.social · 17/01/2025
@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.
340
DerpyCoder @derpycoder.bsky.social · 16/01/2025
I’m using fastmail, but what’s the news?
110
DerpyCoder @derpycoder.bsky.social · 16/01/2025
Raw dog code like the rest of us.
110
DerpyCoder @derpycoder.bsky.social · 10/01/2025
I give up trying to search for this online. Please tell me the site name.
100
DerpyCoder @derpycoder.bsky.social · 10/01/2025
You don’t need a library for File Walking in Go!! #golang, thanks for the fast defaults. engineering.kablamo.com.au/posts/2021/q...
engineering.kablamo.com.au
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.
010
DerpyCoder @derpycoder.bsky.social · 08/01/2025
What’s the binary size? Are you able to compile the project with tinygo without issue?
000
DerpyCoder @derpycoder.bsky.social · 07/01/2025
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
140
DerpyCoder @derpycoder.bsky.social · 07/01/2025
SSH is a thing of the past.
010
DerpyCoder @derpycoder.bsky.social · 07/01/2025
Haha, I didn’t touch the code, but my mind kept racing.
010
DerpyCoder @derpycoder.bsky.social · 07/01/2025
bunny.net/optimizer/
bunny.net
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.
010
DerpyCoder @derpycoder.bsky.social · 07/01/2025
For CDN based approach, Bunny CDN comes to mind. They also have image optimisation service for 10$ a month.
110
DerpyCoder @derpycoder.bsky.social · 07/01/2025
Haha, same here. The todo list is overflowing and so is my brain.
110
DerpyCoder @derpycoder.bsky.social · 07/01/2025
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.com
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
110
DerpyCoder @derpycoder.bsky.social · 07/01/2025
Try unlighthouse.dev, it will run on every page, so you can get that score on every page.
unlighthouse.dev
Unlighthouse
Like Google Lighthouse, but it scans every single page.
210
DerpyCoder @derpycoder.bsky.social · 07/01/2025
Whoa, you are killing it. I'm procrastinating, blank canvas is scary.
110
DerpyCoder @derpycoder.bsky.social · 07/01/2025
Haha, I was going to post the same thing now.
110
DerpyCoder @derpycoder.bsky.social · 07/01/2025
This is what I tried as well. Which added to my confusion as well. This vs Form vs JS vs Cookies.
CSRF Token with HTMX
110
DerpyCoder @derpycoder.bsky.social · 07/01/2025
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.
110
DerpyCoder @derpycoder.bsky.social · 07/01/2025
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.
010
DerpyCoder @derpycoder.bsky.social · 07/01/2025
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!
120
DerpyCoder @derpycoder.bsky.social · 07/01/2025
Using the talosctl to change or access machine config. And kubectl to talk with kubernetes.
110
DerpyCoder @derpycoder.bsky.social · 07/01/2025
I will give it a try if it’s stable.
010
DerpyCoder @derpycoder.bsky.social · 07/01/2025
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.
110
DerpyCoder @derpycoder.bsky.social · 07/01/2025
Thanks for this gem. I want to show some middle-fingers to haquers.
110
DerpyCoder @derpycoder.bsky.social · 07/01/2025
AI goes brrr…
010
DerpyCoder @derpycoder.bsky.social · 07/01/2025
I have been holding off on that hype train. Hearing good things so far!!
110
DerpyCoder @derpycoder.bsky.social · 06/01/2025
It’s still node. ‘npm install -g lighthouse’ 🥲
010
DerpyCoder @derpycoder.bsky.social · 06/01/2025
I might have to.
media.tenor.com
a close up of an elderly man 's face with a beard and missing teeth smiling .
ALT: a close up of an elderly man 's face with a beard and missing teeth smiling .
020
DerpyCoder @derpycoder.bsky.social · 06/01/2025
If it’s not doing much heavy lifting, then why not do it in 256 kb ram instead of needing a supercomputer. Also I don’t want to run or Host Node.js any longer. I think I’m getting too cranky at the state of softwares today. 😅
210
DerpyCoder @derpycoder.bsky.social · 06/01/2025
It’s ironic how lighthouse is written in JavaScript, given it’s a “performance” testing tool. Was it not possible for it to be written in performant language? Is there a #rust or #golang based alternative to #lighthouse, that’s blazingly fast 🚀?
130
DerpyCoder @derpycoder.bsky.social · 06/01/2025
What are some budget thocky keyboard everyone’s using? Keychron K2 is dying on me. It worked great for my need. Now the ‘tab’ and ‘q’ keys are notchy and not so responsive. Just happened after I switched to nvim!
media.tenor.com
a bald man with glasses is pointing at a tv screen and the words coincidence are above him
ALT: a bald man with glasses is pointing at a tv screen and the words coincidence are above him
000
DerpyCoder @derpycoder.bsky.social · 06/01/2025
That’s how it was for me. Even flash was running on that pentium 2 system, with very limited ram and 40 GB hdd. Now, I hate how every app starts like an Operating Systems boots up.
010
DerpyCoder @derpycoder.bsky.social · 06/01/2025
I interviewed 200+ candidates. And about 90% would reach out for .find() instead of writing a simple hashmap. I know not everyone cares of DS & Algo, or work for the big four, but still. This should be basic. I don’t think the bootcamp devs care, nor the devs coming in from universities.
210
DerpyCoder @derpycoder.bsky.social · 06/01/2025
And frameworks, builders that bury everything even deeper.
110
DerpyCoder @derpycoder.bsky.social · 06/01/2025
That’s a nice way of looking at things.
010
DerpyCoder @derpycoder.bsky.social · 06/01/2025
Yup, community has to be there. I can’t imagine myself building all the libraries from scratch. Non v1 packages makes me afraid of a language as well.
110
DerpyCoder @derpycoder.bsky.social · 06/01/2025
Damn, I will have a look. I tried running Haxe on my system, and I ran into so many issues that I gave up. I think, I tried twice. Don’t even remember what issue it was or if I tried to fix it seriously. But I expect a language to be infallible, it should be rock solid.
110
DerpyCoder @derpycoder.bsky.social · 06/01/2025
SDL2. Also I have nothing against Monogame, as it’s still code. Better than GUI based gamedev. Last I checked, after Unity’s debacle, Monogame got some funding. Their site looks good as well. I don’t know how people can deploy cross platform without some boilerplate libraries like Monogame.
230
DerpyCoder @derpycoder.bsky.social · 06/01/2025
Oh wow! Of course, let me know whenever you are ready. I am looking forward to it.
110
DerpyCoder @derpycoder.bsky.social · 06/01/2025
Yes, I long for the flash’s glory days. Maybe a new Newsground will arise. I started doing hobby gamedev in flash because of that.
130
DerpyCoder @derpycoder.bsky.social · 06/01/2025
Haha, yup that’s me.
110
DerpyCoder @derpycoder.bsky.social · 06/01/2025
Oh wait I saw his repo now. He switched to C#. He called it blah, now something new called Foster.
110
DerpyCoder @derpycoder.bsky.social · 06/01/2025
I think after Celeste, he is making his own. Don’t know if he is using any other library, maybe SDL2?
110
DerpyCoder @derpycoder.bsky.social · 06/01/2025
That is cool, I have been waiting for you to finish it. I sometimes visit your site and it says that it’s in maintenance mode.
110
DerpyCoder @derpycoder.bsky.social · 06/01/2025
Oh man, take a look the Celeste creator’s videos. He live streams creating engines for gamedev. The artist for Celeste used the game engine, used the in engine editor to put pixel art block by block and added life to the game. It is so fascinating!
130