• bignavy@programming.dev
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 year ago

    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
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

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