644 karma · joined April 20, 2016
https://pkg.go.dev/github.com/go-json-experiment/json#exampl...
Of course, most people won't do this, but that's besides the point.
> Click the disk that's a different color. Use your eyes only!
Inspecting the color is cheating.
[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Ran...
You can do the same tweak by editing the registry [2] if you don't want to download an app for it (though the app includes a lot of additional useful tweaks).
[1] https://winaerotweaker.com/
[2] https://www.tomshardware.com/how-to/disable-windows-web-sear...
And I'm only asking about when you are giving an error a distinct name, not just naming it 'err'.
The link (https://go.dev/talks/2014/names.slide#14) says:
Error values should be of the form ErrFoo:
var ErrFormat = errors.New("image: unknown format")
But the page says: // But if you want to give it a longer name, use "somethingError".
var specificError error
result, specificError = doSpecificThing()
And also says: Don't do this:
[...]
var errSpecific error
result, errSpecific = doSpecificThing()
So should error variables written like `errSpecific` or `specificError`? The go wiki says they should be written starting with `err`: https://go.dev/wiki/Errors#namingThe only issue I've had with it is that some esim provider apps refuse to work on a phone that doesn't have esim capabilities, and since the phone sees the card as a normal sim card, the apps don't work. I assume that will be an issue for any of these cards. Not a huge issue though, most esim apps/websites will still let you get the QR code or download the profile even if your phone doesn't natively support esim, and you just enter that into the esim.me app to program the card.
Also noticed that it breaks with single quotes, for example, this works:
curl -H "Some-Header: value" http://example.com
But this causes it to error: curl -H 'Some-Header: value' http://example.com[1] https://github.com/modmii/modmii.github.io/blob/master/Suppo...
GC Nano: https://bitbuilt.net/forums/index.php?threads/gc-nano-the-wo...
Short Stack: https://bitbuilt.net/forums/index.php?threads/short-stack-th...