Comment on I am God's greatest programmer

<- View Parent
BaardFigur@lemmy.world ⁨1⁩ ⁨year⁩ ago

How do you even fix it, when the design is broken. Sure you can make an alternative function, without all the warts, but how do you convince the “seniors” to not use the old functions, because it is in fact problematic for various reasons.

We have a separate C-library that returns all strings by ringbuffer. Why is that a problem? Call into the ringbuffer enough times, and it will wrap around, overwriting earlier strings. This, and other bad code practices such as broken multi-threaded code (not threadsafe), and more.

source
Sort:hotnewtop