Thinking Elixir Podcast cover image

Thinking Elixir Podcast

167: Customizing mix phx.new?

Sep 5, 2023
Victor Björklund, Phoenix project generator customization expert, explains how to customize mix phx.new and discusses customizing the Phoenix generators for existing projects. The podcast also explores the idea of supporting 3rd-party maintained generators and their potential benefits. A fun discussion that generates ideas for project customization.
52:45

Podcast summary created with Snipd AI

Quick takeaways

  • Customizing Phoenix project generators can save time and ensure consistent code across projects.
  • Balancing the complexity of changes with the benefits they provide is important when customizing Phoenix generators.

Deep dives

Customizing Phoenix Generators

This podcast episode discusses how to customize Phoenix generators to generate code that aligns better with your specific needs and preferences. The host and guest explore the process of modifying the Phoenix installer and templates to add additional functionality and libraries to new projects. They highlight the benefits of customizing generators, such as saving time, maintaining consistency across projects, and avoiding missing important code. They also discuss the difference between modifying the installer for new projects and modifying generators in existing projects. The importance of balancing the complexity of changes with the time and effort they save is emphasized. The conversation concludes by considering the possibility of community-driven alternative generators for Phoenix and the benefits and drawbacks of working with generators versus macros.

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner