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 still proud of writing some JavaScript some years ago, around 2011. There was a search field in a big page full of links (a famous Dutch portal website). This field could not just be used to search using Google but also visually show which links from the page were relevant.
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.
Hey there!
I honestly think we people in software are often too hard on ourselves (including myself of course ;)). And it is good to bring to light some things we are proud about! So thank you for bringing up this discussion :).
Here is mine:
I wrote an algorithm for my first job/professional experience that managed the logistics for a fleet of food delivery people that was shared across several restaurants in New York City. This algorithm would try to pick the best delivery person based on geo-location & also told them which food packages they should pick up / deliver and in which order.
I loved this project because it really really sucked at times and I got a chance to make it better. The iterative process is something I found so beautiful and enjoyable. There were moments that we royally messed up and we learned from that.
In a way this code is really a representation of growing and learning. This is why I loved this and programming in general :)