https://kotlinlang.org logo
Join Slack
Powered by
# kotlin-by-example
  • h

    hhariri

    06/11/2017, 3:32 PM
    set the channel description: Kotlin By Example Contributions
  • h

    hhariri

    06/12/2017, 2:26 PM
    http://hadihariri.com/2017/06/12/kotlin-by-example/
  • c

    casablancais

    06/12/2017, 3:36 PM
    I like the idea 👍
  • g

    gonzalonm

    06/12/2017, 4:41 PM
    nice, I’ll try to contribute with some of piece of code
  • h

    hhariri

    06/12/2017, 5:45 PM
    Thank! I’ll try and add placeholders for examples we need
  • c

    curioustechizen

    06/12/2017, 6:26 PM
    Great idea 👍
  • c

    curioustechizen

    06/12/2017, 6:28 PM
    One thing that's not clear is which GitHub repo should be used by contributors? I only see the link to mark-code itself.
    h
    • 2
    • 1
  • s

    scott

    06/15/2017, 10:25 PM
    put in a pull-request for loops (for, while, and do while)
  • o

    oleksandr.samsonov

    06/16/2017, 11:14 PM
    @oleksandr.samsonov has left the channel
  • h

    hhariri

    06/19/2017, 7:18 PM
    I’d taken a few days off, so running behind on the PR’s. Hope to get to them tomorrow and day after
  • a

    arocnies

    06/24/2017, 3:48 AM
    @arocnies has left the channel
  • h

    hhariri

    06/27/2017, 5:27 PM
    So I’m going to make some changes to the site.
  • h

    hhariri

    06/27/2017, 5:27 PM
    I want to bring in executable code blocks so people can test the code right there and then. This might require some changes to how we write things. I’ll port all the existing contributions and set up guidelines moving forward.
    👍 2
  • h

    hhariri

    06/27/2017, 5:28 PM
    It’s a bit of work, but I think it will be better to allow people to play with the code directly there without having to fire up an IDE.
  • h

    hhariri

    06/27/2017, 5:28 PM
    If any objections, concerns, or thoughts, feel free to comment 🙂
  • h

    hhariri

    06/29/2017, 6:25 AM
    new look
  • h

    hhariri

    06/29/2017, 6:26 AM
    @User uploaded a file:

    Pasted image at 2017-06-29, 8:26 AM▾

  • h

    hhariri

    06/30/2017, 8:46 PM
    We’re back in business
  • r

    rajendhiraneasu

    07/06/2017, 12:43 PM
    hi guys, just i'm a beginner to kotlin progra, any one can explain what is the difference between abstract and interface in kotlin?
    h
    • 2
    • 4
  • h

    hhariri

    07/06/2017, 12:45 PM
    set the channel topic: Discussions around the site kotlinbyexample.org
  • h

    horse_badorties

    08/03/2017, 11:49 AM
    Hi all, I can't see executable code blocks when accessing kotlinbyexample.org ? Have they been removed or is that a browser issue?
    k
    • 2
    • 2
  • r

    rebcabin

    08/12/2017, 5:28 PM
    Trying to run the kotlin-koans https://kotlinlang.org/docs/tutorials/koans.html, I cloned the repo, imported as a gradle wrapper task, and tried to run the first koa n00Start.kt using the Run menu in IntelliJ CE 2017.2.1. Gradle builds it, but doesn't run it. I expected to see some kind of JUnit window, but I just get "BUILD SUCCESSFUL" from Gradle. I don't know Gradle at all; is further config necessary to get the koans to run?
  • h

    huutho

    12/16/2017, 6:04 PM
    @
  • c

    chirag

    12/28/2017, 7:20 AM
    Copy code
    class ChildValidation<T> {
        var validations: MutableList<Pair<T.() -> Boolean, String>> = mutableListOf()
    
        fun be(validate: T.() -> Boolean) = validate
    
        infix fun (T.() -> Boolean).message(error: String) {
            validations.add(this to error)
        }
    }
    Hey guys ,I am trying to understand library code written in Kotlin, I am not getting the syntax
    Copy code
    T.()
    What is this representing ? I know,
    Copy code
    () -> Unit
    is used to represent a function .but this is
    Copy code
    T.() -> Boolean
    different . Any help is appreciated
  • v

    Vishal

    03/16/2019, 8:00 AM
    What is class
  • s

    Slackbot

    12/31/2020, 10:49 AM
    This message was deleted.
    c
    c
    • 3
    • 2