# \[fun share\] chatGPT to improve mixin

**URL:** <https://forums.kodeco.com/t/fun-share-chatgpt-to-improve-mixin/183835>\
**Category:** Dart Apprentice: Beyond the Basics\
**Created:** [February 11, 2023, 5:53am UTC](https://forums.kodeco.com/t/fun-share-chatgpt-to-improve-mixin/183835 "2023-02-11T05:53:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ellery](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ellery/32/110937_2.png) [@ellery](https://forums.kodeco.com/u/ellery)\
**Post date:** [February 11, 2023, 5:53am UTC](https://forums.kodeco.com/t/fun-share-chatgpt-to-improve-mixin/183835/1 "2023-02-11T05:53:48Z")

</div>

I try to ask chatGPT about improving code using mixin. see below:

 ![chatGPT](https://files.chunter.kodeco.com/original/3X/9/5/9562236083f84d7f6802e666b3942ab0a03348ee.jpeg)

---

<div class="post-metadata">

**Author:** ![robertomachorro](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/robertomachorro/32/111603_2.png) [@robertomachorro](https://forums.kodeco.com/u/robertomachorro)\
**Post date:** [February 11, 2023, 12:59pm UTC](https://forums.kodeco.com/t/fun-share-chatgpt-to-improve-mixin/183835/2 "2023-02-11T12:59:41Z")

</div>

Thanks for sharing! But your screenshots are super small, could update?

---

<div class="post-metadata">

**Author:** ![ellery](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ellery/32/110937_2.png) [@ellery](https://forums.kodeco.com/u/ellery)\
**Post date:** [February 11, 2023, 4:08pm UTC](https://forums.kodeco.com/t/fun-share-chatgpt-to-improve-mixin/183835/3 "2023-02-11T16:08:38Z")

</div>

Hi You need to click, it will prompt the picture, and then click again. The picture will then resize and become larger.

---

<div class="post-metadata">

**Author:** ![suragch](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/suragch/32/109020_2.png) [@suragch](https://forums.kodeco.com/u/suragch)\
**Post date:** [February 13, 2023, 5:08am UTC](https://forums.kodeco.com/t/fun-share-chatgpt-to-improve-mixin/183835/4 "2023-02-13T05:08:44Z")

</div>

Nice! I like it! Now I know what oviparous means too.

To clarify the advice ChatGPT gave you, you can actually use abstract classes as mixins as long as they include concrete methods. You can also use regular classes as mixins. However, if your only purpose is to share some code between classes, then it’s more clear to use the `mixin` keyword. You would only use a class as a mixin if you also needed it use it as a standalone class in addition to being a mixin.

I’ve added a TODO issue to the book repo to add more explanation about this to the next edition.

So how did you end up making your screenshot? Did you paste a bunch of screenshots together or did you find a way to do it automatically?

---

<div class="post-metadata">

**Author:** ![ellery](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ellery/32/110937_2.png) [@ellery](https://forums.kodeco.com/u/ellery)\
**Post date:** [February 13, 2023, 2:24pm UTC](https://forums.kodeco.com/t/fun-share-chatgpt-to-improve-mixin/183835/5 "2023-02-13T14:24:03Z")

</div>

@suragch I end up using a Chrome extension called chatGPT screenshot to take the screenshot for me.  
Thank you for your further clarification. This example showcases chatGPT cannot replace a real, nice, knowledgeable teacher like you. In this case, if you don’t clarify, I will be forced to believe `with` keyword can only be used with mixin.  
chatGPT can easily to generate some seemingly authoritative knowledge, which can only be verified by a person with related subject matter knowledge. This can be dangerous and I should be aware of this when I use chatGPT later.

---

<div class="post-metadata">

**Author:** ![suragch](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/suragch/32/109020_2.png) [@suragch](https://forums.kodeco.com/u/suragch)\
**Post date:** [February 14, 2023, 4:44am UTC](https://forums.kodeco.com/t/fun-share-chatgpt-to-improve-mixin/183835/6 "2023-02-14T04:44:56Z")

</div>

That’s true about ChatGPT for sure. It sounds very authoritative even when saying something wrong. However, it’s also true for real humans. Listen to nearly any debate and you’ll hear someone sounding authoritative about something they’re wrong on. I’ve learned not to blindly trust titles and books, but to look into disputable matters for myself. The same goes for those reading the things I write. Challenge me where you think might be wrong. That’ll help us both.

---

<div class="post-metadata">

**Author:** ![ellery](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ellery/32/110937_2.png) [@ellery](https://forums.kodeco.com/u/ellery)\
**Post date:** [February 14, 2023, 8:08am UTC](https://forums.kodeco.com/t/fun-share-chatgpt-to-improve-mixin/183835/7 "2023-02-14T08:08:47Z")

</div>

Thank you for your advice!
