Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
driver733
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
1.
▲
OOP and FP – friends or foes? Neither!
(driver733.com)
2 points
by
driver733
6y ago
|
0 comments
2.
▲
by
driver733
7y ago
That's not always the case, since Kotlin can generate Java 6 compatible bytecode.
3.
▲
by
driver733
7y ago
I completely agree. I'll make that change soon. Thanks for the feedback.
4.
▲
by
driver733
7y ago
It can be done this way: result = Optional.ofNullable(nullableVariable) .map(NullableType::someMethodCall) .orElseGet(() -> fallbackIfNullMethodCall());
5.
▲
by
driver733
7y ago
My goal is to compare Kotlin with the current version of Java along with any Java libs that are commonly used (such as Lombok). I have mentioned the fact that some teams are still on older versions of Java just to highlight that not every d
6.
▲
by
driver733
7y ago
You might find this article interesting. https://www.pragmaticobjects.com/chapters/001_checked_except...
7.
▲
by
driver733
7y ago
I leave it to the reader to decide whether the advantages are clear or not. For instance, in Kotlin you can perform operations on collection without converting them to a stream first, and collecting them with a certain collector afterwards.
8.
▲
by
driver733
7y ago
Sure, but you have take into account that Android devs are limited to Java 6, most enterprise devs (based on my experience) are still on Java 8 and some are still on Java 5 or below.
9.
▲
by
driver733
7y ago
It is, however, even in the scope of the "Hello world" app, Kotlin performs much better than Java in terms of bringing out business logic to the front.
10.
▲
by
driver733
7y ago
You are right, but you still have to catch the checked IOException.
11.
▲
by
driver733
7y ago
They will. I am in the process of updating Java code snippets to Java 11.
12.
▲
by
driver733
7y ago
To be more precise, I would say that expressive code == good code
13.
▲
Kotlin vs. Java
(kotlinvsjava.com)
305 points
by
driver733
7y ago
|
321 comments
14.
▲
Elegant Event Triggers
(silasreinagel.com)
1 points
by
driver733
8y ago
|
0 comments