Message from JavaScript discussions

October 2020

— If value is null || undefined it's like another value

— 

I've addicted to numeric flag recently, especially -1

flag = 0 # can be -1=initial, 0=false, 1=true

if ~flag
if flag
# 1...
else
# 0...
else
# -1..

or

if not ~flag
# -1..
else if flag
# 1...
else
# 0...

— What are you even talking about

— How is TypeORM even remotely related to stored procedures in SQL

— Show/refine data structure maybe🤔

— Oi, it's a golden boy😅

— It's a bit complicated, I receive this from some backend

— Complicated can't be cute

— I will try to reach some good ratio complexity/beautifulness 😅

— Thanks!

— 've seen some

if compound.item
# item exists
if compound.item.variant
# variant defined
# ...

to

if (a = compound.item) and a.variant
# item and variant exists
# ...

Message permanent page

— If there are 2 places, it sux.. should go one way down