August 2021

[Kotlin] for-loop with no additional object allocation

Kotlin provides extension functions for Collection types such as forEach, forEachIndexed, and map. They are convenient but it comes with cost; those functions create additional objects like Iterator. For most cases, it wouldn’t be a serious problem to have some temporary objects. However, when overriding onDraw method of View class, it’s prohibitted to allocate a […]

[Kotlin] for-loop with no additional object allocation Read More »

Deprecated or Experimental

안드로이드 API는 큰 흐름상으로는 바람직하게 가고는 있지만 여전히 불만인 부분은 마음놓고 쓰기가 어렵다는 점이다. 어느 정도 안정화되고 손에 익었다 싶으면 deprecated되고 또 새로운 게 나오는데 새로운 걸 쓰려면 모험을 해야한다. 예전 API를 계속 쓰자니 찝찝하고, 새로운 걸 쓰자니 불안하고. 이런 스트레스를 항상 안고 개발해야하는 게 좀 불만이다.

Deprecated or Experimental Read More »

요즘 안드로이드 앱 개발은

좀 느리긴 해도 바람직한 방향으로 계속 가고 있는 것 같다. Jetpack에 흥미로운 컴포넌트들이 계속 추가되고 있는데, kotlin 문법을 적절히 활용해서 고급 기능을 간결한 코드로 활용할 수 있게 잘 만들어놓은 것으로 보인다. 이런 것들을 잘만 활용하면 정말 예전과는 확연히 다른 느낌으로 모던하게 개발할 수 있을 것 같은데, 아직 익혀야 할 것들이 많다. 아직도 자바 스타일의 코딩에서

요즘 안드로이드 앱 개발은 Read More »