Not too related, but I wonder how many sites/algorithms were written in a lazy way, making that “I’m not telling you where I am” circle centred perfectly around their address. So while it is designed to look like your address could be anywhere within the circle, I bet that with most of them you just have to put a pin into their exact geometric centre.
If you build a linked list in C, and put the pointer to the next entry as the first element in your struct, then you only need a single variable (and two comparisons) to do sorted insertion into the list.
That’s too complicated for me to understand so here is my thing I know:
When using example code from the Internet, it’s important to read the comments at the top of the file before going to far into adapting it and then wondering why it isn’t working.
Hahaha ended up with different “Chromium” is that the joke? :D I don’t know if the collective understood but boy can I relate to searching the repo and getting way different stuff than I started looking for! XD
lemmy.world
Hot