home tags events about login
one honk maybe more

benjojo posted 04 Sep 2026 14:06 +0000

Messed up a bgp.tools deploy and ended up triggering a panic() on every single HTTP request (sorry if you were caught up in that!)

Anyway I now know that my panic() reporter that sends a blob to my XMPP clients buffers enough data that my phone will trigger enough push notifications that even if the standard paging stuff fails, my phone will quite literally vibrate off the desk (as I am slowly watching it do while I type this out)

aljaxus@toot.tux.si replied 04 Sep 2026 18:34 +0000
in reply to: https://mastodon.social/users/tef/statuses/117214023570390044

@tef @benjojo I understand that, but one could argue the same to always enforce `if err != nil {} else {}`

I would argue that, at least in my exp. you much more often need to catch error, handle it and return.

compared to other way around where you would quickly get multiple levels of nested `if`s.

What I am asking is why specifically `if err == nil` and not other way around.

'Because I feel like it' is always a good enough answer too, dont feel the need to defend yourself.

spaceinvader@social... replied 05 Sep 2026 05:01 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/Y2w62RT4zHDnVn95kl

@benjojo at my very first internship I was tasked with setting up Nagios. Nobody ever bothered to teach me alert tuning. Or testing, really. So I got it running and thought “gee, I bet my boss would like to be notified if there’s a problem!”

So anyway I sent well over 15,000 emails to his Blackberry, which he had to pull the battery out of to get it to stop vibrating.