We sometimes talk about terrible code, especially when we talk about the code we ourselves wrote not too long ago.
But what piece of code were/are you particularly proud of? What did it do? And why are you so proud of it?
I’ll start off.
I’m proud of the code because it had to run through a big data structure on every key press and filter out the unnecessary data in it. The first implementation was very slow because it did a lot of DOM operations. For the second version I created a crappy form of what you would now call a virtual DOM, do all operations and then do way less operations, making the feature fast enough for production.