CodeNewbie Community 🌱

Discussion on: Null: The Billion Dollar Mistake

Collapse
 
mcsee profile image
mcsee

Null does not exist. So it violates the MAPPER principle

IF you have control on the frontend you should avoid it. If you don't you should do damage control and not propagate it

Collapse
 
timrohrer profile image
Tim Rohrer

Might be a dumb question, but what would you put in the inputRef initial value for React?

Thread Thread
 
mcsee profile image
mcsee

Do you control React?

Anything but a null, For example a NullInputRef (it is not null)

You are not in control of React?

A null. and handle it ASAP in your model