so our team (mostly me) just finished a 4-month piece by piece conversion of a 4000-line Java project to Kotlin. There was also some development going on, but not too much and I thought it would be interessting to look at the code statistics:
Language files blank comment code
---------------------------------------------------
Java 80 1028 333 4075 before
Kotlin 80 643 330 4185 after
so we see a collapse of blank lines by 35%, but why did the codelines not decrease, despite my feeling that kotlin code is more compact than Java code?
I think it's because of my love of the trailing comma 😅
A lot of parameter lists went from e.g.
public String getAccessToken(byte[] pkcs12, String keyStorePw, String privateKeyPw, String fd) {
to looking like this:
fun getAccessToken(
pkcs12: ByteArray,
keyStorePw: String,
privateKeyPw: String,
fd: String,
): String {