Why Nostr? What is Njump?
2024-05-28 17:33:33

Craig Hockenberry on Nostr: Pro Tip: Get in the habit of annotating your tuples. In six months, you're not going ...

Pro Tip: Get in the habit of annotating your tuples. In six months, you're not going to remember which string is which:

`func apiKeys() -> (String?, String?)`

You future self will be happier with:

`func apiKeys() -> (clientId: String?, clientSecret: String?)`

You can even annotate the return values if you have a lot of complex logic before the return:

`return (clientId: “CHOCK”, clientSecret: “NOUNDIES”)`
Author Public Key
npub19yc04xlts67rk2l0dv74w4hgeexx0p23jnf9eh3xjlc75mhukn2sf56avn