Very proud to be on the advisory board of next year's Kotlin conference by the German Publisher Rheinwerk. @rheinwerkverlag@kkonrheinwerk
https://t.co/xTVErTE7NA
#Kotlin
The most useful information I can often get about a certain piece of technology is about its downsides and trade-offs.
I started to write about what I would have personally liked to know about #Kotlin 3-4 years ago.
https://t.co/SYGS65MfXp
Check out our new coroutine testing guide, hot off the press! 🧵🧪
https://t.co/F45O266G03
In this guide, you'll learn how to use the testing APIs new in kotlinx.coroutines.test 1.6, as well as the best practices you'll need to test your Android code!
The CfP for the next edition of Rheinwerk's KKon is open. You can either submit your proposals in English or German.
https://t.co/0cD3OnKDts
#Kotlin#Android
@exitthelemming@subsymbolics They disqualified her, yes. Unbelievable nowadays, but sadly true. But nevertheless it was only one who actually tried to stop her run.
@mreichelt I'm normally using the one that fits the target-sdk (still mostly 30 for now). For one project with targetSDK 30 I've just switched to your new android:31
@ASalvadorini @PreusslerBerlin But all in all I would try to expose methods that are more meaningful and directly return proper objects like toAccount(), to Customer() or whatever.
Depends on what we are talking about :-) It's obviously different for a library doing the parsing versus code using such a lib.
One more on the naming front (different library btw):
public HashMap<String,UsbDevice> getDeviceList() {}
Java is not the worst part here :-)
Why can't they name it getDeviceMap()? And why not simply return a Map?
@ASalvadorini @PreusslerBerlin Isn't it decodeJson()? I think this name is pretty good and better than toMap(), which is totally meaningless or toJson() which sounds like you turn something _into_ Json.
@ASalvadorini @PreusslerBerlin In this case it's not an implementation detail but part of the API (the return type).
But that it's a _HashMap_ should be an implementation detail and not be part of the API. Adding Map to the name is still a bad idea and not descriptive enough.
@PreusslerBerlin A better solution (keeping Java for now) would have been a method
UsbDevice findDeviceByName(DeviceName someName)
plus a simple
List<UsbDevice> getDevices()
that returns all devices, if you want to iterate over them for whatever reason.
3/3
@PreusslerBerlin Because you do not get devices only, it would be helpful to know what is mapped to what. That's why getDevices() feels odd to me.
But, I guess, the method in itself is shite - and that's the root cause for why getDevices() in this case feels wrong.
2/x
Die wichtigste Karte, die ihr zu #COVID19 kennen müsst.
Indien und Südafrika haben bei der Welthandelsorganisation eine Anfrage zur Aussetzung der Patente/Medizin gegen das Virus gestellt. 100 Länder stimmten zu.
Die roten Kreuzchen sind die blockenden Vetos.
Hello Europa!?
Naming is hard. One constant of a lib I'm currently using is "ERROR_SUCCESS". Now is this an error or is this a success?
As a quick rule of thumb: If devs need to look at your JavaDoc/KDoc your naming is wrong!