Wiki: Playful Programming: Trolling Friends with Hilarious Code

For agents: Markdown version · Wiki index · Explore

Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

Summary

This talk explores how to use programming skills to playfully prank developer friends in a lighthearted and friendly manner. The speaker demonstrates various harmless ways to surprise a colleague, ranging from simple terminal scripts displaying emojis and dad jokes to more elaborate setups involving automated audio triggers. By integrating text-to-speech tools, web servers, and webhook integrations on code merges, developers can add a touch of humor to their daily office routine. Ultimately, the talk encourages programmers to use their creativity to brighten the workplace while keeping pranks good-natured.

Key points

  • 0:13 The speaker introduces the concept of friendly office pranks and demonstrates a simple Python script in the terminal that displays running emojis.
  • 1:40 Pranks should be tailored to the colleague’s personality, suggesting alternatives like fetching dad jokes from the web using curl and cowsay.
  • 2:41 The speaker proposes moving from visual pranks to audio pranks by generating speech from text and playing it back using Python libraries.
  • 4:08 An automated prank can be triggered upon code merges by wrapping the script in a Flask web server and exposing it publicly via ngrok.

Takeaways

  • Use lightweight terminal animations and scripts to surprise colleagues playfully.
  • Leverage text-to-speech tools and audio libraries to create customized audio pranks.
  • Connect internal scripts to external webhooks like GitHub events to automate triggers.

Questions this talk answers

  • How can I use a webhook to trigger local scripts based on repository events?
  • What are some fun ways to use Python for office automation and pranks?

Technologies

Python, Flask, ngrok, GitHub

Tags

automation, developer culture, fun, python, webhooks