Open in app

Sign in

Write

Sign in

Jamis Charles
Jamis Charles

505 Followers

Home

About

Aug 26, 2018

XSS aka HTML Injection Attack explained

Originally published at jamischarles.com. I’ve been doing web dev for about 10 years now, and I’ve always found the term XSS to be very fuzzy. I knew was a term related to JavaScript in security in the browser, and it’s usually demonstrated via alert(), usually passed by url params. Recently…

Security

5 min read

XSS aka HTML Injection Attack explained
XSS aka HTML Injection Attack explained
Security

5 min read


Aug 19, 2018

What is {…obj} in JS?

I remember first encountering this syntax several years ago when I started using Redux: This is the object spread operator, first introduced to JS in ES2018. As of this writing it’s available in Chrome, Node and a handful of mobile browsers. Before object spread Here’s how updated objects before spread in an immutable manner:

JavaScript

2 min read

What is {…obj} in JS?
What is {…obj} in JS?
JavaScript

2 min read


Aug 12, 2018

How to chain functions in JavaScript

Originally published at jamischarles.com. Here’s a question you’ll sometimes encounter in interviews: How do you write a chaining function similar to jQuery in JavaScript? The benefit is that we can mutate the same element with several method calls. The key detail is that each method call must return an object with methods we can call. Here’s how you do it:

JavaScript

1 min read

How to chain functions in JavaScript
How to chain functions in JavaScript
JavaScript

1 min read


Aug 5, 2018

tiny-redux: Writing Redux from scratch for learning

When I encounter a new piece of technology I always try to answer these questions first: What problem does this solve? Why would I need this? How would this fit into my existing stack? What’s the simplest way for me to try this out and get familiar with it? If…

React

2 min read

tiny-redux: Writing Redux from scratch for learning
tiny-redux: Writing Redux from scratch for learning
React

2 min read


Jul 29, 2018

What is Debouncing?

Debouncing is something that comes up fairly frequently in UI development. In the last few years I’ve encountered several interview questions where debouncing was the solution. So here’s a brief overview of debouncing. What is debouncing? Debouncing a function ensures that it doesn’t get called too frequently. Why debounce? What problem does it solve? Say you want to move a…

JavaScript

2 min read

What is Debouncing?
What is Debouncing?
JavaScript

2 min read


Jul 22, 2018

Redux without the boilerplate

I remember several years ago when I first heard Pete Hunt talk about React at a conference. What is this thing? Virtual dom? Everything in the same file? Seemed wild. Then about 6 months later, at my new job at PayPal I sat down and took an earnest look at…

React

3 min read

Redux without the boilerplate
Redux without the boilerplate
React

3 min read


Jul 14, 2018

What is a Test in JavaScript?

I remember watching a talk on testing JS by Christian Johansen, the author of https://www.tddjs.com/. I was just getting into testing JS and it was all still mystery to me. The moment he explained what an assertion is by writing an assert() function from scratch everything just clicked. I think…

JavaScript

2 min read

What is a Test in JavaScript?
What is a Test in JavaScript?
JavaScript

2 min read


Jul 8, 2018

Using import/export in node.js with esm

Originally published at jamischarles.com. When I started using node 6 years ago I took a quick liking to module loading in node. require() is pretty straightforward. You import with require() and export with module.exports. 2 years ago when I started using es6 import / export syntax on the client with…

JavaScript

2 min read

Using import/export in node.js with esm
Using import/export in node.js with esm
JavaScript

2 min read


Jul 1, 2018

Easily Share a React Native App during development

So I’m building a React Native app for a client, and I want to show him the progress I’m making. Luckily, by using Expo, its really easy to share your app during development. First, you’ll need to tell your client to download the expo client on their iOS or Android…

React Native

2 min read

Easily Share a React Native App during development
Easily Share a React Native App during development
React Native

2 min read


Jun 24, 2018

What is Middleware? A simple explanation.

Originally published at jamischarles.com. If you’ve used Ruby on Rails, Sinatra, Express.js or any other modern web framework, you’ve likely encountered the term Middleware. In this short post I’ll explain what middleware is, and how to write your own. Most of my explanation will be in the context of a…

JavaScript

4 min read

What is Middleware? A simple explanation.
What is Middleware? A simple explanation.
JavaScript

4 min read

Jamis Charles

Jamis Charles

505 Followers

UI Engineer at PayPal. @jamischarles — Questions to: Questions? https://github.com/jamischarles/ama -> Thoughts are my own. Blog at https://jamischarles.com.

Following
  • M.G. Siegler

    M.G. Siegler

  • Julie Zhuo

    Julie Zhuo

  • Dan Cederholm

    Dan Cederholm

  • Dion Almaer

    Dion Almaer

  • Ronald Chen

    Ronald Chen

See all (291)

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams