![Effective Java in Kotlin, item 1: Consider static factory methods instead of constructors | by Marcin Moskala | Kt. Academy Effective Java in Kotlin, item 1: Consider static factory methods instead of constructors | by Marcin Moskala | Kt. Academy](https://cdn-images-1.medium.com/fit/t/1600/480/1*5TK0OVpVdn0ahVnVLFJzwQ.png)
Effective Java in Kotlin, item 1: Consider static factory methods instead of constructors | by Marcin Moskala | Kt. Academy
![Enrique López-Mañas on Twitter: "Remember that functions and constructors in Kotlin with default parameters are exposed to Java with the entire signature and all parameters. If you are exposing your code, use @ Enrique López-Mañas on Twitter: "Remember that functions and constructors in Kotlin with default parameters are exposed to Java with the entire signature and all parameters. If you are exposing your code, use @](https://pbs.twimg.com/media/Dv-jF9RV4AU8hNH.jpg:large)
Enrique López-Mañas on Twitter: "Remember that functions and constructors in Kotlin with default parameters are exposed to Java with the entire signature and all parameters. If you are exposing your code, use @
Generated docs for primary constructors have duplicate copies of parameters · Issue #341 · Kotlin/dokka · GitHub
![constructor - Why would you use a Kotlin companion object rather than an initializer block for creation? - Stack Overflow constructor - Why would you use a Kotlin companion object rather than an initializer block for creation? - Stack Overflow](https://i.stack.imgur.com/DLrpP.png)