Coding Review - SwiftUI example with Best Practices - Tips and Tricks - Core Data Preview & Canvas

Поділитися
Вставка
  • Опубліковано 4 лис 2024

КОМЕНТАРІ • 47

  • @chris_bennett
    @chris_bennett 3 роки тому +4

    This is so great! A lot other channels, mostly non-development, typically critique or discuss other channels' videos. You are the first one I discover doing that for another channels' SwiftUI video and I love it. Learning so much from this and I think this is also what the greater development community should be about: helping one another. I also love your thourough explanations! Thank you

  • @notorioustofu3482
    @notorioustofu3482 2 роки тому

    This was a fantastic code review. I’m going to share this with my team to improve PR reviews. Looking forward to more

  • @1994djcesco
    @1994djcesco 3 роки тому +4

    there is nothing better than some good refactoring. Subscribed!

  • @jeff.fredrickson
    @jeff.fredrickson 3 роки тому +1

    Thanks for this code review! As a software engineer new to Swift and SwiftUI, I appreciated learning the real best practices such as Combine, flexible frames, and view modifiers. I hope to see more like this!

  • @yusefnathanson
    @yusefnathanson 3 роки тому +1

    Thank you! This kind of video is exactly what I need to advance. Please consider making more refactoring / best practices videos.

  • @alexmedvedovski6399
    @alexmedvedovski6399 3 роки тому +2

    Nice code cleanup. I also really enjoyed the tips & tricks that you showed.

  • @gabrielros1
    @gabrielros1 3 роки тому

    This is really great concept. There is a lot to learn from this. Please keep adding more video with "Code Review" concept.

  • @GaryLutchansky
    @GaryLutchansky 2 роки тому

    Wonderful! The technique you use for this video helps my comprehension of what to do and why to do it. Thank you very much!

  • @lincolndickerson1293
    @lincolndickerson1293 3 роки тому

    Great job. There are ao many great tips here. Thank you! More code reviews would be awesome. There are so many “ Simple” examples that bypass good practices like using enums instead of string compares. The core data helper is fantastic.

  • @johnr.5475
    @johnr.5475 3 роки тому

    Thanks for this. Again, a great video lesson. It’s very useful to see an excellent developer do a code review like this. I learnt lots. Thanks.

  • @bobweiram6321
    @bobweiram6321 3 роки тому

    This is an awesome video. You should do more of code reviews and refactoring. It's an great way to introduce new ways to improve code quality resorting to non-real world examples..

  • @rillieux1792
    @rillieux1792 3 роки тому +1

    Thank you the video. Do you have your own GitHub repo with your completed code?

  • @emresancaktaroglu6430
    @emresancaktaroglu6430 3 роки тому

    I want my SwiftIUI projects reviewed by you very much. I will send my project as soon as I finished.

  • @bartho87m
    @bartho87m 3 роки тому

    Love this kind of video. Very nice channel and very good videos to get better in Swift/SwiftUI

  • @juanparodriguez4179
    @juanparodriguez4179 3 роки тому +1

    Beautiful. Great code review. I have learned a lot with you.

  • @bozhang9606
    @bozhang9606 3 роки тому

    Really awesome coding review, I found that when delete a task, context is not saved, should this one be another area need a fix?

  • @nickcostello2810
    @nickcostello2810 3 роки тому

    I'd love to see more of these.

  • @w0mblemania
    @w0mblemania 2 роки тому

    This was a good code review, thanks.

  • @scribblingink
    @scribblingink 3 роки тому

    Thank you for this! You’re the first person I found who even addresses the new auto generated code in core data. I think it’s about 50% more clear now! 😅 Perhaps you could reach out to the original UA-camr and give them tips for updating the tutorial, or if you have the time and desire, make a quick tutorial walking through that auto-generated core data code. Either way thank you again for this video! It’s a great example of a respectful code review. 😊

    • @SwiftyPlace
      @SwiftyPlace  3 роки тому +4

      I only realised that the Core Data preview is a problem that nobody addresses after I published the video. You are right I should make a video dedicated to that. It is strange to me that most tutorials ignore the autogenerated code when you create a new project. They usually go “okay, we delete this because we learn more by implementing it ourselves”. When I see autogenerated code, I think “this is sample code from Apple engineers, that wanted to show best practices to the developers 🤩”. So I always take time going through it and learning from it.

    • @scribblingink
      @scribblingink 3 роки тому +2

      @@SwiftyPlace exactly how I feel! One of the hardest parts for me with iOS development is there are so many layers of abstraction and helpful stuff done for you, but not even Apple seems to feel it’s necessary to explain why things work for beginners. When I learn I need to know why I’m doing something in order to wrap my brain around it. I think most tutorials avoid that since it can create very long tangents, but without it, I’m just copying someone else’s code and trying to shove it into my own project. Then if something breaks, I’m stuck. I think I might look for more code reviews like this and see if that helps! Thank you again!

  • @jasperdunn
    @jasperdunn 3 роки тому

    Perfeect! Someone actually explaining what the code does, thankyou!! :)

  • @zzzMrAngelzzz
    @zzzMrAngelzzz 3 роки тому +1

    Thanks! It was interesting.

  • @paulfranco5733
    @paulfranco5733 3 роки тому

    I learn a lot from your videos.

  • @tttopcattt
    @tttopcattt 3 роки тому

    Very grateful for the videos and this taught me I have so much more to learn. I became lost around the extensions; thus an area I must review! Further, I am interested to know what resources or where you learned your code understanding? Are you available for a conversation? TIA

  • @encodedlife
    @encodedlife 3 роки тому

    Enjoyed it and looking forward to more of your videos.

    • @encodedlife
      @encodedlife 3 роки тому

      FYI, the use of Spacer() is recommended over making a Text frame larger; the reason is Text requires a pixel buffer allocated and the larger the frame the more memory it will consume, whereas a Spacer() simply affects the underlying layout constraints.

    • @SwiftyPlace
      @SwiftyPlace  3 роки тому

      Interesting, thanks for sharing. Where did you find this information?

    • @encodedlife
      @encodedlife 3 роки тому

      @@SwiftyPlace The UILabel is creating a bitmap to render the label onto before passing it the rendering system. I was (probably wrongly) assuming that a Text was mapped 1-to-1 to a UILabel under the hood. I've done some further testing however and it looks like Apple may have optimized this internally and the .frame that you pass doesn't seem to actually change the frame of the Text rendered element, only affects is relationship with other views around so maybe that optimisation is no longer required with SwiftUI. In a previous comment I posted a link to an article that discussed UILabel bitmap allocations .. check it out if you can somehow see it.

  • @pifeeder9027
    @pifeeder9027 2 роки тому

    Such a great video.

  • @lincolndickerson1293
    @lincolndickerson1293 3 роки тому

    Is the updated code available in GitHub or elsewhere? I learned so much from what you showed us. I want to play with final result especially the piece of combine you brought it. Thanks

  • @lairdtrimble3485
    @lairdtrimble3485 3 роки тому

    This is a wonderful tutorial. I am a SwiftUI and Combine beginner and have been unable to find any sample code that isn't one of a handful of small toy projects. This video helped me understand a bit better the way of thinking when using SwiftUI. Is it possible to share the final finished project?

  • @rudiratlos670
    @rudiratlos670 3 роки тому +1

    Amazing. Thank you very much

  • @rabinpun3691
    @rabinpun3691 3 роки тому

    OG developer reviews intern code😀

  • @tbg6nb
    @tbg6nb 2 роки тому

    I don't use SwiftUI previous because on a big project I am working on it takes longer to update the preview than to rebuild the app, that's a nonsense that it is not just hot swapping the changed code...

  • @peterplass9458
    @peterplass9458 3 роки тому

    Hallo und Danke für dieses Tutorial.
    Ich habe versucht, alles exakt so nachzuvollziehen. Und: es klappt! Vielen Dank!
    P. Plass

  • @mhaktanir
    @mhaktanir 3 роки тому

    Thank you.

  • @dmitriykhan2011
    @dmitriykhan2011 2 роки тому

    at 5.00 coolers turns on :)

  • @ronrolle7610
    @ronrolle7610 3 роки тому +1

    Die Qualität deiner Videos ist beispielhaft ...

  • @GRATCHNAT
    @GRATCHNAT 3 роки тому

    👏👏👏, 🙏 ❤️

  • @w0mblemania
    @w0mblemania 2 роки тому

    Regarding the original design...
    If there's one piece of advice I can give to junior, intermediate programmers who want to ship their own apps, it's this: do NOT design the UI yourself. Most often, you don't know what you don't know.
    Look at what Apple does, go through their apps, look at what they're doing. Then copy that.
    They don't always get it right (see: Reminders app) but they get it right more often than not.
    If you're on a budget, hire a design freelancer for a few hours, to review your design, give you some guidance. Tap in to their sense of design and aesthetics.
    Invest in yourself: take some introductory courses in visual design and typography. These skills will be at least as important as any Swift course you'll take, and will last you a lifetime.

  • @sebastianstaszczyk5240
    @sebastianstaszczyk5240 3 роки тому

    Finally! That is clean code and best practises, not kavsoft strange things

  • @g-3409
    @g-3409 3 роки тому

    This kavsoft person rehashes a lot of nice tutorials by other great contributors, like Paul Hudson. The “self made” content he sometimes releases is of very poor quality.

    • @SwiftyPlace
      @SwiftyPlace  3 роки тому +1

      I don't have a problem with him copying if the quality of his code was great. I see why Kavsoft is very popular witch the sheer number of good project ideas. However, for beginner developers learning from poor quality code might become a problem in the long run.