The JavaScript, HTML5 and CSS Magazine

By Dan Wahlin | All about JavaScript, HTML5 and CSS! Tweet article suggestions to @DanWahlin.

Our Best Practices for Writing React Components

When I first started writing React, I remember seeing many different approaches to writing components, varying greatly from tutorial to tutorial. …

JavaScript

Creating a Book Cover Using JavaScript and p5.js | CSS-Tricks

By Engin Arslan On March 20, 2017<p>I recently published a book and an interactive course called Coding for Visual Learners. It teaches coding to …

JavaScript

Using React, Redux and Webpack with Dotnet Core to build a modern web frontend

As a developer, I consider myself mostly a Dotnet developer. But when building modern applications for the web, there’s no way around it: every web …

JavaScript

webpack bits: Getting the most out of the CommonsChunkPlugin()

From time to time, the webpack core team loves to get the community involved on Twitter, and share bits and pieces of knowledge in a fun and …

Source Code

VS Code Tips and Tricks

Table of Contents<p>Basics<br>• Customization<br>• Extensions<br>• File and folder management<br>• Editing hacks<br>• Intellisense<br>• Snippets<br>• Git integration<br>• Debugging<br>• Task runner<br>• Other …

Linux

Observables are Coming to ECMAScript!

Observables in JavaScript were largely popularized by libraries such as RxJS and Bacon.js. Jafar Husain, a Netflix tech lead and long-time functional …

JavaScript

Five Things You Can Use in ES6 Today

In my day job I'm the head of developer evangelism at PubNub. We use Javascript heavily in our new product BLOCKS, which enables developers to run …

JavaScript

Web Scraping in Node.js with Multiple Examples

Web scraping which can be used for things like email collection, creating a news feed reader, comparing product price from multiple e-commerce sites, …

JavaScript

Introducing Quokka — The Live Scratchpad for JavaScript (free developer tool)

Introducing Quokka — The Live Scratchpad for JavaScript (free developer tool)<p>Experimentation is very important in our industry. Before succeeding one …

JavaScript

Routing in React, the uncomplicated way

I’ve used React Router on most of the projects I’ve worked on over the last few years, and as I’ve dealt with different routing requirements, I’ve …

JavaScript

Comment component in Aurelia

A while back I wanted to experiment with Aurelia, so I figured I'd use it to build a commenting feature for my blog.<p>Getting started<p>Modern web …

Web Development

Functional JavaScript: Decoupling methods from their objects

One thing I always end up doing in my project is decoupling methods from their objects. map, filter and reduce are not the only ones, but they are …

JavaScript

Announcing CSS Grid & the Firefox Grid Inspector Tool

Real World Lessons in Progressive Web Application & Service Worker Caching

Over the past year we have seen a lot of excitement around Progressive Web Applications. Browser evangelist are selling developers and business owners on their advantages and promising future. But what is the real story? What are the details to proper execution? What do engineers need to know to …

Web Development

TypeScript 2.2: The object Type

TypeScript 2.2 introduces a new type called object. It represents any non-primitive type. The following types are considered to be <b>primitive types</b> in …

JavaScript

How we migrated a 200K+ LOC project to TypeScript and survived to tell the story

Statically-typed JavaScript exploded in use in 2016. More and more companies are leveraging the vast potential of types in JavaScript. Two major …

JavaScript

Feature watch: ECMAScript 2018

This blog post tracks what features may be included in ES2018. I will continually update it.<p>Proposed ECMAScript 2018 features<p>Stage 4 means that a …

JavaScript

Universal JavaScript Apps with React Router 4

React Router is the most popular library in React-land for rendering different page contents depending on request URLs and manipulating the browser …

Immutable.js, persistent data structures and structural sharing

Why use Immutable.js instead of normal JavaScript object?<p>Treating your data as immutable brings many benefits. In fact, that’s a principle behind …

JavaScript

Upgrading to Vue.js 2.2

<i>Vue 2.2</i> was just released with a plethora of neat changes. Here’s a guide to what changed and how it might affect your app, along with migration …

JavaScript

Mastering VS Code's Terminal

<i>This article makes heavy use of custom settings and keybindings, so make sure you know how they work to get the most out of it.</i><p>Choose your shell<p>VS …

Linux

How to use Flexbox to create a modern card design layout

Thanks to Flexbox, a new layout mode in CSS3, we can get all of our cards in a row, literally. Card layouts have grown in popularity over the past …

Web Development

More HTML5 Semantics: Changes to Existing Features

<i>The following is an extract from our book, HTML5 & CSS3 for the Real World, 2nd Edition, written by Alexis Goldstein, Louis Lazaris, and Estelle</i> …

Making the most of the Chrome Developer Tools

Most web developers are familiar with the basic features of the chrome developer tools — the DOM inspector, styles panel, and JavaScript …

Web Development

Progressive Web App Libraries in Production

Two years ago, our team at Google started work on JavaScript libraries to reduce the friction for building Progressive Web Apps.<p>We started with …

JavaScript

Flex Those JavaScript Array Muscles

Sometimes we get so wrapped up in new frameworks, coding styles, and tools we forget to stop and get some of the basics back into our head. This …

JavaScript

babel-preset-env: a preset that configures Babel for you

babel-preset-env is a new preset that lets you specify an environment and automatically enables the necessary plugins.<p>The problem<p>At the moment, …

JavaScript

HTML 5 Cheat Sheet [Free PDF Download]

In this day and age, the more knowledge you possess the more power you can wield. With a blogging platform like WordPress and grasp of HTML language, …