A while ago, when I was still in Flatiron, I wrote a blog about fetch(). For a while, fetch was how I always communicated with servers using the HTTP protocol. Writing all the boilerplate code came naturally for me and I didn’t think much of how else I would be…

Redux is a powerful state management tool that makes it a lot easier to access data between different functions

Before I get into this blog, I want to first say that in order to understand what’s going on here, you have to have a grasp on how state works. State…

If you worked with JavaScript, Node, React, etc. and used npm (Node Package Manager) at all, you may have noticed a file generated in the root of your project’s directory called package.json.Clicking into it will reveal a whole bunch of information about your current project like the name, description, author…

Bit of a mouthful, isn’t it? If you read the blog last week, you’ll see that I talked about SSH and that it’s a type of protocol. I also briefly explained that a protocol is a “sort of language that allows machines to talk to each other.” …

Ever think about how free and open the Internet is sometimes? All this information going back and forth at such a rapid pace, used for things like running the world’s most powerful financial firms to letting you watch The Mandalorian on demand (Season 2 hype!). While all this information flows…

I don’t need to to tell you how annoying dealing with a bug is. You write out some code that you’ve written a hundred times before, you’re certain it’ll work and then BAM, you got some funky data coming through this function you built or your entire application straight up…

You may have seen the term “.NET” floating around when reading up on all things software engineering. If you’re like me, you have no idea what it even is and may vaguely recall certain applications you downloaded onto your computer requiring something called “Microsoft .NET Framework” to be installed as…

Surely you’ve heard of how often there are data breaches on websites. Millions of users could have sensitive information compromised and as a result may get their accounts hacked, personal information revealed, or even worse. Websites like haveibeenpwned.com keep track of data breaches and let you know whether your information…

Last week, I went over what Middleware and what different types of middleware may be used for. I left off on a note about authorization and included a code snippet. Let’s take a look at that code snippet now:

As I’ve mentioned, this code snippet checks for a token to…

Working in backend will almost certainly means that you’ve implemented some sort of middleware and probably have not even known it. Middleware is pretty much anything that happens in between the server receiving a request and the server sending out a response. Here’s a code snippet using a MERN stack:

MIDDLEWARE!!!

Radouane Bahi

Software engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store