This Code Smells of Desperation | OS/2 Museum

sizeoftheuniverse@programming.dev to Programming@programming.dev – 30 points –
os2museum.com
2

For a second I thought my github was going viral. ;)

This is a hilarious (and interesting!) read.

As a young(er) and slightly shittier web developer, before I really understood or could implement promises effectively (or when my code would 'race' and fail to recognize that the DOM hadn't been loaded yet, so I couldn't attach event listeners yet), I was known to implement a 2 second timeout.

It wasn't pretty, but it worked!

It certainly does, but sometimes desperate circumstances call for desperate actions. Or at least that's how I justify my desperation code. :)