Popular

Watch my course on MVVM and a REST API: https://codingwithmitch.com/courses/r...

Personally, I think MVVM is the best way to structure code (in most situations).

The thing I like most about MVVM is the compartmentalization of the various components in a project.

1) The UI components are kept away from the business logic

2) The business logic is kept away from the database operations

3) It's easy to read (because everything has specific places to live)

4) And if done correctly, you have a lot less to worry about when it comes to lifecycle events (ex: screen rotations)

➤Blog post on MVVM:
↻ https://codingwithmitch.com/blog/gett...

➤My Courses
↻ https://codingwithmitch.com/courses/

➤My Instagram:
↻ https://www.instagram.com/mitch.tabian/

➤Merchandise
↻ https://store.codingwithmitch.com/

Comments
  • Behrin Rasimov
    Behrin Rasimov 2 месяца назад You can make few optimizations : 1. Optimize the layouts - decrease the layout nesting as much as possible to increase the performance. 2. Remove one dependency (circle image view) since Glide provides an options to transform an image into circular one. 3. Avoid non-static or anonymous instances of AsyncTask - leads to memory leak. 4. Instead of NotifyDataSetChanged that will refresh the whole collection. You can just notify an item position or range that you are updating (NotifyItemInserted or NotifyItemRangeChanged). This will cause less ui calculations and drawing. Cheers!
  • babbin tandukar
    babbin tandukar 2 месяца назад wow didn't knew there was notifyiteminserted or notifyitemchanged till now been almost 8 months in android thanks man
  • Nicolas Queijo
    Nicolas Queijo 5 месяцев назад Suggestion: enable "Show taps" on your emulator under developer options so the viewer can see exactly where you are pressing when you are demoing stuff.
  • Zone Zongs
    Zone Zongs 2 месяца назад Thank man, it's helpful!! thank you so much
  • Study Universe
    Study Universe 6 месяцев назад CONGRATS ON 30K my man!
  • Krishan Madushanka
    Krishan Madushanka 1 месяц назад Nice explanation!
  • Ibrahim M. Abdulqader
    Ibrahim M. Abdulqader 6 месяцев назад (изменено) light IDE hurts my eyes :( but I do love the video, thanks. I found out today that i'm gonna need MVVM in my company's project :|
  • Ibrahim M. Abdulqader
    Ibrahim M. Abdulqader 3 месяца назад @Guangkai Ren I had a deadline and there was little time to fix the bugs, therefore I used the broadcast receiver instead gonna use MVVM on my next project
  • Guangkai Ren
    Guangkai Ren 3 месяца назад Are you using MVVM in your real project? I mean the company's project. Did you meet many problems? How do you like it?
  • CodingWithMitch
    CodingWithMitch 6 месяцев назад Too bad I like white 🕵️
  • hsetih esilahc
    hsetih esilahc 2 месяца назад Wow, just wow, I can't even begin to explain how you've inspired me. Thank you. :)
  • Aliton Oliveira
    Aliton Oliveira 19 часов назад (изменено) I think the most used web service is Firebase for beginners. So, know how to integrate Room and FirebaseDatabase would be very interesting.
  • Safee S
    Safee S 6 месяцев назад I also learned that if you need the application context in your viewmodel, just extend Androidviewmodel instead of ViewModel
  • Alvaro Isea
    Alvaro Isea 6 месяцев назад I'm a big fan of your tutorials man, keep up with the good work !! (Y)
  • 루이스
    루이스 6 месяцев назад Waiting so bad for your rest api + MVVM Project!!
  • Raaz Bogati
    Raaz Bogati 6 месяцев назад Nice job man keep going
  • B Wally
    B Wally 3 недели назад Thanks again mitch!!
  • Kareem Hamed
    Kareem Hamed 4 месяца назад much appreciated i always love your work man! you are a legend.
  • Shivam Dhuria
    Shivam Dhuria 3 месяца назад After trying for about months ,I think finally got this!Thank you~!
  • Dinesh Choudhary
    Dinesh Choudhary 6 месяцев назад Hey Mitch, you’re doing a great job! I’m sure with time you’ll have a ton of subscribers and views.
  • Adit Chauhan
    Adit Chauhan 3 месяца назад Finally found an awesome Android teacher .
  • Achmad Ichsan Thaib
    Achmad Ichsan Thaib 2 дня назад thanks mitch, love it
  • Achmad Ichsan Thaib
    Achmad Ichsan Thaib 1 день назад @CodingWithMitch of course mitch ;)
  • CodingWithMitch
    CodingWithMitch 1 день назад You should watch the full course, you'll really love that. https://codingwithmitch.com/courses/rest-api-mvvm-retrofit2/
  • Vishu Bhardwaj
    Vishu Bhardwaj 2 месяца назад Can you also do a MVP and Viper tutorial.
  • B Wally
    B Wally 3 недели назад (изменено) 1. create models package NicePlace class NicePlace constructor getters and setters