https://kotlinlang.org logo
Join SlackCommunities
Powered by
# kotlin-in-action
  • y

    yole

    12/14/2016, 3:18 PM
    @roberto.guerra unfortunately at this point it's too late to add appendices to the book, but we do plan to provide a Kotlin style guide as a separate online document
  • r

    roberto.guerra

    12/14/2016, 3:18 PM
    that would be great
  • r

    roberto.guerra

    12/14/2016, 3:19 PM
    i’m half way through the book btw. It is pretty good.
  • k

    Kirill Zhukov

    01/03/2017, 3:21 AM
    @Kirill Zhukov has left the channel
  • g

    gaetan

    01/18/2017, 4:41 PM
    @gaetan has left the channel
  • d

    douglarek

    01/20/2017, 3:07 AM
    @douglarek has left the channel
  • m

    michael.barker

    01/21/2017, 7:27 AM
    @michael.barker has left the channel
  • s

    s.luhmirins

    01/21/2017, 9:38 AM
    @s.luhmirins has left the channel
  • m

    mayojava

    02/25/2017, 8:06 AM
    @mayojava has left the channel
  • d

    dirk.dittert

    03/23/2017, 8:02 AM
    @dirk.dittert has left the channel
  • l

    libcmg

    03/28/2017, 4:12 AM
    @libcmg has left the channel
  • a

    aallen

    04/13/2017, 2:17 AM
    @aallen has left the channel
  • s

    sreich

    04/20/2017, 11:07 AM
    @sreich has left the channel
  • m

    mesquka

    04/26/2017, 2:22 PM
    @mesquka has left the channel
  • v

    vladim8r

    05/02/2017, 9:46 AM
    @vladim8r has left the channel
  • g

    gregjwild

    06/12/2017, 1:21 PM
    Hey everyone! One of the editors over at Manning Publications here. We're pretty interested in producing a video course on Kotlin under our new liveVideo banner. Svetlana and Dmitry are sadly too busy to work with us on something, so I was wondering if anyone in here happened to have any interest in being involved?
  • p

    phplego

    06/20/2017, 10:40 AM
    Hi everyone! I want to translate the book "Kotlin in action" into Russian and publish on my website. Can I legally do that?
  • y

    yole

    06/20/2017, 10:46 AM
    unfortunately not. the rights to the book text belong to Manning, the publisher of the book. as far as I know rights to the Russian translation have been acquired by DMK Press (http://dmkpress.com/)
  • s

    simtse

    07/04/2017, 8:23 PM
    So in the book, it talks about using Sequences when you have a large data set so you don’t incur the larger memory in dealing with each filter map function compared to using a standard List or Iterable. In my gist https://gist.github.com/simon-tse-hs/7dce88df4c0870b8d580205c587ea6ac I wrote some code to average out over 1000 iterations of running filter map from 100-1,000,000 times
  • s

    simtse

    07/04/2017, 8:24 PM
    @yole , I’m not sure why this is the case, but List came out on top for larger sets on average instead of smaller sets of 100.
  • s

    simtse

    07/04/2017, 8:25 PM
    >> fun squareNumbers(range: CollectionRange): List<Int> = range.rangeList.filter { it % 3 == 0 }.map { it * it }.filter { it % 4 == 0 }.map { it * 3 }.filter { it % 4 == 0 }
    fun squareNumbersSequence(range: CollectionRange) = range.rangeList.asSequence().filter { it % 3 == 0 }.map { it * it }.filter { it % 4 == 0 }.map { it * 3 }.filter { it % 4 == 0 }.toList()
  • s

    simtse

    07/04/2017, 8:25 PM
    I’d filter{}.map{}.filter{}.map{}.filter{} as the list of operations. Can you tell me maybe why this might be the case?
  • 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?
    s
    • 2
    • 2
  • r

    robinho

    08/25/2017, 1:37 PM
    Hi guys. I’m studying kotlin and I’m on type projection section. What I miss?
    Copy code
    open class Noun(val n: String)
    open class City(val c: String) : Noun(c)
    open class Cabrobro(val j: String) : City(j)
    
    fun <T> copyData(source: MutableList<T>, destination: MutableList<in T>) {
        for (item in source) {
            destination.add(item)
        }
    }
    
    fun main(args: Array<String>) {
        val source= mutableListOf(City("c1"), City("c2"), City("c3"))
        val destination= mutableListOf<Cabrobro>()
        copyData(source, destination)
    }
    b
    • 2
    • 4
  • k

    Kryptonian Coder

    11/30/2018, 8:38 AM
    Hi guys, anyone on?
  • s

    stevecstian

    03/23/2019, 8:14 AM
    Just tried to build the code samples in the master branch of https://github.com/kotlin/kotlin-in-action repo with Kotlin 1.3.21. It turns out it’s not that straightforward as it seems to be. I would like to submit a PR that contains gradle related changes so that we can build code samples with Kotlin 1.3.21. Thoughts?
    i
    • 2
    • 1
  • k

    KV

    09/14/2020, 8:01 AM
    Hello guys, I have a question related to "how to set the textcolor for all the textview inside the constraint layout at once?" Example: I have 10 textviews inside constraint layout. And based on some condition I have to change all the textview's textcolor. Rather than add textView1.setTextColor, textView2.setTextColor....textview10.setTextColor() ...do we have any other way to handle this ? Thanks in advance 🙂
    a
    • 2
    • 1
  • r

    Ranganath Kini

    07/12/2023, 4:23 PM
    @svtk, @yole , @elizarov, I'm loving the second edition MEAP. Can I request you to please share some idea of when you believe the book would be finished? Are you awaiting release of Kotlin 2.0?
    s
    • 2
    • 2
  • s

    sankalp

    06/10/2024, 5:24 PM
    Got this in the mail today! Can’t wait to dive right in
    ❤️ 1
  • u

    unnsse

    07/01/2024, 11:06 PM
    Got my copy today!
    ❤️ 1