Skip to content

Instantly share code, notes, and snippets.

View diskria's full-sized avatar
🎯
Focusing

diskria diskria

🎯
Focusing
View GitHub Profile
@SmushyTaco
SmushyTaco / Use Dokka.md
Last active April 23, 2026 14:45
PSA Java Developers: Use Dokka in Addition to Javadocs

What's Dokka?

Dokka is like Javadocs but with a much nicer frontend, with multiple export options (HTML, Markdown, etc), and with Kotlin support, if you need it. Just to clarify, it can be used in a pure Java project all the same. You can take a look at the Dokka project here.

How Do They Compare?

Take a look for yourself. I recently forked and published a project and I provide both Javadocs and Dokka. As you see, they both supply the exact same information, but one looks like this:

image

While the other looks like this:

@ShaishavGandhi
ShaishavGandhi / JavaPoetExt.kt
Last active December 19, 2025 13:01
Extensions to convert JavaPoet types to KotlinPoet and vice-versa
import com.squareup.javapoet.ClassName
import com.squareup.javapoet.ParameterizedTypeName
import com.squareup.javapoet.TypeName
import com.squareup.javapoet.TypeVariableName
import com.squareup.javapoet.WildcardTypeName
import com.squareup.javapoet.ArrayTypeName
import com.squareup.kotlinpoet.ARRAY
import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy
fun ClassName.asKPClassName(): com.squareup.kotlinpoet.ClassName {