remember, by, and mutableStateOf explained

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024
  • Understand the roles of remember{}, mutableStateOf, by, and the Delegate Design pattern, and how they work with Jetpack Compose
    All source code is freely available in GitHub: github.com/dis...
    This video is part of a playlist on creating Android apps with Jetpack Compose, which is available here: • Create an Android app ...

Комментарии • 46

  • @rajkumardongre3085
    @rajkumardongre3085 2 года назад +8

    who is here after watching the disappearance of his mustaches, Great Expaination

    • @discospiff
      @discospiff  2 года назад +3

      That's one of my trademarks. :) I do that in several videos. Thanks for noticing!

  • @ewr2788
    @ewr2788 Год назад +2

    Very helpful video for understanding however it seems that your example in your video wasn't working:
    val beard by remember { mutableStateOf(Type.FullBeard, Type.FriendlyMuffinChops, Type.Shaven, Type.Mustashe) }

    • @discospiff
      @discospiff  Год назад +1

      Thanks for noticing. That's one of my trademarks. :)

    • @ewr2788
      @ewr2788 Год назад

      This is the first video I've watched of yours. It had me laughing. Have a great day!

  • @mathias0584
    @mathias0584 Год назад +1

    var a by remember {
    mutableStateOf("")
    }
    remember and mutableStateOf are both red. My project doesn't know what they are. What am I missing? Thanks!

  • @theai2020
    @theai2020 Год назад +1

    Perfect example of the re-composing with those beard changes

    • @discospiff
      @discospiff  Год назад +1

      YES! Thanks for noticing the beard. I do that in a lot of my videos. ;)

  • @Denis_Dobr
    @Denis_Dobr Год назад +1

    So nobody want to mention his appearing and disappearing moustache ? 😂

    • @discospiff
      @discospiff  Год назад +3

      Thanks for noticing. I put a lot of effort into that. ;)
      I do that on many of my videos.

  • @meetpatell
    @meetpatell 7 месяцев назад +1

    Finally understood the concept thank you so much sir please keep posting it's really informative

    • @discospiff
      @discospiff  7 месяцев назад +1

      Thanks!
      I'll admit it confused me ... Until I figured it out. Then I decided to make the video, because I assumed I'm not there only one!

    • @meetpatell
      @meetpatell 7 месяцев назад +1

      @@discospiff Thanks for the explanation sir it was a great video

  • @HeyImVi
    @HeyImVi 11 месяцев назад

    Do you have this mustache or not. Im more confused over your facial hair, sir. But amazing explanation, thank you!

  • @yarivzip
    @yarivzip Год назад +2

    Now I remember what I wanted to write :) A very short and useful explanation. Well done!

    • @discospiff
      @discospiff  Год назад

      I really appreciate the feedback! Thanks for watching.

  • @KennedyWaithaka
    @KennedyWaithaka Год назад +2

    remember is a simple concept but always goes over my head. You have done a great job making it understandable now

    • @discospiff
      @discospiff  Год назад

      Thanks! My goal in this video is to make a confusing concept understandable. I'm glad it helped!

  • @issacharlev5553
    @issacharlev5553 3 месяца назад

    that was excellent sir. thank you for this. i do have a question for you or for any C programmers out here, can i compare the concept of remember to declaring a variable inside a function as static? (in C language)

    • @discospiff
      @discospiff  3 месяца назад

      Thanks for the note!
      Huh... Good thought! I'll confess, I've mostly been a Java/Kotlin developer, not so much C. Though all languages have the concept of static.
      The concept of remember in Kotlin was a bit tricky for me, as I do not know of another good analogy in computer programming. Perhaps you've found one. Tell me more: what similarities do you see with a static in C?

  • @musicdad
    @musicdad 2 года назад +3

    Are your classes available online?

    • @discospiff
      @discospiff  2 года назад +1

      Yes! onestop.uc.edu
      classes.catalyst-services.uc.edu/search/

  • @montuedge
    @montuedge 8 месяцев назад

    Keep up the good work Sir! :D

  • @Talaria.School
    @Talaria.School 2 года назад +1

    Your charnel is very valuable. Keep on and thanks a lot sir

    • @discospiff
      @discospiff  2 года назад +1

      Thanks! Comments like these are why I keep making videos. :)

  • @majinzeke4977
    @majinzeke4977 2 года назад +1

    Omg. You speak clearly and I'm learning something! Thank you

    • @discospiff
      @discospiff  2 года назад

      Excellent! I'm happy to hear the feedback!

  • @kristenhuerta2026
    @kristenhuerta2026 2 года назад

    Here is all of my info so that way on the offer chance one of you reading this might know ilor be capable of finding a University certified and self proclaimed Religious guru with a PhD in Spiritual studies; a historical and holy relic enthusiast and somebody who is passionate about Philosophy, Occult and the whole concept of the Da Vinci Code and and HOLY grail... Also will probably need a genealogical professional and a few different mythology experts would probably need to join in on the verification or certification process too.

  • @hitensamalia
    @hitensamalia Год назад

    Very Good Explanation!

    • @discospiff
      @discospiff  Год назад

      Thanks! Remember and mutableStateOf can be tricky. I made this video to help others understand it. I hope it worked well for you.

  • @annunzarizzle
    @annunzarizzle 2 года назад +1

    This is a crazy good explanation. Don't stop.

    • @discospiff
      @discospiff  2 года назад +1

      Thanks! I struggled with this for a while. When I finally figured it out, I did what I like to do... Make a video to help others. So in glad to know it helped!

  • @ChrisAthanas
    @ChrisAthanas 2 года назад +3

    Great explanation of a confusing topic

    • @discospiff
      @discospiff  2 года назад +1

      Thanks! That's good to hear. That's what I try to do in all of my videos. So, heading this feedback is the pinnacle!

    • @ChrisAthanas
      @ChrisAthanas 2 года назад

      @@discospiff what's up with the religious comments tho... Seems a little off topic

    • @discospiff
      @discospiff  2 года назад

      @@ChrisAthanas what religious comment?

    • @ChrisAthanas
      @ChrisAthanas 2 года назад

      @@discospiff the other comments here on this comment page, not by you tho

    • @discospiff
      @discospiff  2 года назад +2

      @@ChrisAthanas ah, I didn't notice. Thanks for pointing that out. Probably a spammer. I will purge/report them.

  • @IguJl
    @IguJl 2 месяца назад

    Best explanation

    • @discospiff
      @discospiff  2 месяца назад

      Thanks! The topic confused me quite a bit, so I did what I like to do in that situation: make a video explaining it. I had a lot of fun making this video. :)
      I assume you're using jetpack compose now... How do you like it?

    • @IguJl
      @IguJl 2 месяца назад

      ​@@discospiff ​ Actually i'm a Flutter developer who already tested Kotlin Multiplatform (KMP). Some months ago, I made an application with KVM and did not understand this topic... so just wrote it down and accepted that it is like it is.
      Now I'm thinking about re-picking native android development to expand my knowledge but just the compose on android without all the limitations of KMP in other platforms.
      So then, I'm starting again from the key concepts i didn't understood and try again.
      Hey, do you want to suggest which new app I can develop to learn compose + android? hehehe

    • @discospiff
      @discospiff  2 месяца назад

      @@IguJl interesting. I've always been a native app developer... Haven't done much with flutter myself.
      App idea? Well... What's one thing that would make your life more convenient?
      Keep in touch, and let me know how your journey goes!

    • @IguJl
      @IguJl 2 месяца назад

      ​@@discospiff Classic suggestion. I'll think about something and tell you when i decide. Thanks for replying.
      Oh, maybe I bring up some questions in the videos about management and scrum. See you soon

  • @kristenhuerta2026
    @kristenhuerta2026 2 года назад

    BTW my birthday is the MASS of salt in UK form
    22 . 989
    Na is the abbrev for Salt (Sodium)
    And
    You can't spell
    In the
    ***NAME of JESUS KRISTEN***
    WITHOUT the very two first letters of which represent the element of salt.
    "I AM THE SALT OF THE EARTH...., I AM THE LIGHT OF THE WORLD..."
    Oh and by the way The number for spiritual light is 22 for those that don't know which is my day of birth.