Kangax ES2015 quiz, expained - 2016-07-26
@kangax’ve created a quiz, it’s very interesting, the solution explains a tricky moment of spec.
@kangax’ve created a quiz, it’s very interesting, the solution explains a tricky moment of spec.
AngularJS 1.5 introduce .component()
helper method which is much simpler than the .directive()
definitions and advocates best practices and common default behavior.
Using .component()
will allow to write in Angular 2 style as well, which will turn transition to Angular 2 much easier.
Let’s compare the difference in syntax and the possibility of new abstraction.
Being a SOLID developer in JS isn’t so as straight forward as in other languages. Some developers consider functional approach. Others chose OOP style. Some stand in both line. And other think that having class is wrong and redundant and prefer factories. But still, SOLID principles are the basic pillars of object oriented programming.
But what are they?
There are many ways to copy object in Javascript but most of the time such operation doesn’t do what we expected.
He has troubles with users ending or starting in a .
, and his user-array is a flat array of user-email-pairs, like so:
What’s the Difference Between Class & Prototype Inheritance?
This can be a tricky question, and you’ll probably need to defend your answer with follow-up Q&A, so pay special attention to learning the differences, and how to apply the knowledge to write better code.
If you are calculating complex things or execute time-consuming API calls, you sometimes want to cache the results. In this case we want you to create a function wrapper, which takes a function and caches its results depending on the arguments, that were applied to the function.
Webpack simplifies web development by solving a fundamental problem: bundling. It takes in various assets, such as JavaScript, CSS, and HTML, and then transforms these assets into a format that’s convenient to consume through a browser. Doing this well takes away a significant amount of pain from web development.
It’s not the easiest tool to learn due to its configuration-driven approach, but it’s incredibly powerful. The purpose of this guide is to help you get started with webpack and then to go beyond the basics.
One of the most important aspects of writing maintainable code is being able to notice the repeating themes in that code and optimize them. This is an area where knowledge of design patterns can prove invaluable.
I take a look at a number of popular JavaScript design patterns and explore why certain patterns may be suitable for your projects.
Cycle.js is a framework where your app is described as a simple function taking an event stream as input and outputting an event stream.
Cycle.js builds on RxJS and is as a reactive and functional JavaScript framework. What does that mean?