(240522) Medium Daily Digest

Godomin·2024년 5월 22일

Medium-Daily-Digest

목록 보기
4/24

Must have plugins for Android Developers

https://sid-android.medium.com/must-have-plugins-for-android-developers-cfcb0cf8dc5b

  • Adb Idea
    Uninstall, kill, start, restart, clea app data 등등의 작업을 ide상에서 쉽게 할 수 있다.

  • Android Drawable Preview
    Color처럼 drawable을 미리볼 수 있다.

  • Codeglance PRO
    VS code처럼 에디터 우측에 전체 코드 내용을 작게 보여준다.

  • Compose color preview
    자동완성 팝업에서 color를 미리볼 수 있다.

It was claimed at Google I/O that they officially support Kotlin Multiplatform

https://medium.com/@callmeryan/it-was-claimed-at-google-i-o-that-they-officially-support-kotlin-multiplatform-545b2178b638

Google I/O에서 구글은 공식적으로 KMP를 지원하겠다고 했다. 그러나 Dagger Hilt의 경우 아직 지원 계획이 없어보여 KMP 프로젝트를 위해 다른 DI 라이브러리를 사용해야 한다는 점이 많은 개발자들에게 아쉬움을 주고 있는 듯 하다.
대체 라이브러리로 Kodein, kotlin-inject, Koject, DI.kt, PopKorn 등이 있다. Koin이 그래도 제일 많이 쓰이는 것 같은데... 선호하지 않는 개발자들도 꽤 있나 보다.
Google I/O를 아직 보지 못했는데 얼른 살펴봐야겠다

Parcelable Vs Serializable

https://medium.com/p/26a62ac92df5

면접 질문 단골 소재인 Parcelable과 Serializable이다.

Parcelable

안드로이드에 의존성이 있으며 직접 serialize/deserialize 코드를 작성해야 하는 대신 속도가 더 빠르다.

Serializable

Java standard library이며 코드 구현이 적은 대신 reflection을 사용하기 때문에 성능이 떨어질 수 있다.

+ Kotlin Serialization

Serializable에서 nullability와 type check 등 코틀린 최적화가 되어있고, reflection이 아닌 serializer를 사용하여 속도가 더 빠르다.
Retrofit에서도 converter를 제공하고 있다.
다만 Java serializable보다는 Gson, Moshi등의 json parsing library와 같은 결이라고 볼 수 있다.

0개의 댓글