Why writing simple, clear and debuggable codes is so underrated ?

“Two books on a desk near a MacBook with lines of code on its screen” by Émile Perron on Unsplash
const isExtensionValid = this.allowedExtensions.indexOf(files[i].type) !== -1;if (isExtensionValid) {
// do something
} else {
// error
break;
}
if (this.allowedExtensions.indexOf(files[i].type) !== -1) {

--

--

Senior Software Developer, Writer, Amateur Photographer, Reader

Love podcasts or audiobooks? Learn on the go with our new app.

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
Abdallah Yashir

Abdallah Yashir

Senior Software Developer, Writer, Amateur Photographer, Reader