DEV Community

loading...
Andrew Bridge profile picture

Andrew Bridge

404 bio not found

Joined Joined on  Github logo

All 27 comments

If (all) else is complicated, switch to switch?

Switches have the potential to be super powerful, the ability...

If (all) else is complicated, switch to switch?

I agree with your initial point, but not necessarily that swi...

JavaScript Interview Question #18: What's the sum of two booleans in JavaScript?

Not two booleans, but a standard for a sort handler I use is:...

How To Know If An Element Is Visible In Viewport.

I've found getBoundingClientRect can become an expensive call...

Native lazy-loading of images with zero Javascript

Probably worth mentioning that this is best used for images w...

JS: Check if an email is valid

Someone, somewhere makes heavy use of comments in email addre...

JS: Check if an email is valid

Haha, so even with 321 characters of regex it's not entirely ...

JS: Check if an email is valid

It's probably worth sharing this StackOverflow link: How to v...

You can't just migrate to Vue 3 (now)

Sorry that the upgrade to Vue 3 screwed your styles a bit, bu...

How to remove duplicates from JavaScript array

I'd imagine if you were using a Set from the start, and addin...

Create a 3D product landing page with ThreeJs and React

This is an interesting tutorial, using some exciting technolo...

Everything about RegEx and How to use it in JavaScript?

Really thorough run through of regex, such a useful feature o...

Make and publish a NodeJS CLI in 10 minutes!!

Nice! I find making Node CLIs to be a good way of keeping thi...

17 Javascript optimization tips to know in 2021 🚀

I agree, it reads nicely enough, but what's the benefit to th...

array.map(): A better way 🧐 ?

Don't let the vim enthusiasts hear that! You'll be stuck for ...

array.map(): A better way 🧐 ?

I think there's a balance to be struck in terms of maintainab...

How to share code snippets easily

I'd also like to know this. For any sort of web technology, C...

CSS Tips and Tricks #01

Nice! I didn't know you could change the caret colour! Will u...

17 Javascript optimization tips to know in 2021 🚀

There are some good tips here! I hadn't come across the numer...

10 Clean code examples (Javascript).

I think these are great easter eggs one might use for code go...

3 password REGEX for your next project

Others have provided far more detail as to why these regex pa...

CORS Hides Real Bugs

I'd be wary about using a browser with a flag named "disable ...

Moving from Mailchimp to Sendy

This is entirely untested, but MailChimp have a send campaign...

What is the difference between the <b> and <strong> tag?

The MDN docs for &lt;strong&gt; had a good section comparing ...

Moving from Mailchimp to Sendy

Were you unable to achieve what you wanted by integrating Mai...

4 reasons why you should use GraphQL over REST APIs

I understand that this is always touted as a big plus of Grap...

Optional handmade chaining 🤓

Always fun to work through these problems as a learning exper...

loading...