Authentication using JSON Web Tokens
Technology and applications have become a normal piece of everyday life. With that comes people wanting to protect their information, and their access to their various accounts. Authentication is a huge piece of web development and there are many approaches to secure a web application with authentication. Today we are going to explore JSON Web Tokens or JWT.
JWT is a simple and secure way of sending info between the client and the server. JWT uses an auth token that is composed of 3 parts, a header, a payload, and a signature.
A compilation of some core concepts from React
So what is React?
Why is React named “React” anyway?
When part of an input changes in React, the…
The basics of using fetch()
When building an application or website, more often than not you’re going to need to access outside data of all different types. The fetch() function is an abstracted form of multiple components used in AJAX.
AJAX does two things:
One of the first things you learn as a beginning developer is that DRY code is the best. DRY or Don’t Repeat Yourself is defined by Andy Hunt and Dave Thomas in their book The Pragmatic Programmer as,
“Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.”
DRY code is considered best practice in most cases (more on that later). Having clean code that isn't redundant makes your work easier to read, update, debug, and reuse. Seems like common sense right? DRY code makes life easier in a few ways:
Lesson 1: Imposter Syndrome
“One of these things is not like the other, one of these things just doesn’t belong…”
Any second now someone is going to realize that I don’t belong here, that I’m not qualified, that I have NO IDEA WHAT I’M DOING.
That might seem dramatic, but throughout my life and through a changing career path I’ve always had these thoughts. Thoughts that cause the inevitable procrastination, sleepless nights, and finishing just in the knick of time, as well as comparing myself to fellow peers, deeming them more successful than myself. As I got older it became…