No video

Practical API mapping Android example

  Рет қаралды 1,762

The Android Factory

The Android Factory

Күн бұрын

Пікірлер: 20
@dahlola
@dahlola 6 ай бұрын
So nice to getting to know actually good practices for this. We have very bad structured code at work and I need to improve. Great series!
@TheAndroidFactory
@TheAndroidFactory 6 ай бұрын
I'm happy I could help! The functional programming concepts/syntax is VERY clean 💯
@vedx
@vedx 8 ай бұрын
Great explanation as always 🔥
@TheAndroidFactory
@TheAndroidFactory 8 ай бұрын
Appreciate it ♥️
@neyasbit
@neyasbit 8 ай бұрын
Nice 💣
@TheAndroidFactory
@TheAndroidFactory 8 ай бұрын
Hope it makes sense!
@marvelrivera1194
@marvelrivera1194 3 ай бұрын
Thank you
@TheAndroidFactory
@TheAndroidFactory 3 ай бұрын
Glad it helps!
@gregoryprosper
@gregoryprosper 4 ай бұрын
Display name should be kept out of the domain layer. This data should be in the presentation layer using string resources so you can support localization in the future.
@TheAndroidFactory
@TheAndroidFactory 4 ай бұрын
Sorry, wasn't the data coming from an API? If so, I'd imagine a language code param sent to handle localization there. Appreciate the callout!
@gregoryprosper
@gregoryprosper 4 ай бұрын
@@TheAndroidFactory The display name wasn't sent from the api. API sent constant values but you mapped it to a display name in the Sealed Classes. A better approach would be to extension function in the domain layer that uses android resource files that can be converted to strings in compose.
@TheAndroidFactory
@TheAndroidFactory 4 ай бұрын
The name of the character? The name is a 1:1 mapping from API to domain. How would I convert API data to localized strings when we don't know what is coming from the server? If you want to open a pull request I'm happy to review it!
@gregoryprosper
@gregoryprosper 4 ай бұрын
@@TheAndroidFactory Created the pull request
@TheAndroidFactory
@TheAndroidFactory 4 ай бұрын
@gregoryprosper yup I see it. Yes, sorry when you said display name I was imagining the name of the character, not the information tied to the gender or "status" of the character. While you are correct for supporting multiple languages, this does add a reasonable bit of overhead to the content that was not the focus of the video. However, this may warrant an additional video about "steps to localize your codebase" so I appreciate the callout. The same could be applied to the hardcoded string for the DataPoint objects that callout "Last known location" or "Species", and better light/dark mode support on colors in the CharacterStatus data class.
@yasserakbbach708
@yasserakbbach708 8 ай бұрын
"Genderless"
@TheAndroidFactory
@TheAndroidFactory 8 ай бұрын
Gotta work with the data 😅
Jetpack Compose + Coil image loading tutorial
14:17
The Android Factory
Рет қаралды 2,1 М.
拉了好大一坨#斗罗大陆#唐三小舞#小丑
00:11
超凡蜘蛛
Рет қаралды 14 МЛН
ROLLING DOWN
00:20
Natan por Aí
Рет қаралды 11 МЛН
Android App Build using CircleCI | Simple CI/CD pipeline & DevOps
7:13
Devesh Rx Tech & Life
Рет қаралды 306
How To Organize Minimal API Endpoints Inside Of Clean Architecture
8:01
Milan Jovanović
Рет қаралды 40 М.
Compose Navigation Tutorial: Passing data between screens
9:38
The Android Factory
Рет қаралды 3,2 М.
🤯 OpenAI Assistants API Python (Full Tutorial)
15:18
AssemblyAI
Рет қаралды 70 М.
Compose UI work: List items vs. Grid items
19:51
The Android Factory
Рет қаралды 537
How to handle network errors with Ktor
10:37
The Android Factory
Рет қаралды 1,4 М.
Setup Ktor for your Android app!
15:22
The Android Factory
Рет қаралды 4,7 М.
This New Angular Release Is Wild
5:53
Theo - t3․gg
Рет қаралды 101 М.
拉了好大一坨#斗罗大陆#唐三小舞#小丑
00:11
超凡蜘蛛
Рет қаралды 14 МЛН