Java Code Better in Kotlin
private static int checkForR(String value, int pos) { pos += 2; if (value.length() > pos + 2 && "\r".equals(value.substring(pos, pos + 2))) return pos + 2; return pos; } You are programming in Java. Consider using Kotlin instead.
A screenshot shows a dense Java method in a yellow code block, followed by the suggestion, “You are programming in Java. Consider using Kotlin instead.” The joke playfully mocks Java’s verbosity and presents Kotlin as a cleaner alternative, so it is shared as a reaction to unnecessarily complicated Java code. EN: A screenshot shows a dense Java method in a yellow code block, followed by the suggestion, “You are programming in Java. Consider using Kotlin instead.” The joke playfully mocks Java’s verbosity and presents Kotlin as a cleaner alternative, so it is shared as a reaction to unnecessarily complicated Java code.
- @profunctor_io / 3633 2019-12-10
- Template
- programming tweet screenshot
- Type
- image
- Size
- 589×230 · 26.4 KiB
- Mood
- sarcastic
- Language
- en
- Added