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”

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]”

Smile, it’s CameraX! [intro]

As humans, we have emotions and feelings and one of the best ways to capture our emotions is to take pictures. 

Some of our greatest experiences are actually captured in pictures. For sure each one of us have pictures from birthday parties, holidays, travels, conferences. We also like capturing feelings like happiness or reactions when bad surprises happen. And, in the latest years, we discovered that we love taking selfies.

Continue reading “Smile, it’s CameraX! [intro]”

Android Developer Challenge – 10 Winning Apps

Last year, Google invited developers to submit their ideas for the Android Developer Challenge, focused on “Helpful Innovation, powered by on-device machine learning.” They picked 10 winners, and have been working with them since then to help bring their apps to life. #AndroidDevChallenge

Continue reading “Android Developer Challenge – 10 Winning Apps”

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”

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”