Lessons from a 2020 intern assignment
Jun 23, 2020Kristian Freeman

Summary
This post details a take-home exercise designed for Cloudflare's 2020 internship applicants, focusing on building an A/B testing application using Cloudflare Workers. It explains the exercise's requirements, provides a sample solution, and discusses common mistakes and implementations observed from submissions. It also introduces extra credit challenges involving content replacement using string manipulation and the HTMLRewriter API, and persisting user choices via cookies. The post highlights the utility of Workers for self-contained, full-stack exercises and the feedback gained on the Workers ecosystem (documentation, wrangler CLI) from the application process.