#orly #devstr #progressreport
so i made a partially working #NWC client, and now i have teh problem that to test notifications, and additionally, other methods, i actually need to implement the wallet service as well, at least the API for it, so i can make a mock to finish implementing it correctly.
i had the AI build out a little CLI and it works for methods that have no parameters, but only get_info and get_balance - list_transactions doesn't work, and i know for sure it's not implemented correctly, because when i run this method on my alby wallet service using a connection URI it doesn't catch the response.
i mean, i know, from endless experience that you always have to implement codecs and APIs as pairs... encoder needs a decoder to test. client needs a server to test.
i just dipped my toes in the pool of the Go code in the alby hub, and it's awful, i mean truly awful, Java-like implementation, with types and methods strewn among dozens of files and as well, a few folders.
this is not how you do things in #golang idiom. you put the types in one file, the methods in another file, and the helpers in a third section.
if you don't do this, it's hard to tell if you even have covered all of the bases. i'd guess that the AI will struggle to make sense out of it too since it has to have such a large context to enumerate all the parts properly.
every time people use foreign language idioms in Go code, God kills a kitten.
these heartless murderers...