#strict mode or not ?

2 messages · Page 1 of 1 (latest)

noble hinge
#

we are a team where I am the only one who knows angular.
we are working on a large project which is ending or strict mode has been deactivated. to simplify, we don't use NGRX either but service+ behaviorsubject
the application runs very well.

we are going to start a new project and I am wondering whether or not to activate strict mode knowing that most devs are beginners.

what would you do?

potent holly
#

Do activate it. It's the default, and it's safer. But if they're not used to a language where null/undefined are their own type, teach them what it means. Teach them when it's better to check for null, or to use the null-safe operator, or the ! operator.