Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
neatcoder
on Aug 15, 2019
|
parent
|
context
|
favorite
| on:
Yoda conditions
For those who are wondering what this refers to, it is writing code like this:
"foo".equals(myVar)
instead of writing:
myVar.equals("foo")
which could can cause NullPointerException if myVar is null.
delinka
on Aug 15, 2019
[–]
you've missed a closing " which makes this read differently than intended
neatcoder
on Aug 15, 2019
|
parent
[–]
Thanks. Fixed now.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: