You must log in or register to comment.
It certainly does, but sometimes desperate circumstances call for desperate actions. Or at least that’s how I justify my desperation code. :)
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!