JavaScript

How to Build Your Own Slack Bot Integration with Node.js

How to Build Your Own Slack Bot Integration with Node.js

It’s always nice to have a friend who can help you out once in a while. It’s even nicer to have a friend who can help you out 24 hours a day, who never gets tired or bored or sick, who is focused 100% on helping you do what you need to do. Slackbots can be such friends for you. Setting up a slackbot is easy, and we will show you how to build your own helpful slackbot in 7 simple steps: Get your Slack API Key Add a New “Bot User” Setup Your Project Import Dependencies Handle...

Common Lodash Functions

Common Lodash Functions

While writing your javascript applications you might find yourself implementing the same patterns over and over to work with arrays and objects. Some of these patterns you commonly encounter include looping over data to manipulate each item, filtering and sorting data based on specific criteria, and finding differences and commonality between multiple sets of data. Instead of writing these workflows from scratch you might want to try a utility library such as lodash. Lodash is a modern javascript utility library that provides excellent features for working with arrays, objects, and collections. Here is a list of the common functions I...

Atom TypeScript Demo ft. Webpack

Atom TypeScript Demo ft. Webpack

In this article we're going to explore some of the main benefits of TypeScript first hand, as we set up a simple TypeScript Demo with Atom and Webpack. I'm a sufferer of what is called Javascript Tool Fatigue. I started to feel the pain while learning React / ES6 / JSX / Babel / Webpack. Now, as a result, I am kind of reluctant to hop on the latest JS hype bandwagons. However, after listening to the latest JSJ on TypeScript, I decided to give TypeScript a Saturday morning hack session. They mentioned on the podcast that adding TypeScript in to an existing webpack...

Concatenate & Minify Javascript with Gulp, Improve Site Performance

Concatenate & Minify Javascript with Gulp, Improve Site Performance

This tutorial is part of a series on Gulp: Getting Started with Gulp Javascript Task Runner Compiling SASS/SCSS to CSS with Gulp Concatenate & Minify Javascript with Gulp, Improve Site Performance When building large web applications, you'll find that your app may require LOTS of javascript files. Numerous requests for large files can slow site performance. With Gulp, we can improve the overall performance of our sites and applications by minifying our javascript to reduce the file size and concatenating our files to reduce the number of file requests. (If you need help installing Gulp, go back and read...