for context, here is "the thing".
In programming, there are a lot of things that I consider repetitive/tedious. One of these things includes making unit tests, I find it to be exhausting. Another one of these things is commenting my code. Not just // or my long form comments but XML-doc comments like so:
/// <summary>
/// Sends a post request given an endpoint, a body, and optional headers
/// </summary>
/// <param name="endpoint">A string containing the api endpoint to invoke this request on</param>
/// <param name="body">The request body</param>
/// <param name="headers">An optional List of KeyValuePairs</param>
/// <returns>an instance of RestResponse containing the result of the POST request</returns>
internal async Task<RestResponse> WrappedRequestAsync(string endpoint, string body = "{}", List<KeyValuePair<string, string>>? headers = null)
"The thing" refers to the fact that in particular, cardboard.NET's MisskeyRestApiClient class (which basically encapsulates a RestSharp client instance and has all of the functions actually sending requests to the misskey RESTful API) is being refactored. I have replaced some of the underlying functions that the rest of the functions rely on (namely, renamed SendWrappedRequestAsync to WrappedRequestAsync and introduced WrappedRequestAuthAsync along with the nonwrapped variants). I have >60 errors because all of these functions are calling functions that do not exist.
What I have been doing to fix this is taking the time to write out the XML-doc comments describing what the function does, and adding remarks for the required scope just on the off chance we ever get an endpoint to see the current scopes of the token. Why is this important? Because it would save me a lot of time later, I won't have to look up the api doc to see the required scope. I'm doing more work now so I have less work later. Problem is I am bored out of my fucking mind doing this repetitive task. Do I do the thing and just skip over all the xml-doc to work on things I actually care about or do I continue to build my discipline and do things that need to be done but aren't fun
Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
Amber (puppygirlhornypost2@transfem.social)'s status on Wednesday, 23-Oct-2024 06:26:46 JSTAmber