How to Write Code Others Won’t Hate
summary
Ad network code at AppLovin needs strict discipline: comments explain why not what, commit messages state what changed and why, and consistent method names (get/retrieve/fetch) reveal IO vs in-memory behavior. Hardcoded DB addresses break ops; moving configs to a properties file & feature flags lets ops flip problematic paths without a deploy. Health endpoints return real checks ( internal and external ), logging and names must match automation, and targeted code duplication near the UI reduces fragile central abstractions.
AI-written summary · about
chapters (12)
- 0:00Introduction to writing maintainable code
- 1:28The Sunday afternoon emergency
- 3:14Why good comments matter
- 4:15The power of commit messages
- 5:18Naming conventions and consistency
- 7:25Configuration in properties files
- 9:13Postmortem and logging consistency
- 12:46Health endpoints best practices
- 15:12Business requirements and code complexity
- 17:19Code duplication near user interfaces
- 21:11Lessons learned and team practices
- 24:59Q&A and final thoughts
