Syntax - Tasty Web Development Treats

922: Pre-commit Hooks, requestAnimationFrame, Code Reviews, and More

63 snips
Jul 23, 2025
Explore the nuances of using requestAnimationFrame for smoother animations across frameworks like React and Angular. Dive into the challenges of code reviews in larger teams, discovering effective strategies for managing them. The future of web browsing is discussed, particularly the impact of AI on user interaction and content accessibility. Learn about coping with poorly built applications, and the necessity of pre-commit checks for maintaining code quality. Plus, some surprising insights on air dusters and kettlebells!
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ADVICE

When to Use requestAnimationFrame

  • Use requestAnimationFrame for animations or frequent DOM updates without bogging down performance.
  • Let the browser control the update frequency to optimize speed based on device capabilities.
ADVICE

Better Code Review Process

  • Automate linting and style checks to reduce manual errors in code reviews.
  • Use GUI tools like GitHub's VS Code pull request extension and formalize your review process for larger teams.
ADVICE

Practical Uses for CSS ATTR()

  • Use CSS ATTR() to access HTML attributes directly in styles for cleaner, centralized styling.
  • Pass declarative settings like colors or counts as attributes instead of inline styles for better maintainability.
Get the Snipd Podcast app to discover more snips from this episode
Get the app