On .NET Live – Practical Use of Source Generators in Jinget
In this On .NET Live session, guest Vahid Farahmandian, along with hosts Maira Wenzel and Scott Addie, delve into Source Generators in .NET as used in the Jinget framework. Discover integration strategies, challenges, and real-world benefits.
On .NET Live – Source Generators in Jinget
Featuring: Maira Wenzel, Scott Addie, Vahid Farahmandian (@jinget)
Overview
.NET Source Generators, a feature introduced in .NET 5, empower developers to implement compile-time code generation within their applications. This capability streamlines workflows by automating repetitive tasks, optimizing performance, and significantly reducing the boilerplate found in codebases.
The Jinget framework, highlighted in this session, utilizes Source Generators to facilitate cleaner, more efficient, and highly productive development experiences. Guest speaker Vahid Farahmandian discusses the evolution of Jinget, practical use cases, and the strategies employed to harness Source Generators for tangible benefits.
Session Chapters
- 00:00 – Countdown
- 03:17 – Welcome and Intros
- 04:42 – The Evolution of Jinget
- 00:30 – Use Cases for Jinget
- 14:52 – Demo
- 44:30 – Q&A
- 01:00:01 – Wrap-up
Highlights
Introduction to Source Generators
- Overview of what Source Generators are
- Motivation for using compile-time code generation
- Examples of scenarios where they are beneficial
Jinget Framework Evolution
- How Jinget has grown to incorporate Source Generators
- The role of Jinget in modern .NET development
Use Cases
- Automating code patterns to reduce repetition
- Boosting runtime performance via compile-time processing
- Keeping large codebases maintainable
Demo
- Live demonstration showing how Source Generators operate in Jinget
- Example workflows illustrating real productivity gains
Challenges and Lessons Learned
- Refactoring complexities
- Mitigating pitfalls when adopting compile-time tools
- Managing compatibility and migration from earlier .NET versions
Best Practices
- Integration tips for Source Generators in existing projects
- Testing and debugging strategies
- Documenting and maintaining generated code
Q&A
- Addressing common developer concerns
- Sharing feedback from the Jinget user community
Conclusion
The session concludes by providing actionable advice for teams considering Source Generators, along with a summary of how these techniques, and the Jinget framework, can help drive cleaner, more maintainable, and productive development in the .NET ecosystem.
For more information, you can follow Vahid Farahmandian (@jinget) and connect with hosts Maira Wenzel and Scott Addie on the .NET developer community channels.