Time |
S |
Nick |
Message |
01:52 |
|
|
sfisque joined ##friendlyjava |
01:56 |
|
sfisque |
tbh i see optional as merely moving the problem. you still have to unwrap it and deal with null references on the external side, or put the defensive code into the Optional. so it's not really a solution, but merely a different implementation of " x == null ? handleNull : x.doOriginalIntention() |
01:57 |
|
sfisque |
its nifty, but in the end, it's just sugar |
03:42 |
|
|
nanoz joined ##friendlyjava |
05:44 |
|
|
nanoz joined ##friendlyjava |
05:55 |
|
aditsu |
pdurbin: well, javafx is still a kind of "other" framework I'm checking out |
05:57 |
|
aditsu |
as for web, I think I'd like to look into JSF but don't know when I'll find the time |
06:17 |
|
aditsu |
regarding Optional, groovy's way seems a lot more practical |
06:18 |
|
* aditsu |
prepares to be hanged by a crowd of angry Haskellers |
07:31 |
|
nanoz |
? |
07:31 |
|
nanoz |
i hate soap |
07:32 |
|
* nanoz |
i dont know soap , can someone say good points on soap / where to get started |
07:35 |
|
nanoz |
aditsu |
07:35 |
|
nanoz |
pdurbin |
07:37 |
|
aditsu |
soap is good, gets you clean and smelling nice |
07:47 |
|
nanoz |
:! |
07:48 |
|
nanoz |
webservice aditsu |
10:21 |
|
pdurbin |
sfisque: but if you use the flatMap stuff you don't have to check for null. See http://www.oracle.com/technetwork/articles/java/java8-optional-2175753.html |
13:18 |
|
|
nanoz joined ##friendlyjava |
15:00 |
|
|
nanoz joined ##friendlyjava |
16:13 |
|
|
sfisque joined ##friendlyjava |
16:15 |
|
sfisque |
.orElse is basically a null check. all they've done is wrap it in a method (aka sugar) |
17:00 |
|
aditsu |
pour some sugar on me ♫ |
17:42 |
|
|
Jax joined ##friendlyjava |
18:50 |
|
pdurbin |
:) |
19:00 |
|
pdurbin |
the Java 8 style definitely looks different |
19:02 |
|
pdurbin |
oh, these slides are related (and interesting): http://www.slideshare.net/mariofusco/monadic-java |
19:10 |
|
pdurbin |
it would be interesting to work in a code base that uses Java 8 syntax whenever possible |
19:57 |
|
|
sfisque joined ##friendlyjava |
22:45 |
|
xb |
"[00:37:54] <aditsu> soap is good, gets you clean and smelling nice" lol aditsu, you troll, you :P |