Stop Naming Your Go Constructors New
Why Parse is better than New when your Go constructor is really parsing a string.
If a function takes some dodgy raw string, interrogates it, validates it, and only then lets it into polite society as a proper type, thatβs not New. Thatβs Parse. Apparently I now have opinions about Go naming. Tragic.
www.attilagyorffy.com/blog/stop-na...
12.03.2026 14:18
π 0
π 0
π¬ 0
π 0
GitHub - attilagyorffy/prometheus-exporter-nvidia-gpu: Prometheus exporter for NVIDIA GPU telemetry via nvidia-smi
Prometheus exporter for NVIDIA GPU telemetry via nvidia-smi - attilagyorffy/prometheus-exporter-nvidia-gpu
Iβve open-sourced a Prometheus exporter for NVIDIA GPU telemetry via nvidia-smi. Built for homelab and single-node Docker setups where I want proper GPU #observability without unnecessary stack weight (existing exporters were heavily tied to Kubernetes).
github.com/attilagyorff...
10.03.2026 11:10
π 1
π 0
π¬ 0
π 0
Sh*t, I'm starting to like Go.
09.03.2026 17:37
π 0
π 0
π¬ 0
π 0
#Protip: Validate LLM responses before caching them. We cached truncated JSON (max_tokens cutoff), then every retry hit the same broken cache. Now: parse into a typed result first β if it fails, don't cache. On cache hit, re-validate; bad entries self-evict and retry fresh. Now our cache self-heals!
09.03.2026 17:32
π 0
π 0
π¬ 0
π 0
The general pattern is: use types to make invalid states or operations unrepresentable. #Protip
08.03.2026 18:46
π 0
π 0
π¬ 0
π 0
Other examples include:
- Distinguishing EmailAddress, NonEmptyString, HashedPassword from raw strings
- Units/measurements: preventing mixing meters, feet, euros, dollars, net vs gross values
- Permissions / capabilities: Only code with an AdminUser or CanDelete token to allow sensitive actions
...
08.03.2026 18:46
π 0
π 0
π¬ 1
π 0
Example: model an order as DraftOrder, SubmittedOrder, and PaidOrder. Then pay() only accepts SubmittedOrder. Trying to pay a draft wonβt compile, so invalid state transitions are caught before the app even runs. #Protip
08.03.2026 18:46
π 0
π 0
π¬ 1
π 0
#Protip: Model state machines as types. Example: an order goes Draft β Submitted β Paid. Then pay(order) can require a SubmittedOrder, so paying a draft fails at compile time. The compiler blocks invalid transitions before the code ever runs.
08.03.2026 18:46
π 0
π 0
π¬ 1
π 0
Hello, world β Iβm building Audiqa
I'm starting Audiqa: a local-first audio library manager for people who care about their music. It treats music files as first-class data, built to serve your long-term interests.
Announcing Audiqa β a local-first audio library manager for people who actually care about their music. Your files are first-class data, designed for long-term ownership, not platform lock-in. Now and long-term.
blog.audiqa.app/announcing-a...
26.12.2025 18:06
π 2
π 2
π¬ 2
π 0
Just published Docker Compose π³ configs for some apps missing from the official TrueNAS catalog. Currently Ghost, MailCatcher, Fizzy β all tested and ready to deploy via the TrueNAS Web UI, no more trial-and-error. Contributions are welcome! github.com/attilagyorff...
25.12.2025 21:59
π 1
π 0
π¬ 0
π 0
Just dug up a blog post I wrote in early 2007 about my first steps with #RubyOnRails. Which apparently means I started on Rails 1.2 β a version so old it ran on steam and optimism. URLs barely had REST, I barely had a beard. Wild times. π«’
09.12.2025 17:50
π 3
π 0
π¬ 0
π 0
The navigation in Apple Music (formerly iTunes) app on macOS is absolutely terrible. It's no outlier in the swarm of "wanting it all" kind of modern music players that pack way too many things β podcasts, videos and now even DMs (really Spotify?!) β into their jammed-up UIs. Absolutely disgusting.
07.12.2025 08:54
π 0
π 0
π¬ 0
π 0
I should have known actually:)
02.12.2025 17:33
π 2
π 0
π¬ 0
π 0
Nog yourself out! π€ Also, am I delusional or the Nog song in the background could actually have been an inspiration for Freezeezy Peakβs amazing song? βοΈβοΈ
02.12.2025 08:07
π 2
π 0
π¬ 1
π 0
A screenshot of a browser window showing an HTTP 500 error when trying to load the Ghost blog API documentation.
Every few years I try giving @ghost.org another chance as a feature-rich home for my blog⦠and, like clockwork, it greets me with a fresh slap in the face. Truly a tradition at this point.
25.11.2025 11:05
π 2
π 0
π¬ 0
π 0
As I've turned 40 today, I find myself thinking more about how I can help build a healthier, more public internet. In this article I argue that real freedom means owning your identity, data, and connections β not just spreading them across more servers.
www.scout.engineer/p/the-need-o...
10.11.2025 07:46
π 2
π 0
π¬ 0
π 0
I donβt think Iβd ever said βit better be worthwhileβ until today β when a colleague asked for a PR review during my lunch break as I was watching a video about cute beavers 𦫠building a dam the mayor sadly said had to be removed.
29.10.2025 13:18
π 2
π 0
π¬ 0
π 0
At the center of the image is a comet that appears as a teardrop-shaped bluish cocoon of dust coming off the cometβs solid, icy nucleus and seen against a black background. The comet appears to be heading to the bottom left corner of the image. About a dozen short, light blue diagonal streaks are seen scattered across the image, which are from background stars that appeared to move during the exposure because the telescope was tracking the moving comet.
All eyes on comet #3I/ATLAS βοΈ
Hubble & Webb have already observed this comet coming from outside our Solar System.
Next up, our Mars Express, ExoMars Trace Gas Orbiter and Juice missions will turn their eyes towards it.
Learn more π esa.int/3IATLAS ππ§ͺ
24.09.2025 12:55
π 139
π 40
π¬ 1
π 5
Itβs great to sometimes work from different places, like from a coffee shop. Coding whilst listening to heavy bass music in your headphones. Oh, and itβs a totally new experience when you realise others are looking at you after youβve dropped a serious bass face. π
05.09.2025 21:56
π 1
π 0
π¬ 0
π 0
Ouch, I hope youβre well now. Itβs crazy how reckless some people are on e-scooters. I wonder if theyβd be as reckless if they owned them instead of sharing them. Plus, you donβt need a license to ride these (at least not where I live), so many people donβt know the safety rules.
29.08.2025 08:33
π 1
π 0
π¬ 0
π 0
What happened there David? From the video it's unclear whether you've hit a pothole or had been suddenly immobilized by an invisible alien force.
29.08.2025 08:22
π 2
π 0
π¬ 1
π 0
This is legitimately terrifying. Actively conspiracy-addled crackpots are in charge of America's health.
29.08.2025 02:19
π 247
π 66
π¬ 7
π 0
Image of a circle labeled "Proton", one about he same size labeld "Neutron", and other much smaller labeled "Electron", and a fourth even smaller labeled "Close-Ad-Button"
08.08.2025 07:28
π 3030
π 1123
π¬ 12
π 19
OK, I was expecting things to break when I enabled intrusion detection and I ended up blocking a few services without wanting to (like mDNS)
Next steps:
- Introduce monitoring of essential network services
- Isolate and adjust the rules that block services
- Re-enable Suricata on the local network
11.08.2025 05:50
π 0
π 0
π¬ 0
π 0
Updated my home OPNSense router and its deep packet inspection settings which finally seem to be working just fine.
The EICAR test file was successfully blocked and the alerts show up on the OPNSense UI.
#network #security
09.08.2025 21:01
π 1
π 0
π¬ 1
π 0
Proton Authenticator: Private, secure 2FA authenticator | Proton
Protect your accounts with Proton Authenticator, an end-to-end encrypted, open source, and ad-free two-factor authentication (2FA) app available across devices.
Now that Microsoft Authenticator is gone, @proton.me announced their own secure 2FA app: proton.me/authenticator
Iβm happy to see competitive apps being developed in Europe. (Even though Proton is Swissπ¨πand not part of the EU πͺπΊ, they share the same foundational values that prioritize privacy)
02.08.2025 07:17
π 1
π 0
π¬ 0
π 0
A screenshot of the Github workflow that provides performance monitoring capabilities for this software project.
Performance is about NOT DOING unnecessary things and doing the necessary things only once. I'm building performance monitoring right into the development cycle, the CI provides super fast feedback by heavily relying on the above principles, parallelism, caching. Very happy about the results so far.
26.07.2025 13:44
π 2
π 0
π¬ 0
π 0
Why is nobody talking about the elephant in the room and come clear?! Donkey Kong Bananza is actually a Mario game disguised as a DK adventure. Thereβs very little that resembles the original game, both in terms of vibe and mechanics.
RIP DK. π’ππ¦
18.07.2025 15:15
π 1
π 0
π¬ 0
π 0