Open in app
Mohammad Faisal
242 Followers
About

Sign in

242 Followers
About
Open in app
What is the necessity and benefit of rule 8?
2

Aditya Sanganeria

Mohammad Faisal

Mohammad Faisal

·Dec 14, 2020

All I can say is the writers of the book “Maintainable Javascript” think it’s a good practice to follow to write enterprise applications.

For me I think the ternary operators were not meant to do the work of if-else so following the rule can’t hurt.

More from Mohammad Faisal

Passionate about Clean code and SOLID Architecture

More From Medium

Using sudo Is Bad but What Can You Do About It?

Mohammad Faisal in Level Up Coding

How to Setup and Add Google Analytics to your React App

Mohammad Faisal in JavaScript In Plain English

Advanced React Optimization Techniques

Mohammad Faisal in JavaScript In Plain English

10 Lessons That Helped Me Grow As A Developer

Mohammad Faisal in JavaScript In Plain English

8 Ridiculous NPM Packages I Wish Didn’t Exist

Mohammad Faisal in JavaScript In Plain English

How to Add Linting and Formatting for your React App

Mohammad Faisal in JavaScript In Plain English

5 Truths About Software Design

Mohammad Faisal in JavaScript In Plain English

What is Redis and How to Use it with Nest.JS

Mohammad Faisal in JavaScript In Plain English

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store