background preloader

Javascript

Facebook Twitter

Understanding Angular Ivy: Incremental DOM and Virtual DOM. 3 ways to communicate between Angular components – Miro Koczka. This article is written for Angular 2+.

3 ways to communicate between Angular components – Miro Koczka

At the time of writing the latest version was Angular 4. Update (August 2018): Still valid for Angular 6 It’s written for beginners — if you are an advanced or intermediate Angular developer you probably already know all these techniques. Edit: Although, the title of this article is a bit misleading because we do not really want to communicate between components directly. Our components should be isolated and encapsulated. How to communicate between components? There is also the “redux way” which I could cover in another article in the future. Imagine the use case that you have the sidebar in your application.

I will describe three ways of implementing this behaviour Passing the reference of one component to anotherCommunication through parent componentCommunication through Service Each one of these examples has the demo application with code inspections on StackBlitz and github repository. 1. DemoGithub repository Here is the relevant code: 2. 3. Babel/example-node-server: Example Node Server w/ Babel. Calls between JavaScript and WebAssembly are finally fast □ - Mozilla Hacks - the Web developer blog. At Mozilla, we want WebAssembly to be as fast as it can be.

Calls between JavaScript and WebAssembly are finally fast □ - Mozilla Hacks - the Web developer blog

This started with its design, which gives it great throughput. Then we improved load times with a streaming baseline compiler. With this, we compile code faster than it comes over the network. So what’s next? One of our big priorities is making it easy to combine JS and WebAssembly. That’s changing, as you can see. This means that in the latest version of Firefox Beta, calls between JS and WebAssembly are faster than non-inlined JS to JS function calls. So these calls are fast in Firefox now. But first, let’s look at how engines do these calls in the first place.

ES6

Node. The future of WebAssembly - A look at upcoming features and proposals. JavaScript fundamentals before learning React. After all my teachings about React, be it online for a larger audience or on-site for companies transitioning to web development and React, I always come to the conclusion that React is all about JavaScript.

JavaScript fundamentals before learning React

Newcomers to React but also myself see it as an advantage, because you carry your JavaScript knowledge for a longer time around compared to your React skills. During my workshops, the larger part of the material is about JavaScript and not React. Most of it boils down to JavaScript ES6 and beyond -- features and syntax -- but also ternary operators, shorthand versions in the language, the this object, JavaScript built-in functions (map, reduce, filter) or more general concepts such as composability, reusability, immutability, closures, truth tables, or higher-order functions. These are the fundamentals, which you don't need necessarily to master before starting with React, but which will definitely come up while learning or practicing it. Table of Contents. Design Patterns in Javascript — Part 2 – ITNEXT. Let me explain to you what is `this`. (Javascript) The complete guide to Angular Material Themes – Tomas Trajan. Using our custom themes Great, we defined our custom theme but that doesn’t do anything by itself.

The complete guide to Angular Material Themes – Tomas Trajan

Next step is to include our custom theme in main style file of our application (usually styles.scss). What are best end-to-end testing frameworks these days? : javascript. Replacing jQuery With Vue.js: No Build Step Necessary. About The Author Sarah Drasner is an award-winning Speaker, Head of Developer Experience at Netlify, Vue core team member, and Staff Writer at CSS-Tricks. Sarah is formerly … More about Sarah ↬ Did you know that you can incorporate Vue into your project the same way that you would incorporate jQuery — with no build step necessary? Let’s cover some common use cases in jQuery and how we can switch them over to Vue, and why we’d even want to do so. It’s been impossible to ignore all of the hype surrounding JavaScript frameworks lately, but they might not be the right fit for your projects. What some people might not know is, you can incorporate Vue into your project the same way that you would incorporate jQuery, no build step necessary.

So, if your current page structure looks like this: Dynamic Bézier Curves - Josh W. Comeau's Blog. First off - woohoo!

Dynamic Bézier Curves - Josh W. Comeau's Blog

This is my first published post on the new blog. I'm super excited. Thanks for checking it out! 🥂 While building this blog, I wanted it to feel whimsical, with plenty of charming interactions and animations. For example, did you notice that as you started scrolling on this page, the Bézier curves that border the green title hero thingy started flattening? In a delightful bit of serendipity, I realized while building the blog that this feature would make a great first blog post! The whole reason I started this blog was that I wanted a way to build dynamic, interactive articles that are more effective at sharing and teaching concepts.

In this maiden blog post, we'll go through the basics of working with Bézier curves and SVG in React.js. Testing React Apps with Cypress – Bits and Pieces. Modern JavaScript Explained For Dinosaurs – Node.js Collection. Learning modern JavaScript is tough if you haven’t been there since the beginning.

Modern JavaScript Explained For Dinosaurs – Node.js Collection

The ecosystem is growing and changing so rapidly that it’s hard to understand the problems that different tools are trying to solve. I started programming in 1998 but only began to learn JavaScript seriously in 2014. At the time I remember coming across Browserify and staring at its tagline: Somebody Tried to Hide a Backdoor in a Popular JavaScript npm Package. Mocha - the fun, simple, flexible JavaScript test framework.