Brian O'Neill

67 Flips | 1 Magazine | 1 Following | 1 Follower | @BrianONeill10ar | Keep up with Brian O'Neill on Flipboard, a place to see the stories, photos, and updates that matter to you. Flipboard creates a personalized magazine full of everything, from world news to life’s great moments. Download Flipboard for free and search for “Brian O'Neill”

A beginner’s guide to redux-observable

Your first epic<p>In redux-observable, an “<b>epic</b>” is a function that takes a stream of actions and returns a modified stream of actions. You can think of …

Middleware

New in Chrome 69: building <progress> doughnut charts with conical gradients

The right markup<p>HTML 5 introduced lots of additional semantic elements, some of which remain little known to most developers. For a doughnut chart, …

Doughnuts

What makes ReasonML so great?

A rock-solid type system<p>As primarily a front-end JavaScript developer coming to Reason, this wasn’t something I was used to <i>at all.</i> Since JavaScript …

JavaScript

20 web design relics of the old internet

1) Geocities<p>Back in these early days, second only to a royal knighthood, the title everybody wanted to claim was <i>“webmaster”</i>. Unlike a knighthood, …

Web Design

Data visualization in React using React D3

React<p>React is a JavaScript library for building user interfaces. It makes it easy to create reusable components that can be put together to form more …

JavaScript

A quick guide to Angular scopes

<b>Scope hierarchy</b><p>Each Angular application has a <b>root scope</b> and can have any number of child scopes. The root scope is created whenever the Angular …

JavaScript

Writing for readability with declarative arrays

Declarative array methods<p>.reduce<p>Perhaps the most powerful array method is .reduce. It works by calling a provided function against each item of the …

JavaScript

Full guide to using Font Awesome icons in Vue.js apps

Getting started<p>When developing a Vue.js application we’re most likely assembling components using npm (the de-facto standard package manager for …

JavaScript

A complete guide to default props in React

Hello, React component<p>React apps are usually a composition of several independent components that make up the UI of the application. React components …

Software Engineering

Four options to help you get started linting your JavaScript

JSLint<p>JSLint was created in 2002 by Douglas Crockford, who also wrote what is arguably one of the best books on JavaScript. JSLint brings simplicity …

JavaScript

Advanced effects with CSS background blend modes

Combining CSS gradients with background-blend-mode<p>The background property is where we can use CSS gradients. Functions like linear-gradient(), …

Tutorials

Quick guide to React compound components

What are compound components?<p>Compound components is a pattern in which components are used together such that they share an implicit state that let’s …

JavaScript

The easiest way to keep your web apps accessible

The web is no longer just a collection of static text documents with a few images and GIFs thrown into the mix. Over the last twenty years or so, …

WebAssembly: How and why

Why is the web so attractive<p>The beauty of the web is that it’s like ✨magic ✨— it works anywhere. There is <b>no download and no installation</b>. In one …

JavaScript

Designing as a Developer in 2018

You don’t need a design team to make your website beautiful<p>Whether you’re building a product, a tool, a website, a service, or a startup: first …

A quick and complete guide to Mocha testing

Getting started with Mocha<p><b>Mocha</b> is a JavaScript test runner that runs both on Node.js and in the browser. It provides functionality for testing both …

Data fetching in Redux apps - a 100% correct approach

Data fetching in Redux apps — a 100% correct approach<p>Redux is a great tool that solves one of the main problems of UI frameworks: <i>state …

Software Engineering

Building a long press directive in Vue

<b>How to</b><p>When a user clicks a button, two other events gets fired before the click event: <b>mousedown</b> and <b>mouseup</b>.<p>The <b>mousedown</b> event gets called when the …

Modern component reusability: Render props in React & scoped slots in Vue

Render props in React<p>First, let’s look at how we would restructure our autocomplete component using render props in React. We will now have two …

JavaScript ES6: Even more new abstractions to improve your code

JavaScript ES6, also known as ECMAScript 2015, has a number of really cool new features that can improve the quality of your code. Yesterday, Glad …

JavaScript ES6: 5 new abstractions to improve your code

Leverage powerful ES6 features to write better, elegant, and more predictable JavaScript.<p>JavaScript is a very powerful programming language that runs …

JavaScript

Custom polymorphic code snippets in VS Code

Creating a basic snippet<p>The process for creating code snippets in VS Code is the same for all programming languages. All custom snippets are stored …

Conquer navigation state with React-router and Redux

A fundamental component of traditional applications and single page applications alike is Navigation — being able to move from one page to …

Create React App: A quick setup guide

Upgrading the versions of the dependencies<p>One of the advantages of having so few dependencies is that they are easy to upgrade (or downgrade).<p>You …

Building a progressive web app (PWA): No React, no Angular, no Vue

While the manifest approach was failing Mozilla came up with a lot of new APIs — mostly for their Firefox OS mobile system. In this endeavor, Mozilla …

The complete guide to using LocalStorage in JavaScript apps

Using LocalStorage<p>To use LocalStorage in your web applications, there are 5 methods to choose from:<p><b>setItem():</b> Add key and value to</b> …

A guide to React onClick event handlers

<b>Listening to events</b><p>Listening to events in React can be as simple as the example below.<p>In the example above, theonClick attribute is our event handler …

CSS transitions 101: let's animate a toggle button icon

The Transition property<p>You create transitions with the CSS <b>transition</b> property:<p>The code above is the shorthand version of these four</b> …

How CSS works: Creating layers with z-index

What exactly Is Z-Index?<p>At the end of the day, the screens we use in the browser are two-dimensional flat surfaces with a bunch of pixels. But if …

The simpleton's guide to CSS Grid

The simpleton’s g<b>uide to CSS Grid</b><p>The days of tables, margin hacks, positioning magic, and the unorthodox ways floats were used to achieved layout …