hello.js

var please = require('share');
console.log('thank you');

Wednesday, 18 September, 2019 UTC

weatherstack: an Amazing Weather API (Sponsored)

weatherstack: an Amazing Weather API (Sponsored)

One of my first tasks each day is checking the weather; it’s a necessity for knowing what my children and I should wear, if I’m going to need to water the lawn or need to shovel snow, and if I can take meetings out on my patio. It’s also been one of ... more


Wednesday, 11 September, 2019 UTC

How to Not Minify Source with webpack

How to Not Minify Source with webpack

The webpack JavaScript utility has taken over the modern JavaScript landscape, so much so that it’s hard to be a JavaScript developer and not use it. JavaScript build utilities are the point where they do best practices implicitly, like minify code, ... more


Tuesday, 10 September, 2019 UTC

Stop Installing Packages Globally

Stop Installing Packages Globally

These days, most front-end projects are going to involve NPM packages of some kind. Occasionally, when browsing documentation for these packages, I’ll see a recommendation to install a package like this. yarn global add <package> Or like this. ... more


Wednesday, 28 August, 2019 UTC

Reverse Lookups with JavaScript

Reverse Lookups with JavaScript

I’ve always loved exploring regular expressions because they’re one of those skills that’s never taught in school — you need to pick them up on the fly, messing up and fixing them along the way. Regex’s are incredibly powerful, and one power they have ... more


Tuesday, 27 August, 2019 UTC

45 Web Tools To Master The Internet (Sponsored)

45 Web Tools To Master The Internet (Sponsored)

A big part of our daily jobs is accomplished with much ease and efficiency by using different web tools and services. There is no doubt that for any type of need there is a great solution that is doing its job. In this article, we are reviewed on short ... more


Friday, 23 August, 2019 UTC

Promises and Static Values

Promises and Static Values

Async can throw a real wrench into the cogs of our programming workflows, all despite the fact that async is the modern JavaScript pattern. While async/await helps, there’s sometimes confusion about the way to have a single function that returns a value ... more


Monday, 5 August, 2019 UTC

then on Objects

then on Objects

Promises were a revelation in JavaScript development, allowing us to enjoy async processing and avoid callback hell. Many new APIs like Battery API, Cache API, and others use the promise API. One fact you may not know is that you can add a then method ... more


Monday, 29 July, 2019 UTC

Optional Chaining

Optional Chaining

For all of the improvements that the JavaScript language has added over the past few years, like the spread operator, default argument values, and arrow functions, there are still a few features I’d love to see implemented. One such feature is optional ... more


Friday, 26 July, 2019 UTC

JavaScript Proxy with Storage

JavaScript Proxy with Storage

The JavaScript Proxy API provides a wealth of “magic” within JavaScript, allowing you to use any object as sort of an alias that allows a wall of validation, formatting, and error throwing. Did you know that you could also employ the Proxy API as an ... more


Tuesday, 16 July, 2019 UTC

Detect Cryptocurrency by Wallet Address

Detect Cryptocurrency by Wallet Address

I’ve always been a massive advocate of cryptocurrency. I love the technology, the ease of use, and the freedom that cryptocurrencies bring to the world. Despite my love of crypto, I know that adoption will take a long time and that the state of crypto ... more


Tuesday, 2 July, 2019 UTC

Set Video Playback Speed with JavaScript

Set Video Playback Speed with JavaScript

I love that media has moved from custom plugins (Flash…gross) to basic HTML <video> and <audio> elements. Treating these media sources as just another element allows us to use CSS filters to adjust display, for example. The less we need to ... more


Thursday, 27 June, 2019 UTC

How to Debug Remote Browsers

How to Debug Remote Browsers

It’s super frustrating when bugs pop up only in a remote browser. Something about that user, that device, or that environment is different, but I don’t know what! And of course, I can’t recreate it on my local development machine. The team at TrackJS ... more


Wednesday, 5 June, 2019 UTC

Detect if Element is a Web Component

Detect if Element is a Web Component

I’ve advocated for web components since before they became a spec, mostly inspired by the Dojo Toolkit’s dijit framework. Empowering first class JavaScript widgets, as opposed to a mess of DIVs and templates, always made the most sense. Now that web ... more


Tuesday, 21 May, 2019 UTC

Resize Observer

Resize Observer

Creating websites that are reactive and responsive used to be considered advanced but responsiveness is a necessity for successful websites and apps. We’ve added media queries, matchMedia , and a host of other APIs to help developers make responsiveness ... more


Tuesday, 21 May, 2019 UTC

AI-Backed Image Background Removal (Sponsored)

AI-Backed Image Background Removal (Sponsored)

I’ve worked on dozens of eCommerce sites in my career and many of them were hamstrung by the same pain points: tax collection, payment customization, and image optimization. While tax collection and payment customization were important, image optimization ... more


Wednesday, 15 May, 2019 UTC

Using Array reduce

Using Array reduce

Every developer who specializes in any programming language will tell you there’s a powerful tool the language provides that they rarely use and wish they knew more about. For me, it’s Array.prototype.reduce . I quite enjoy the other Array methods like ... more


Tuesday, 7 May, 2019 UTC

Type Conversion with JavaScript Arrays

Type Conversion with JavaScript Arrays

JavaScript’s loose nature allows developers to employ amazing tricks to do just about anything you’d like. I’ve detailed how you can filter falsy values in arrays using a filter(Boolean) trick, but reader David Hibshman shared another trick for typecasting ... more


Friday, 3 May, 2019 UTC

Awesome Visual Testing with Percy! (Sponsored)

Awesome Visual Testing with Percy! (Sponsored)

The more complex the applications I work on, the more I rely on and invest in testing. Whether it’s flow typing, jest tests, unit tests, or selenium tests, I rely on all of them to enforce integrity and save me from myself. One type of testing that’s ... more


Thursday, 2 May, 2019 UTC

Flow Object.values(…)

Flow Object.values(…)

JavaScript typing utilities, like Flow and TypeScript, have become popular in JavaScript apps of all sizes. As I mentioned in our Script & Style Show typing podcast, typing is a great way to implicitly implement documentation and validation. Flow ... more


Monday, 29 April, 2019 UTC

JavaScript Detect Async Function

JavaScript Detect Async Function

JavaScript async/await has changed the landscape of how we code. We’re no longer stuck in callback or then hell, and our code can feel more “top down” again. Async functions require the following syntax: async function myFunction() { } To use await with ... more


Wednesday, 24 April, 2019 UTC

Convert Video to Grayscale

Convert Video to Grayscale

I’m a JavaScript fanatic but I’ve always been fascinated with media manipulation. Maybe it’s because I’ve secretly always wanted to be a designer, but I’m fine with being able to manipulate art with software instead of create the art myself. One type ... more


Tuesday, 16 April, 2019 UTC

7 Useful JavaScript Tricks

7 Useful JavaScript Tricks

Just like every other programming language, JavaScript has dozens of tricks to accomplish both easy and difficult tasks. Some tricks are widely known while others are enough to blow your mind. Let’s have a look at {x} JavaScript tricks you can start ... more


Monday, 8 April, 2019 UTC

AI-Based Video Preview from Cloudinary (Sponsored)

AI-Based Video Preview from Cloudinary (Sponsored)

The early days of video on the web weren’t great. We started with custom browser plugins and codecs, then moved to Flash, and eventually we found our way HTML <video> . Once we solved the technology problem, we started using more video for content ... more


Tuesday, 2 April, 2019 UTC

Awesome Automation and Integration with Buddy

Awesome Automation and Integration with Buddy

One of my favorite services for years has been IFTTT (If this then that). Having a service that allows me to trigger a host of functionalities with one simple action is amazing! Posting a picture to Instagram can trigger IFTTT to send a tweet, post to ... more


Tuesday, 26 March, 2019 UTC

Free Programming Courses from Harvard, MIT, Microsoft and more (Sponsored)

Free Programming Courses from Harvard, MIT, Microsoft and more (Sponsored)

Did you know that you can learn programming online from institutions like Harvard, MIT and Microsoft on edX.org? The nonprofit site offers 2000 online courses from 140 institutions worldwide. Courses are free to try. EdX has over 200 courses from Microsoft ... more


Tuesday, 26 March, 2019 UTC

Build a Decentralized Web Chat in 15 Minutes

Build a Decentralized Web Chat in 15 Minutes

In this 15 minute tutorial we’re going to build a simple decentralized chat application which runs entirely in a web browser. All you will need is a text editor , a web browser , and a basic knowledge of how to save HTML files and open them in the browser. ... more


Wednesday, 20 March, 2019 UTC

Adding Search to Your Site with JavaScript

Adding Search to Your Site with JavaScript

Static website generators like Gatsby and Jekyll are popular because they allow the creation of complex, templated pages that can be hosted anywhere. But the awesome simplicity of website generators is also limiting. Search is particularly hard. How ... more


Tuesday, 19 March, 2019 UTC

I Don’t Hate Arrow Functions

I Don’t Hate Arrow Functions

TL;DR Arrow functions are fine for certain usages, but they have so many variations that they need to be carefully controlled to not break down the readability of the code. While arrow functions clearly have a ubiquitous community consensus (though not ... more


Monday, 18 March, 2019 UTC

Write Your First Service Worker in 5 Minutes

Write Your First Service Worker in 5 Minutes

What is a service worker? A service worker is a little file that will allow you to cache files and other assets on a user’s machine. How is this different from server-side caching? Because the assets are stored on a user’s machine, rather than a server, ... more


Thursday, 28 February, 2019 UTC

Get File MIME Type from Command Line

Get File MIME Type from Command Line

I’ve gotten skilled at shell scripting over the years. I love a good GUI but knowing how to automate makes you a much more powerful engineer. Much of my scripting requires recursing over directories and processing a file if it meets a given criteria, ... more