Ynon Perek
  • Home
  • Subscribe

javascript

A collection of 5 posts

javascript

There Is No State

A recent article by Alberto Gimeno suggests the reason modern JavaScript frameworks exists is the difficuly to keep state in sync with the UI. I hope to convince you that difficulty is fake:

Ynon Perek
javascript

Promises: Why, How and Wow!

Promises are possibly the best addition ES6 brought upon us, due to its role as the foundation of async/await. Here's a simple Why, How and Wow explanation of the feature. Why In

Ynon Perek
javascript

Adding Negative Indexes to JavaScript Arrays

Every time I return from ruby/python to JavaScript I'll fall into the same mistake of writing arr[-1] and not getting the last item. JavaScript has a weird way of stringifying object

Ynon Perek
javascript

3 Cool Uses For Tagged Template Literals

ES6 Template literals have become one of my most used JavaScript features. Tagged template literals work about the same way but let you write your own "tagger" or handler function which does the interpolation. Why would you want to? I could think of 3 reasons. But first the gory details

Ynon Perek
javascript

Building a Single Page Application Router With Vanilla JS

A good way to understand how complex mechanisms work is to build a simpler version of them from scratch. As most modern JS frameworks provide some sort of client side routing, writing our own will improve our understanding of those frameworks.

Ynon Perek
Ynon Perek © 2019
Latest Posts Facebook Ghost