« first day (2528 days earlier)      last day (589 days later) » 

4:21 AM
Java why
Boolean nullableBool = null;
boolean regularBool = (nullableBool == true);
System.out.println("Value: " + regularBool);
Guess what this code does.
 
4:50 AM
@RyanM NPE?
I do remember having to use some .isTrue()and .isFalse() functionality. Maybe it was from Apache commons or made it myself but it definitely was to deal with Booleans (which came from an external system) and the possibility of those being nulls.
 
just make it not nullable
 
@VLAZ Correct! You need to do nullableBool != null && nullableBool
Even more confusingly, Kotlin does exactly what you'd expect
val nullableBool: Boolean? = null
val regularBool: Boolean = (nullableBool == true)
println(regularBool)
prints "false"
 
 
6 hours later…
11:13 AM
Eww, the styling looks ugly as sin.
Also...wait, why is my mouse cursor different in the screenshot?!
This is what I see in the screenshot preview:
Apparently Greenshot just inserts a mouse cursor that doesn't match your system style. Thus spreading lies.
 
11:54 AM
Don't have that key on my keyboard
 
 
8 hours later…
7:33 PM
@VLAZ that is a fixable problem
 
7:59 PM
@OlegValteriswithUkraine I wasn't able to look it up at the time but I was pretty sure that we'd written something about SOBotics in the past - it looks like they submitted this to the blog and we ran it a few years back - stackoverflow.blog/2019/09/17/…
 
 
3 hours later…
10:39 PM
 

« first day (2528 days earlier)      last day (589 days later) »