This Code Smells of Desperation | OS/2 Museum

https://www.os2museum.com/wp/this-code-smells-of-desperation/

26 points · 2 comments · view on lemmy.world

2 Comments

bignavy@programming.dev · 3 pts · 3y

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!

jadero@programming.dev · 2 pts · 3y

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