Promises From The Ground Up
Josh W Comeau
by Josh W. Comeau
1M ago
The “Promises” API is a surprisingly tricky part of modern JavaScript. Without the right context, it doesn’t make much sense at all! In this tutorial, you’ll build an intuition for how Promises work by getting a deeper understanding of JavaScript and its limitations. Keep reading ..read more
Visit website
How To Center a Div
Josh W Comeau
by Josh W. Comeau
5M ago
Back in the day, centering an element was one of the trickiest things in CSS. As the language has evolved, we’ve been given lots of new tools we can use… But how do we pick the best option? When do we use Flexbox, or CSS Grid, or something else? Let's dig into it. Keep reading ..read more
Visit website
An Interactive Guide to CSS Grid
Josh W Comeau
by Josh W. Comeau
8M ago
CSS Grid is an incredibly powerful tool for building layouts on the web, but like all powerful tools, there's a significant learning curve. In this tutorial, we'll build a mental model for how CSS Grid works and how we can use it effectively. I'll share the biggest ? lightbulb moments I've had in my own learning journey. Keep reading ..read more
Visit website
Understanding the JavaScript Modulo Operator
Josh W Comeau
by Josh W. Comeau
11M ago
One of the most commonly-misunderstood operators is Modulo (%). In this tutorial, we'll unpack exactly what this little bugger does, and learn how it can help us solve practical problems. Keep reading ..read more
Visit website
Making Sense of React Server Components
Josh W Comeau
by Josh W. Comeau
11M ago
This year, the React team unveiled something they've been quietly researching for years: an official way to run React components exclusively on the server. This is a significant paradigm shift, and it's caused a whole lot of confusion in the React community. In this tutorial, we'll explore this new world, and build an intuition for how it works, and how we can take advantage of it. Keep reading ..read more
Visit website
The “const” Deception
Josh W Comeau
by Josh W. Comeau
1y ago
The “const” keyword in JavaScript is used to create constants, variables that can't change. Curiously, though, we do seem to be able to edit objects and arrays that are created using “const”. In this tutorial, we're going to dig into the incredibly-important distinction between “assignment” and “mutation” in JavaScript. Keep reading ..read more
Visit website
The End of Front-End Development
Josh W Comeau
by Josh W. Comeau
1y ago
Large language models like GPT-4 are becoming increasingly capable, at an alarming rate. Within a couple of years, we won't need developers any more! …Or at least, that's the narrative going viral on Twitter. I'm much more optimistic about what these AI advancements mean for the future of software development. Keep reading ..read more
Visit website
Common Beginner Mistakes with React
Josh W Comeau
by Josh W. Comeau
1y ago
I used to teach React at a local coding bootcamp, and I noticed that students kept getting tripped up by the same handful of things. In this article, we're going to go through 9 of the most dastardly gotchas. I'll show you how to solve these common problems, so you can avoid a lot of potential frustration! Keep reading ..read more
Visit website
Data Binding in React
Josh W Comeau
by Josh W. Comeau
1y ago
As developers, we don't like working with forms, but they're a critical part of most web applications! In this tutorial, you'll learn exactly how to wire up all of the different form controls in React. Never forget how to data-bind a checkbox or radio button again! Keep reading ..read more
Visit website
Clever Code Considered Harmful
Josh W Comeau
by Josh W. Comeau
1y ago
As engineers, it can be really satisfying for us to implement clever, terse solutions to problems, relying on advanced tricks and techniques. As a result, we often write code that is hostile and inaccessible to the junior folks on our team. This article makes the case that we should strive to write simple, accessible code, using the dumb old primitives that everyone knows. Keep reading ..read more
Visit website

Follow Josh W Comeau on FeedSpot

Continue with Google
Continue with Apple
OR