Core Business Model (Recipe Domain Model)
Вставка
- Опубліковано 29 вер 2024
- The BEST android courses in the world: codingwithmitc...
In this video I build the domain model for the android app. I'll be teaching some of the concepts of "Clean Architecture". But this is a beginner course so it's more like a "Lazy Clean Architecture".
Domain models should describe the core functionality of your app.
Watch my course on Android clean architecture: codingwithmitc...
Code: github.com/mit...
Follow me:
Instagram: / codingwithmitch
Twitter: / mitch_tabian
.
.
Turns out todays video is not a little shorter
Great content and explanation! No worries :)
Your chapters help me to use the latest and updated components, clean architectures, business layer, and UI. Thanks mitch
Any Tutorial on Creating REST API endpoint and host it?
Actually yeah I almost spent a day to get 'kotlin-parcelize' plugin working 😅🤦♂️
It seems that is solved in alpha08, using the following versions
// Just update & unify compose dependencies version with compiler extension version
def kotlin_compiler_extension_version = "1.0.0-alpha08"
def compose = "1.0.0-alpha08"
// And unify Kotlin compiler version with Kotlin version
def kotlin_compiler_version = "1.4.20"
ext.kotlin_version = "1.4.20"
Also "androidx.ui:ui-tooling" dependency updated to be "androidx.compose.ui:ui-tooling" in alpha08
Thank you so much Mitch for the awesome course as usual & for your ENGAGEMENT 💪
Classic pain in the behind
Don't use beef.
Remember! Food to fork is not alive now: please refer to this video: ua-cam.com/video/wEyPyesv4_c/v-deo.html
Just FYI, 'kotlin-parcelize' is working now without the need of any workaround using Arctic Fox Canary 9
i've tried to send a postman request the response was
Not Found
The requested resource was not found on this server.
I love your videos!!!!! Thanks for teaching things so well!
WOW! Mitch after watching this video got upgrade from junior to senior with 15 years ex. Thanks bro
No problem
y not use gson and serialzable? @CodingWithMitch
Hi Mitch, I love your amazing explanations! Why aren't you using JSON to Kotlin Class plugin when convert JSON to data classes?
I didn't know they existed
Maybe they solve this bug today. Mine no error for @Parcelize
Almost every devloper do they move there life like version management in project. That solve the problem of client or boss who has in hurry
I think it would be more accurate to call this the application model, not business model. I think business model is not really a good name for any data structure
Although rather than using @Parcelize annotation I prefer use @SerializedName annotation on each of data class property
data class Recipe (
@SerializedName('name') val name: String
)
From GSON lib
Super video, learnt tons in this beginners course, you made easy for me.
Hi man, you API goes out, and thanks for the material
This is awesome! I might as well use this awesome knowledge and fix my recipe app! LOL
Just need to figure out the iOS side.
I think the kotlin extension mean to pointing to xml view by it's id like tv_title , so no need to search search the view using findViewById(R.id.tv_title)
In the new version we can use view binding, then we need the enable viewbinding in gradle module,
After that we can use: binding.tvTitle
Yeah it automatically convert the tv_title to tvTitle
2:28 postman
11:43 core business model
Here is your ENGAGEMENT
is there any bug in android studio canary 4.2? cause whenever i make changes in jetpack compose app i need to uninstall the app and then have to install it again in order to see changes. I'm not able to see changes after running app or instant run feature.
Could be. I've been running on a real device mostly. Emulator seems to bug out a lot
Not short at all 😂, but great video, thank you! I've been using interfaces instead of data classes for domain models and then implementing them in a data class in the outter layers, but I don't know if it is a good practice or not, what do you think about it?
I would use data classes
can we name it business package instead of domain?
Usually it's /business/domain/
How to develop API like food2fork API
Here is the code github.com/mitchtabian/Food2Fork
Also I have a course codingwithmitch.com/courses/build-a-rest-api/
@@codingwithmitch thank u
No longer facing the issue with id 'kotlin-parcelize'