1. data class – 데이터를 담는 그릇 Kotlin에서는 데이터를 담기 위한 클래스를 간단히 선언할 수 있습니다.Java에서라면 getter, setter, equals(), hashCode(), toString() 등을 다 일일이 작성해야 했으나Kotlin에서는 data class로 선언하면 자동 생성됩니다. data class Ticket( val companyName: String, val name: String, ...
It’s been a while since I posted an update here, and to be honest, this past week has probably been one of the toughest so far—mentally and emotionally. I wasn’t able to apply to any roles. At the beginning of the week, I had this solid shot at crack...
같은 팀 한 분이 가볍게 보기 좋다고 추천해주셔서 시작한 Kotlin 공부.강의 들으면서 정리한 내용을 가볍게 공유합니다. 시청한 강의는 이 링크입니다. 1. 함수 정의하기 Kotlin에서 함수는 fun 키워드로 정의합니다. 반환값이 없는 경우엔 Unit을 명시하거나 생략할 수 있습니다. fun helloWorld() { println("Hello, World!") } Unit은 Java의 void와 유사한 개념입니다. 명시적으로 작성...
Hi Androiders 👋, there's no doubt that Kotlin coroutines have become the standard in the Android world for multithreading and reactive programming. Coroutines are easy to use, but there's always something that feels a bit complicated. I often get qu...
The Singleton pattern is one of the most commonly used design patterns in Android development. It ensures that a class has only one instance throughout the application's lifecycle and provides a global point of access to that instance. Imagine a scen...
Introduction Kotlin Coroutines revolutionized asynchronous programming by making it structured and intuitive. However, handling concurrent data streams efficiently requires more than just suspending functions and flows. This is where Coroutines Chann...
1. Understanding a Program A program is a set of instructions for a computer to perform actions. Actions can include: ✅ Displaying messages. ✅ Performing calculations (e.g., shopping cart total). Code = Step-by-step instructions written in a pro...
1. Overview Kotlin is Google's recommended language for Android app development. Offers concise syntax, reducing lines of code. More stable apps due to fewer crashes. Industry adoption is growing, making it the preferred language for professional...
What is Kotlin? Imagine you want to build something amazing with LEGOs. Kotlin is like a special set of LEGOs for building apps, websites, and more for computers and phones. It's a programming language: Just like English, Spanish, or French are lang...
Welcome to OmarCodes! 🎉 I'm Omar, and this is my first blog post! I created this blog to make coding simple and fun, especially for beginners and kids who want to start their programming journey. When I first started learning to code, it felt overwh...