Dev Beans
Dev Beans

Dev Beans

JavaScript Newsletter: 10th November 2020

JavaScript Newsletter: 10th November 2020

Dev Beans's photo
Dev Beans
·Nov 10, 2020·

2 min read

Subscribe to my newsletter and never miss my upcoming articles

In today's newsletter we have some deep dives into a few areas of the JavaScript language, as well as an article that should help you improve your code quality. First, we look at template literals, which makes constructing complex strings easy. Then we move on to an article about some of the lesser-know keywords in JavaScript, and how to use them. Finally, we look at an article focussed on how to remove messy conditional statements from your code, which will help make your code easier to read and maintain.

Quote of the Day

“Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live” - John Woods

Todays Articles

JavaScript template literals

By Chris Bongers

Something cool that was introduced in JavaScript ES6 is Template Literals. You might wonder, what the hell are Template Literals Chris, and more importantly, why do I even need them? Template Literals are a very quick and widely adopted new way of defining strings. Besides that, they come with some extra new and handy methods. I'm going to be showcasing some examples of the changes between the old method and the new one.

JavaScript WTF

By Sam Winter

Some of us have a perhaps misguided affection for JavaScript; others loathe the idiosyncrasies of a language created in ten days. Either way we're stuck with the parlance of web browsers, the idiom whose very name its creator called a "marketing scam." JavaScript makes us yell. It makes us laugh. Above all, it makes us cry, "WTF" like a barbaric NaN over the mechanical keyboards of the world.

How to Get Rid of Annoying IFs Forever

By mcsee

Why the first instruction we learn to program should be the last to use. Nobody uses GOTO instruction anymore and few programming languages still support it. We have matured and confirmed spaghetti code is unmaintainable and error prone. Structured Programming solved that problem years ago. We got rid of the sentence thanks to Edsger Dijkstra's incredible paper: Go To Statement Considered Harmful. Next evolution step will be removing most IF statements. IFs / Cases and Switches are GOTOs disguised as structured flow.

Share this