https://kotlinlang.org logo
Join SlackCommunities
Powered by
# 100daysofkotlin
  • a

    Andell Marsh

    03/02/2020, 7:44 PM
    set the channel description: Channel for Kotlin newbies
  • a

    Andell Marsh

    03/03/2020, 5:01 PM
    Hello, everyone. Any of you using JetBrains Academy to learn Kotlin?
  • a

    Ajeet Pratap

    04/03/2020, 6:12 PM
    Hello Everyone, Myself Ajeet, an iOS developer learning Kotlin. 🙂
  • m

    Mgkaki

    06/02/2020, 7:12 AM
    I am making kotlin springboot milti module proejct as gradle kotlin DSL script: Then How can I import another sibling module as a dependecy ?
    Copy code
    dependencies {
        val swaggerVersion = "2.9.2"
        val hikaricpVersion = "3.3.1"
        val typesafeVersion = "1.4.0"
        val kotlinloggingVersion = "1.7.9"
        val modelMapperVersion = "2.3.7"
    
        subprojects.forEach {
    
            if( it.name != "common" ) {
                implementation(project(it.path)) {
                    dependencies {
                        implementation(project(":common"))
                    }
                }
            } else {
                implementation(project(":common"))
            }
        }
    
        implementation("com.zaxxer:HikariCP:${hikaricpVersion}")
        implementation("org.springframework.boot:spring-boot-starter-web")
        ::::
    }
    I trid this but it(internal) don't import common modules as a dependency. settings.gradle.kts
    Copy code
    rootProject.name = "gia"
    include("common", "internal")
  • b

    blue

    07/26/2020, 9:10 PM
    Hi everyone, I am new to Kotlin, I have been learning Kotlin thru hyperskill.org for past few weeks. Currently I am little confused with a small Quotation in Hyperskill study material, Can someone help me? In Kotlin do we need to initialize the class level mutable (
    var
    ) property during declaration? *T*he study material says -
    full syntax for any property in Kotlin:
    Copy code
    var <propertyName>[: <PropertyType>] [= <property_initializer>]
        [<getter>]
        [<setter>]
    Initializer, getter, and setter are optional here, but you need to initialize your variable if you don’t want to specify its type. Otherwise, the compiler will warn you.
    But my code snippet is throwing compile error. Did I miss something?
    Copy code
    class User {
        var firstName: String 
        var lastName: String
    }
  • r

    Remon Shehata

    08/24/2020, 1:56 PM
    I want to cast my list to the class type that I receive from the method argument. basically I want to order my list based on a field that exists in the ClassA. how to achieve this?
    Copy code
    sealed class ParentClass
    data class ClassA(fieldInClassType: Int) : ParentClass()
    data class ClassB(fieldInClassType: Int) : ParentClass()
    I have list of ClassA and ClassB and I want to create a generic method to sort them. This is what I have now
    Copy code
    private fun <T: ParentClass>foo(data: List<T>,  classType: Class<T>){
        val list = data as classType
        list.sortedBy{it.fieldInClassType}
    }
  • b

    bjonnh

    10/22/2020, 8:12 PM
    set the channel topic: This channel doesn't show much activity, do not expect answers. You probably want to go to #getting-started
  • s

    Saul Wiggin

    10/29/2020, 12:22 PM
    Copy code
    auth.signInWithEmailAndPassword(email, password)
            .addOnCompleteListener(this) { task ->
                if (task.isSuccessful) {
                    // Sign in success, update UI with the signed-in user's information
                    Log.d(TAG, "signInWithEmail:success")
                    val user = auth.currentUser
                    updateUI(user)
                } else {
                    // If sign in fails, display a message to the user.
                    Log.w(TAG, "signInWithEmail:failure", task.exception)
                    Toast.makeText(baseContext, "Authentication failed.",
                            Toast.LENGTH_SHORT).show()
                    updateUI(null)
                    // ...
                }
    
                // ...
           
    }
    • 1
    • 1
  • s

    Saul Wiggin

    10/29/2020, 12:22 PM
    So I’m implementing auth in firebase. I was wondering if anyone knew what this task object is?
    s
    d
    • 3
    • 2
  • r

    rtsketo

    11/09/2021, 10:28 AM
    https://pl.kotl.in/WJxo0DujU Is there a way to have the function
    pew()
    in class
    A
    (not as a companion object) and still be able to type
    b.pew().pew2()
    (not
    b.apply { pew().pew2() }
    )?
    b
    d
    • 3
    • 2
  • m

    Magda Miu [MOD]

    02/04/2022, 9:13 AM
    Hello everyone! I managed to publish an article about high performance with idiomatic Kotlin. I learned that nothing is more likely to drive users away than a poorly performing app. This article covers multiple topics around performance and how by using idiomatic Kotlin we could develop quality products that bring joy to our users. I hope it helps and brings you some inspiration. Happy Kotlin! https://magdamiu.medium.com/high-performance-with-idiomatic-kotlin-d52e099d0df0
    😍 2
    K 7
    K 10
    d
    • 2
    • 2
  • d

    dannykivoto

    10/06/2022, 3:20 PM
    Anybody with details about the kotlin compilation process
  • j

    jamescodingnow

    11/12/2022, 12:36 AM
    According to my last poll or survey, 85% of iOS developers are using Swift for Data Structures and Algorithms. So, we need to use Kotlin in Data Structures and Algorithms. Thus, I created a community in Twitter. If you want, you can share problem and Kotlin solution in here to help people. It is a new community but it is growing: https://twitter.com/i/communities/1588532457250476035
  • a

    Abidin Burak Şahin

    04/02/2024, 11:49 AM
    Hello everyone, I'm studying to learn kotlin therefore i created a github repo and I'm writing code for codeforces problems everyday. Can you give me some feedback for contribute to me? https://github.com/abidinburak/Codeforces-Soulitons-Kotlin #100daysofkotlin #competitive-programming
  • a

    Abidin Burak Şahin

    05/21/2024, 10:27 AM
    Hello, You know, I started an adventure about solving Codeforces problems for 100 days. Today I'm on day 91 and I'm getting closer to the end. If you want to check it out, you can reach my github repo via the link. https://github.com/abidinburak/Codeforces-Solutions-Kotlin
    👍🏻 1
  • m

    Melchior Grutzmann

    01/10/2025, 1:38 PM
    I just updated to IntelliJ (Ultimate) '24.3.1.1 and installed the Jetbrains Academy. I moreover downloaded the "Algorithmic Challenges in Kotlin" (as suggested on the course page) and tried to open it under File > Learn & Teach > Browse Courses > My Courses > open Course Archive), but then it tells me that "Kotlin are not supported". I also have the latest Kotlin Plugin installed (243.22562.218-IJ). Is there a known bug in the JetBrains Academy or do I need to upgrade/reset anything else?
  • m

    Melchior Grutzmann

    03/16/2025, 5:16 PM
    Update (March 16th, 2025): Since IntelliJ 2024.3.4.1 and with the latest JetBrains-Academy it seems to be working now. Great job guys!! Tanks! 🙂
  • w

    walid

    04/01/2025, 4:38 PM
    unstall intelij and download from intlij web site windows.exe
  • m

    Melchior Grutzmann

    04/06/2025, 10:18 AM
    Is that an April's fool, or is that supposed to help me?