https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
random
  • r

    redrield

    08/14/2017, 10:38 PM
    There's a FunKTionale module for that
    o
    • 2
    • 1
  • g

    gildor

    08/15/2017, 5:50 AM
    Does somebody have good candidates for high performance laptop for work win/linux?
    a
    e
    +6
    • 9
    • 18
  • x

    xantier

    08/15/2017, 9:49 AM
    I just did extensive research on lappys and ordered a new one yesterday. I'm using new MBP at work and absolutely hate it. Final three for my research were Dell XPS , Lenovo T470s & Lenovo X1 Carbon
    k
    p
    +3
    • 6
    • 14
  • x

    xantier

    08/15/2017, 9:50 AM
    Lenovo's build quality on those corporate Thinkpads are top notch so I went with one of those
    k
    p
    • 3
    • 5
  • a

    anthonyandroid

    08/15/2017, 9:50 AM
    Do we have anything similar to https://swiftweekly.github.io/ ? focus on the change of the language itself, and can see the consideration behide
    v
    k
    • 3
    • 3
  • o

    orangy

    08/15/2017, 5:17 PM
    What’s current modern way to make a fat-jar, jar-jar, shadow-jar with gradle? That is, a single jar with all the dependencies and manifest?
    f
    t
    +3
    • 6
    • 8
  • m

    michaelrocks

    08/15/2017, 5:52 PM
    @orangy This plugin works well for me https://github.com/johnrengelman/shadow
    o
    • 2
    • 1
  • c

    codeslubber

    08/15/2017, 6:00 PM
    @gildor do you have the KL one? or the one from last NOv?
    g
    • 2
    • 5
  • c

    codeslubber

    08/15/2017, 6:06 PM
    @voddan you probably know you can still get a 15 that does not have the touchbar…
    v
    • 2
    • 6
  • k

    karelpeeters

    08/15/2017, 8:13 PM
    I want to transfer my old settings to the new version.
    o
    j
    • 3
    • 6
  • d

    Dmitry Kandalov

    08/16/2017, 7:57 AM
    When I change maven/gradle config file, there is popup notification which suggests to “import settings”. Is there a way to navigate to the popup and “click” the link from keyboard (i.e. without mouse/trackpad)?
    k
    • 2
    • 7
  • p

    pniederw

    08/17/2017, 6:43 AM
    I wonder why intellij’s java class icons don’t convey whether a class is public or package-private. seems more important than most other information (final, abstract, etc.)
    o
    • 2
    • 3
  • c

    codeslubber

    08/18/2017, 4:48 PM
    as someone who complained a lot about the speed of the Scala compiler in the past, to me that’s a solved problem, I do not think it’s particularly slow anymore.. combination of ScalaTest and 2.12.3 is pretty fast..
    e
    • 2
    • 7
  • r

    roberto.guerra

    08/18/2017, 4:59 PM
    <rant> Do not force a public API to authenticate via OAuth. It forces the client to boot up an http server even if the API is not used for a web app. #notEverythingIsAWebApp </rant>
    k
    • 2
    • 4
  • o

    orangy

    08/18/2017, 7:17 PM
    Did anyone watch it? https://twitter.com/DZone/status/898621653818654720
    k
    a
    +3
    • 6
    • 19
  • n

    napperley

    08/19/2017, 6:44 AM
    Must be seeing things that aren't really there. Can spot what appears to be the Kotlin logo :kotlin: in this video 😆 :

    https://youtu.be/WI-nTf5iM84?t=349▾

    d
    r
    • 3
    • 2
  • o

    orangy

    08/19/2017, 12:40 PM
    Request on meta.stackexchange.com was posted: https://meta.stackexchange.com/questions/299920/support-kotlin-in-code-highlighting
    :kotlin-flag: 1
    🔺 6
    k
    n
    • 3
    • 3
  • c

    cketti

    08/19/2017, 4:00 PM
    is anyone else having trouble logging into youtrack? i'm redirected to the login page with the additional query parameter
    developer_message=java.lang.String%20cannot%20be%20cast%20to%20jetbrains.exodus.bindings.ComparableSet
    o
    • 2
    • 10
  • o

    orangy

    08/19/2017, 11:23 PM
    (inspired by thousand’s question about Rx and Kotlin)
    k
    r
    +5
    • 8
    • 13
  • t

    trevjones

    08/20/2017, 6:20 PM
    Is there any further information published on how to use the log config dialog? I am trying to enable verbose logging so I can track down an issue with the android studio / gradle integration. I have a custom test task that can not be run via ide gradle run config and the only output I get is
    Error:Failed to complete Gradle execution. Cause: unknown.
    • 1
    • 1
  • m

    michaelzinn

    08/21/2017, 9:58 AM
    The return type “Nothing” should be called “Mu” instead.
    k
    h
    l
    • 4
    • 6
  • a

    alouanemed

    08/22/2017, 5:51 PM
    Hey everyone, can someone tell me where can i find RxJava slack ? I have a question and need help with something related to Single
    k
    • 2
    • 1
  • p

    Paul Woitaschek

    08/22/2017, 7:47 PM
    Are these oatmeal cookies? @thyberg
    k
    t
    • 3
    • 2
  • e

    elect

    08/22/2017, 8:07 PM
    has anybody ever got problems importing a
    set
    operator of a
    MutableMap
    ?
    k
    v
    b
    • 4
    • 12
  • k

    kirillrakhman

    08/25/2017, 3:10 PM
    (I would argue the only answer to php questions is "kill it with fire", but that's just my opinion)
    ➕ 7
    ☝️ 3
    t
    c
    k
    • 4
    • 5
  • e

    elect

    08/26/2017, 10:28 AM
    I'll try
    e
    • 2
    • 2
  • t

    tapchicoma

    08/28/2017, 10:01 AM
    there is https://kibotu.github.io/java-is-like-kotlin/, but it is incomplete
    s
    • 2
    • 1
  • l

    Loránd

    08/28/2017, 11:03 AM
    Just a question, in terms of class design is it wrong to pass down member variables to private class methods instead of using the member directly in the method?
    private void foo(Object obj){
    obj.doSomething();
    }
    vs
    private void foo(){
    mObj.doSomething();
    }
    I am just looking for some thoughts.
    k
    • 2
    • 1
  • e

    enighma

    08/29/2017, 6:09 AM
    Must say that the kotlinconf lineup is pretty awesome https://kotlinconf.com/speakers
    ➕ 5
    :kotlin: 3
    o
    • 2
    • 4
  • o

    orangy

    08/29/2017, 7:38 AM
    Random security question. Form “I forgot my password” (properly) shows this after submit:
    If there is an account associated with <your email> you will receive an email with a link to reset your password.
    This doesn’t give potential attacker any information if the address is registered or not. But what would be a proper error message for when you register new account and email is already there?
    k
    l
    +3
    • 6
    • 38
Powered by Linen
Title
o

orangy

08/29/2017, 7:38 AM
Random security question. Form “I forgot my password” (properly) shows this after submit:
If there is an account associated with <your email> you will receive an email with a link to reset your password.
This doesn’t give potential attacker any information if the address is registered or not. But what would be a proper error message for when you register new account and email is already there?
k

karelpeeters

08/29/2017, 7:41 AM
Relevant stackexchange: https://security.stackexchange.com/questions/40694/disclose-to-user-if-account-exists
👍 1
l

lovis

08/29/2017, 7:43 AM
I think I once read an article (or a book? 🤔 )that UX beats “Security” in this case. I see if I can find it
takes the same line as “visible password by default”
k

karelpeeters

08/29/2017, 7:46 AM
Visible password by default? What?
l

lovis

08/29/2017, 7:48 AM
https://www.nngroup.com/articles/stop-password-masking/
it’s like 99% of the time nobody is actually watching you while you enter your password
k

karelpeeters

08/29/2017, 7:50 AM
Right and so that 1% you forget to check it... I honestly hoped that article was satire.
I'm all in favour of providing the option to show it, but not by default.
l

lovis

08/29/2017, 7:51 AM
the article is a little old, and the conclusion is not taking mobile into consideration (where you are being watched all the time). for desktop I agree. however typing a password is on mobile is so damn awkward, that I always enable the “see pasword” option
k

karelpeeters

08/29/2017, 7:52 AM
Hmm
Password masking has proven to be a particularly nasty usability problem in our testing of mobile devices, where typing is difficult and typos are common. But the problem exists for desktop users as well.
l

lovis

08/29/2017, 7:52 AM
woops
k

karelpeeters

08/29/2017, 7:52 AM
You usually get to see the last typed character for a bit, right?
l

lovis

08/29/2017, 7:53 AM
yeah, but I don’t type the pw letter by letter.
Anyway, I would definitely not start criticizing the results of their usability studies. the conclusion is obviously up for discussion
@karelpeeters btw I found that:
>> Offer the option of showing passwords in clear. However, unmasking does not need to be the default for login. Although we advocated for this practice for a long time, only recently sites and apps have started adopting it, and some users can feel unsecure when seeing the password characters in clear. That is why, at this stage, we recommend masking the password by default and presenting users with a Show password checkbox that allows them to unmask it.
now we’re both happy 😉
k

karelpeeters

08/29/2017, 8:05 AM
Right that's a good middle ground ☺️
o

orangy

08/29/2017, 8:36 AM
Or just use 1password with touchID auth 🙂
👍 1
e

evanchooly

08/29/2017, 8:37 AM
or lastpass, yeah. i never type my passwords in anymore. i don't even know most of them.
k

karelpeeters

08/29/2017, 8:37 AM
That's another password manager? Is it better than Lastpass?
e

evanchooly

08/29/2017, 8:38 AM
1password is pretty nice. their windows client sucked last time I used it.
t

tipsy

08/29/2017, 8:54 AM
@lovis it’s like 99% of the time nobody is actually watching you while you enter your password
if you don't mask, some mobile keyboards will store and predict your password
l

lovis

08/29/2017, 8:58 AM
don’t know about iOS, but for android the inputType for the TextView is called
textVisiblePassword
nothing will be stored/predicted (actually, that’s the only thing that works for all manufacturers! 🙄 )
t

tipsy

08/29/2017, 9:05 AM
i meant for
<input>
elements, the article seemed to be discussing web rather than native
when it comes to native i have no clue
l

lovis

08/29/2017, 9:06 AM
you’re right
b

bamdmux

08/29/2017, 9:07 AM
Well, both in native or through the webview, a malicious keyboard app can store your password or anything you type
Changing the input type can't prevent that
the input type is only giving hints to the keyboard of how they should work, not storing it, or showing just numbers
but if the keyboard wants to store/log/process your input, its gonna do it anyway
👍 1
t

tipsy

08/29/2017, 9:11 AM
sure, but the non-malicious ones won't know that it's a password unless you use the correct type.. so in general i think it's a very bad idea to not mask passwords
b

bamdmux

08/29/2017, 9:11 AM
That among other things is why now I cant live with a phone witouth a good fingerprint reader
@tipsy Sure, allthough I dont think any keyboard should store what I type by default regardles of where Im typing
k

karelpeeters

08/29/2017, 9:18 AM
That allows it to give better suggestions in the future and to suggest typo fixes.
b

bamdmux

08/29/2017, 9:19 AM
Yeah I know, but when I add the word to the dictionary manually, not by default
Im not saying a keyboard shouldnt process the input, im talking about storing what I type
Like that story about swiftkey suggesting the bank password to someone who was typing an email or something 😄
I know the bank should have tagged the password input, but its still annoying
View count: 2