Create your own Code-Generating Package | Morgan Hunt - FlutterVikings

Опубликовано: 05 Ноябрь 2024
на канале: Flutter Community
580
29

In this session, I will walk the audience through what code-generation is, why we use it within our projects, and how every developer can create their own code-gen package. What is Code Generation I'll discuss what code generation is and the issues and mundane tasks that it tries to solve. I will talk about the reasons how generating code can reduce errors and code that requires maintenance. Why use Code Generation One of the more prominent solutions that code generation provides is maintenance reduction. I'll discuss some popular packages and the pain points that they try to solve through code generation. I'll demonstrate a common task that happens in almost every project and how it can be solve using a code-gen package. Then I will compare the old maintenance-required code to the newly, almost maintenance free, generated code. Create your own code-gen package Finally, I'll break down the minimum code needed to set up your own code generating package, solving a problem in a particular project. Starting by demonstrating how to create annotations & it's generator, the available options for part files, settings via the build.yaml file, and testing.


Speaker: https://feb2022.fluttervikings.com/sp...


----------------------------------------------------------------------------------------
FlutterVikings website: https://fluttervikings.com/
FlutterVikings Twitter:   / fluttervikings  
FlutterVikings Linkedin:   / fluttervikings  
----------------------------------------------------------------------------------------


Flutter Community Twitter:   / fluttercomm