Skip to main content
Home

Archive

Skip tag navigation

Share variables between JavaScript and CSS

Whether you need site breakpoints for matchMedia or access to theme colors, sharing values between your JavaScript and CSS is sometimes unavoidable. The easiest solution is to copy and paste values, but how can you ensure values stay synchronized when that brand blue color changes to indigo?

Read more of Share variables between JavaScript and CSS

How I write my posts

I’ve been posting a new article every day this month, and it’s been interesting. I’ll write about that soon, but today I want to share how I put these posts together. Hopefully, you’ll learn something new from my process, or see how terrible my process is and give me some advice.

Read more of How I write my posts

Understand the context of code you copy

If a problem is too difficult to solve on our own, sometimes the only course of action is to search, copy, and paste. It’s something all developers have done regardless of their experience level.

Read more of Understand the context of code you copy

How to get your pull request merged

When I started my first job as a professional developer, one of my biggest challenges was learning how to create helpful pull requests. I had been using git for a few years at that point, but my experience was limited to merging and pushing directly to the default remote branch. As a result, my first code reviews were fraught with answering questions, rewriting code, and (gulp) interactive rebasing.

Read more of How to get your pull request merged

Talk to your React components with custom events

I build pages with both React and non-React components, and sometimes all these components need to talk to each other. Examples include opening a React modal when a customer clicks a button or updating a text block when a customer adds a product from a React stepper. There are many ways to do this, but in my opinion, the best way is to use custom events.

Read more of Talk to your React components with custom events

Tips for vanilla JavaScript DOM manipulation

If you need to go au naturale with your JavaScript DOM manipulation, here are some tips for improving performance.

Read more of Tips for vanilla JavaScript DOM manipulation

11 podcasts for the frontend developer

I’m a huge fan of continuing education, and one of the ways I binge on information is through podcasts. Here’s a list of 11 podcasts that I find not only educational but entertaining as well.

Read more of 11 podcasts for the frontend developer

What is your code communicating?

Developers don’t write code for computers. I mean, we do, but not primarily. If we did, it would make no difference whether we wrote in Java, bytecode, or complete binary. Yet when given a choice, we write in abstractions because developers write code for other developers.

Read more of What is your code communicating?

How to avoid premature abstractions in React

As a junior developer, my number one problem was creating premature abstractions. Nowhere was this more evident than my React components.

Read more of How to avoid premature abstractions in React

← Older postsNewer posts →