Clean Code with Kotlin

With Kotlin we can write concise, expressive, and safe code. Sounds like clean code, doesn’t it?

In this article we will recap what clean code is, we will highlight the importance of defining meaningful names, and how to write clean functions and classes.

Finally, we will be able to learn more about the advantages of immutability, how to handle the errors in Kotlin, and what are the best practices in terms of writing tests. By the end of this blog post, you will better understand what clean code means and learn a series of tips and tricks ready to be applied in your code.

“Coding is not a sprint, is a marathon” so let’s exercise together our clean code skills.

Continue reading “Clean Code with Kotlin”

Speaker at iTEC – Building a career in Android Development


On 5th of March, 2021, I talked for a group of students about how to build a career in Android Development. It was a really nice experience and I enjoyed the opportunity to answer at their questions and to share the things I learned in my 10 years experience in software development.

Continue reading “Speaker at iTEC – Building a career in Android Development”

Smile, it’s CameraX! [analysis and extensions]

Image analysis and applying extensions when pictures are taken are use cases often accessed by the users. By using CameraX API we are able to implement them in a very simple way. If you want to learn more check the code samples and the theory behind these features in the current article.

Continue reading “Smile, it’s CameraX! [analysis and extensions]”

Generics in Kotlin

Generics means we use a class or an implementation in a very generic manner. For example the interface List allows us for code reuse. We are able to create a list of Strings, of integer values and we will have the same operations even if we have different types. So the list wraps a common functionality for each implementation.

Kotlin allows you to use parameters for methods and attributes, composing what is known as parameterized classes.

Continue reading “Generics in Kotlin”

[mDevCamp] Smile, it’s CameraX!

I recently presented this talk at mDevCamp – Online edition. More than that I was part of a Virtual 3D world. Great event, awesome organizers and really interesting questions from the audience.

This talk contains the answers for the next questions:

  1. What are the main challenges of working with Camera APIs on Android?
  2. What are the main advantages of using CameraX API?
  3. How to integrate CameraX in our Android apps?
Continue reading “[mDevCamp] Smile, it’s CameraX!”

Collections in Kotlin

It’s time to continue our learning path in Kotlin. The subject covered in this new post is represented by Collections and data operations applied to them.

Collections are actually a set of classes and interfaces that provides high quality implementations of useful data structures and algorithms that help developers to reduce the programming effort and time.

collections kotlin magda miu

Continue reading “Collections in Kotlin”