r/developer • • Oct 02 '26

The "Code I'll Never Forget" Confessional.

What's the single piece of code (good or bad) that's permanently burned into your memory, and what did it teach you?

15 Upvotes

21 comments sorted by

View all comments

2

u/StockJournalist9103 Oct 04 '26

Oh god, some Cloudflare api stuff that creates workers, pushes a static page, creates a route, creates a rule to enable the rule then bounces traffic from one site to the worker using bulk redirects for when sites are deploying or need for maintenance etc. I just could not could not buckle in and figure out the documentation for end points etc it read backwards or wasn’t correct - the whole thing was PAIN until I got all that working then the rest was great but damn, those endpoints HURT