News for hackers. Stuff that matters.

voddan

Re:What Future Java Might Look Like on Saturday December 17, 2016 @11:35AM (#13201258)
Netflix, for example. 3/4 of all Kotlin presentations are done by people outside of JetBrains who use Kotlin at work. And there are a lot of them.
Re:Kotlin 1.0.5 is here on Wednesday November 09, 2016 @04:07AM (#12908283)
iOS and Android UX guides have completely different approaches to the logic of user interaction. AFAIK, Xamarin does not allow to have different layouts generated from shared code. So, even that components are native, their placement is alien.
Re:Why Kotlin is my next programming language (2015) on Monday June 20, 2016 @01:44AM (#11936239)
The curly braces are the syntax for lambdas, one of the basic types `(T) -> R?`. There are plenty of examples for using that, but in the respective chapters: https://kotlinlang.org/docs/reference/lambdas.html#higher-or... or in this bunch of examples: https://kotlinlang.org/docs/reference/idioms.html#filtering-...

The docs are arranged in a way that one reads them in the order they are written (at least the first half). I supposed that would take more than half an hour given at the competition.

I don't think Kotlin is the best choice for programming challenges like codeforces - they really don't let him shine (although I use it whenever I can). But if this is a valid case, we can collaborate and write a short tutorial for C/C++ to Kotlin programmers.

Re:Why Kotlin is my next programming language (2015) on Sunday June 19, 2016 @09:30AM (#11932904)
"integrate Kotlin files into a Java project without using IntelliJ" - compilation of a mixed project is not a trivial tasks, many things must be set up. A detailed description of this takes a chapter in a book.

That's the reason one should use build tools, be it Ant, Maven, or Gradle. The process of setting them up without an IDE is narrowly described in the docs https://kotlinlang.org/docs/tutorials/build-tools.html

Re:Why Kotlin is my next programming language (2015) on Sunday June 19, 2016 @09:18AM (#11932871)
Could you please elaborate on what needs improving in the docs?

Btw, the whole kotlinlang.org is OSS, and you can correct things you don't

Re:Why Kotlin is my next programming language (2015) on Sunday June 19, 2016 @02:37AM (#11932041)
A few people mentioned problems with Kotlin documentation (presumably with a connection to the Surprise Language round of Codeforces).

Could you describe in detail the problems you had? What was unclear or misleading? Were those problems with the JVM setup or Kotlin itself?

Re:Why Kotlin is my next programming language (2015) on Sunday June 19, 2016 @02:29AM (#11932026)
The Kotlin reference is not supposed to be used for finding methods.

The way to go is to use auto completion in an IDE. If you type `myArray.sort<ctrl+space>`, you get all one needs, including `sort`, `sorted`, `sortBy` (which you needed).

Alternatively you could search the reference page for Array or MutableList or MutableMap, not sure what you wanted: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/ https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collecti... https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collecti...