hello.js

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

Thursday, 25 October, 2018 UTC

react: Store Values in localStorage with React 16.6 useEffect

react: Store Values in localStorage with React 16.6 useEffect

When you refresh the page in JavaScript, it will clear values that you possibly want to be persisted if you don't store it somewhere as in localStorage. Storing something in localStorage is a side effect and in React 16.6 you can utilize `useEffect` to ... more


Thursday, 25 October, 2018 UTC

react: Use React.memo with a Function Component to get PureComponent Behavior

react: Use React.memo with a Function Component to get PureComponent Behavior

A new Higher Order Component (HOC) was recently released in [React v16.6.0](https://reactjs.org/blog/2018/10/23/react-v-16-6.html) called `React.memo`. This behavior of the HOC is similar to what you’d get when using `React.PureComponent` or `shouldComponentUpdate` ... more


Saturday, 20 October, 2018 UTC

npm: Set default values for package.json using npm set

npm: Set default values for package.json using npm set

Npm by default uses global values when initializing a new package.json file. Learn how to set your own global default values by command line or editing the ~/.npmrc file. ... more


Thursday, 18 October, 2018 UTC

mocha: Mock an HTTP request using Nock while unit testing

mocha: Mock an HTTP request using Nock while unit testing

When testing functions that make HTTP requests, it's not preferable for those requests to actually run. Using the `nock` JavaScript library, we can mock out HTTP requests so that they don't actually happen, control the responses from those requests, and ... more


Thursday, 18 October, 2018 UTC

node: Write or Append to a File in Node.js with fs.writeFile and fs.writeFileSync

node: Write or Append to a File in Node.js with fs.writeFile and fs.writeFileSync

In node.js, you can require `fs`, and then call `fs.writeFile` with the filename, and data to write to that file (as a string or a buffer). That will overwrite the entire file, so to just append that data to the file instead, pass an options object with ... more


Monday, 15 October, 2018 UTC

[Course] Rust: Using WebAssembly with Rust

[Course] Rust: Using WebAssembly with Rust

Many languages work on a compilation story to WebAssembly, but Rust is already ready for primetime. Why? - Rust is a stable language and great replacement for C and C++. - Due to the reference and borrowing concept, Rust doesn’t need a Garbage Collector ... more


Thursday, 11 October, 2018 UTC

node: Read a File in Node.js with fs.readFile and fs.readFileSync

node: Read a File in Node.js with fs.readFile and fs.readFileSync

We'll read a csv file in node.js both synchronously, and asynchronously. The file we're reading is a plain text, utf8 file - but you can also use `fs.readFile` to read a binary file as a buffer. We'll look at the differences between `readFile` and `readFileSync`, ... more


Thursday, 11 October, 2018 UTC

[Course] javascript: Understanding JavaScript's Prototypal Inheritance

[Course] javascript: Understanding JavaScript's Prototypal Inheritance

How do inherent prototypes work? You might not think this question applies to you, especially if you come from a classical background. But if you use objects, functions, or arrays, you're probably already using prototypes, and can benefit from learning ... more


Thursday, 11 October, 2018 UTC

node: Connect Node.js to an Airtable Database

node: Connect Node.js to an Airtable Database

Airtable is a personal favorite tool for building out small tools and hosting data. Airtable also makes it pretty easy to load data into your Node.js apps to build your own UIs around the data. This lesson walks you through grabbing the API key, using ... more


Monday, 8 October, 2018 UTC

react: Use the Fragment Short Syntax in Create React App 2.0

react: Use the Fragment Short Syntax in Create React App 2.0

[create-react-app version 2.0](https://reactjs.org/blog/2018/10/01/create-react-app-v2.html) added a lot of new features. One of the new features is upgrading to [Babel Version 7](https://babeljs.io/blog/2018/08/27/7.0.0#jsx-fragment-support), which enables ... more


Thursday, 4 October, 2018 UTC

node: Create and Read Contacts from the Google People API in Node.js

node: Create and Read Contacts from the Google People API in Node.js

The Google People API enables you to create and read contacts from Google's servers. This lesson walks you through enabling the API, authenticating, then creating and listing the contacts you've created. Additional API methods follow the same patterns ... more


Thursday, 4 October, 2018 UTC

react: Add SVGs as React Components with Create React App 2.0

react: Add SVGs as React Components with Create React App 2.0

[create-react-app version 2.0](https://reactjs.org/blog/2018/10/01/create-react-app-v2.html) added a lot of new features. One of the new features is added the [svgr](https://github.com/smooth-code/svgr) webpack loader to wrap SVGs in React components ... more


Tuesday, 2 October, 2018 UTC

react: Add Sass Support to Create React App 2.0

react: Add Sass Support to Create React App 2.0

[create-react-app version 2.0](https://reactjs.org/blog/2018/10/01/create-react-app-v2.html) added a lot of new features. One of the new features is support for [Sass](https://sass-lang.com/). If you start to use Sass, create-react-app will give you an ... more


Tuesday, 2 October, 2018 UTC

react: Use CSS Modules with Create React App 2.0

react: Use CSS Modules with Create React App 2.0

[create-react-app version 2.0](https://reactjs.org/blog/2018/10/01/create-react-app-v2.html) added a lot of new features. One of these features is to add CSS Module support. CSS Modules automatically scope class names and animation names local by default ... more


Friday, 28 September, 2018 UTC

node: Send a Text Message in Node.js with Twilio

node: Send a Text Message in Node.js with Twilio

In this lesson, you will learn how to send a text message in Node.js with Twilio's API. We will utilize Twilio's SMS API which allows us to send SMS to any number using an authorization token and a Twilio phone number. ... more


Tuesday, 18 September, 2018 UTC

react: Create a new project using the npm init <initializer> command

react: Create a new project using the npm init <initializer> command

Historically, the `npm init` command was solely use to create a new package.json file. However, as of npm version 6.1, you can now use a new feature of `npm init` called the . The initializer you provide will determine how your new application will be ... more


Thursday, 13 September, 2018 UTC

chrome: Create a Chrome Extension in 90 Seconds

chrome: Create a Chrome Extension in 90 Seconds

Creating a Chrome extension requires a `manifest.json` file which defines how your extension will behave. With a minimal setup, you can already manipulate pages and change elements. This lesson walks you through creating a `manifest.json` file which will ... more


Monday, 10 September, 2018 UTC

javascript: Flattening nested arrays: a little exercise in functional refactoring

javascript: Flattening nested arrays: a little exercise in functional refactoring

In this lesson we write an imperative function to flatten nested arrays, and then use the popular map, reduce, compose, and pipe functions to transform it into a high-level, point-free, functional implementation. ... more


Friday, 7 September, 2018 UTC

node: Provide Default Values for a Function with JavaScript Object Spread Operator

node: Provide Default Values for a Function with JavaScript Object Spread Operator

Learn how to use the JavaScript object spread operator to provide default values for a parameter passed to a function. ... more


Wednesday, 5 September, 2018 UTC

react: WTF is React?

react: WTF is React?

React is a JavaScript library that can be used to create complex user interfaces. Learn the basics of ReactJS, components, JSX, and how they are all used together with application state to output a tree of components to the browser DOM. ... more


Thursday, 23 August, 2018 UTC

[Course] aws: Develop a Serverless Backend using Node.js on AWS Lambda

[Course] aws: Develop a Serverless Backend using Node.js on AWS Lambda

The core of serverless architectures are auto-scaling systems and a pay-per-execution pricing. Two traits that allows developers to significantly reduce operational cost and complexity, by outsourcing infrastructure management to cloud providers and focus ... more


Tuesday, 21 August, 2018 UTC

jest: Automate your migration to Jest using codemods

jest: Automate your migration to Jest using codemods

[Jest](https://jestjs.io/) is a fantastic testing library, but maybe you've been putting off the switch because migrating all of your existing tests from another library seems like a daunting task. With [jest-codemods](https://www.npmjs.com/package/jest-codemods), ... more


Monday, 13 August, 2018 UTC

react: Spread Component Props in JSX with React

react: Spread Component Props in JSX with React

You often find duplication between the name of a prop and a variable you will assign to the prop. JSX allows you to spread an object containing your named props into your Component which enables you to avoid the repetition of matching prop names and variable ... more


Friday, 10 August, 2018 UTC

javascript: Write Tasks in Markdown with Maid

javascript: Write Tasks in Markdown with Maid

Maid enables you to write your tasks in Markdown. Create a `maidfile.md` or a `README.md` then add Headers to list out your tasks with codeblocks including the tasks to run. This lesson walks you through creating a few tasks in either a `maidfile.md` ... more


Wednesday, 8 August, 2018 UTC

react: Conditional JavaScript Callbacks with Reanimated in React Native

react: Conditional JavaScript Callbacks with Reanimated in React Native

In this lesson we'll explore how to setup a draggable circle. Then we'll dive into using the `call` method to create JavaScript callbacks whenever certain conditions are met inside of Reanimated. ... more


Tuesday, 7 August, 2018 UTC

[Course] css: Convert SCSS (Sass) to CSS-in-JS

[Course] css: Convert SCSS (Sass) to CSS-in-JS

CSS uses a global namespace for CSS Selectors that can easily result in style conflicts throughout your application when building an application using modern web components. You can avoid this problem by nesting CSS selectors or use a styling convention ... more


Tuesday, 7 August, 2018 UTC

gatsby: Create beautiful web typography with Typography.js in Gatsby

gatsby: Create beautiful web typography with Typography.js in Gatsby

Learn how to define typography styles for [Gatsby](https://www.gatsbyjs.org/) sites with [Typography.js](http://kyleamathews.github.io/typography.js/). You’ll learn how to setup Typography.js with Gatsby using [gatsby-plugin-typography](https://www.gatsbyjs.org/packages/gatsby-plugin-typography/), ... more


Friday, 3 August, 2018 UTC

algolia: Push JSON Data to an Algolia Index from the JavaScript Client

algolia: Push JSON Data to an Algolia Index from the JavaScript Client

We’ll load a simple JSON file containing 500 actors records from disk and push it to our Algolia index using the Javascript API client. ... more


Friday, 3 August, 2018 UTC

algolia: Set up the Algolia JavaScript Client

algolia: Set up the Algolia JavaScript Client

This will get you started on how to setup the Javascript API client of Algolia search solution. To follow along the video having a free Algolia account already setup will make things easier (but is not required). Once the client is setup we will test ... more


Wednesday, 25 July, 2018 UTC

javascript: Write Concise Data Transformations in JavaScript with Partial Application

javascript: Write Concise Data Transformations in JavaScript with Partial Application

In this lesson you will learn how to use partial application to eliminate boilerplate and customize data processing for concise and readable code. Partial application makes it easy to apply functional programming techniques like map, filter, and reduce ... more