2 - Kotlin Android Tutorial | DataModels, Repository Pattern, Kotlin vs Java Syntax, Datasources

Опубликовано: 05 Октябрь 2024
на канале: Ryan Michael Kay
7,870
228

Enjoy my teaching style? Looking for a comprehensive introduction to Kotlin, Android, and Programming in general? If so, consider picking up my introductory course to Programming Fundamentals with Kotlin and Android on Udemy; I don't think you'll be disappointed:
https://www.udemy.com/application-pro...

Welcome to part 2 of my Kotlin Android Tutorial. In this lesson, we learn about Kotlin vs Java Syntax, and Koltin keywords such as val, var, data, object, etc. I also share some best practices for designing the backend of an application, using DataModels (POJOs/POKOs), and the Repository Pattern.

Timestamps:
0:00 - Intro
1:21 - How to get the code starting point
3:22 - Package Strucutre/Architecture (I use a blend of package by feature/layer)
5:36 - DataModels vs Data/Model Layer, Kotlin data classes, basic Kotlin syntax
13:40 - Repository (a.k.a. Facade) Pattern in a nutshell

Interfaces Video Link Here:
   • Android WTF: Java Interfaces by Example  

15:43 - Interfaces for backend/repository, Writing Methods/Functions in Kotlin
21:05 - Implementing Valiator/Calculator, Interface vs Implementation (Asbtract vs Concrete), Kotlin mapTo, Split, and other neat functions
30:15 - Outro

Livestream link:
   / wiseass  

Github: https://github.com/BracketCove

Facebook:   / wiseassblog  

G+: https://plus.google.com/+wiseass

Twitter:   / wiseass301  

Patreon: https://www.patreon.com/bePatron?u=51...

Paypal: paypal.me/ryanmkay

Blog: http://wiseassblog.com/