mleku @mleku - 9h
#realy #devstr #progressreport this morning i finished up a little bit of cleaning prompted by the use of a static analysis tool called `gocyclo`. this tool analyses the code and looks for long and complex functions that it highlights for "cyclomatic complexity" which basically means that the function should be decomposed into some smaller parts to reduce the cognitive burden of debugging it i fixed a few things in some very long winded functions relating to handling event submission (complex because of the delete stuff, so that was split off) and request handling... i will continue to do more of this decomposition work on other stuff before i move on to other things because breaking the stuff down into bite sized pieces makes change and debugging a lot easier there are a bunch of other great static analysis tools i can use as well and i'll probably work through a few more and clean up the codebase even further, before pondering what new things to add i still have yet to finish putting the bunker code in the old codebase from the new work also, and then once that's all done i'll be figuring out how to make a bunker signer app, and probably the next feature after that will be using the same GUI tooling to create a really nice API explorer, first to replace the existing web interface to it, and then probably extend it to support the websocket API (nip-01) as well, and i will aim to make it so you can use it satisfactorily on even a mobile phone
Silberengel @Silberengel - 9h
Yeah, that's been a goal of my Contact page rewrite. Have you heard of "Five Lines of Code"? https://dev.to/kanani_nirav/the-five-lines-of-code-principle-why-less-is-more-in-programming-31j6