---
title: "Comment by Taha Teber on \"From Annotations to Generation: Building Your First Dart Code Generator\" | Hashnode"
description: "Very informative, Thank you My opinion regarding code generation is macros will replace it, I am myself anti-code gen in Flutter, a lot of .g files, It always s"
url: "https://hashnode.com/posts/from-annotations-to-generation-building-your-first-dart-code-generator/67767098ddde191c5d6727e3/comment/677a5650696a31f0d05c19e8"
---

[Discussion](https://hashnode.com/posts/from-annotations-to-generation-building-your-first-dart-code-generator/67767098ddde191c5d6727e3)

Comment [From Annotations to Generation: Building Your First Dart Code Generator](https://hashnode.com/posts/from-annotations-to-generation-building-your-first-dart-code-generator/67767098ddde191c5d6727e3)

[Taha Teber](https://hashnode.com/@tahateber)

[Jan 5, 2025](https://hashnode.com/posts/from-annotations-to-generation-building-your-first-dart-code-generator/67767098ddde191c5d6727e3/comment/677a5650696a31f0d05c19e8)

Very informative, Thank you

My opinion regarding code generation is macros will replace it, I am myself anti-code gen in Flutter, a lot of .g files, It always seems to make things easier at first, and then when there are any problems you're staring at a black box, and I don't need to read the black box.

[Dinko Marinac](https://hashnode.com/@dinko7)

[Jan 5, 2025](https://hashnode.com/posts/from-annotations-to-generation-building-your-first-dart-code-generator/67767098ddde191c5d6727e3/comment/677a5650696a31f0d05c19e8#reply-677a6ed7e21a4067d16ccf56)

Hi Taha, thanks for sharing your opinion. Macros will never fully replace build\_runner because they generate Dart code only, so in the case of Pidgeon or any use case where your output is not a Dart file, macros will not be useful.

Also, they are still experimental, but judging only by the preview macro JsonCodable, the way augment class works, also means that they will not work for generating standalone Dart files.

Will it replace .g.dart and .extension.dart? Yes. But that's about the extent of it.
