Software Engineering in Web Development, Backend Services, and More

Author: Tom (Page 327 of 430)

Resolving “Invalid Regular Expression Flag” in JavaScript

Thanks to modern browsers, writing cross-browser compatible JavaScript isn’t nearly as difficult as it was even just a few years ago; however, there are still times when you get cryptic error messages such as “invalid regular expression flag.”

Just as Jamie Zawinski said:

Some people, when confronted with a problem, think “I know, I’ll use regular expressions.” Now they have two problems.

It’s funny because it’s true, right? But we still have regular expressions, they’re still powerful, and we still use them.

Unfortunately, there are still times in which they can plague us when working with JavaScript, string replacement, and modern web browsers.

Continue reading

Press Start: Summer Blogging Bootcamp

Last week, we held our first Press Start event at the office and had an awesome time of hanging out and meeting other bloggers, sharing various ideas about how to actually maintain a blog, and generally getting some writing done.

In fact, we collectively wrote over 30 posts in a single hour.

But now that summer is in full swing, we’ve got a list of events planned for the upcoming season the first of which is geared towards those of you who are looking to go from nothing to something in one day.

We’re going to cover how to setup and configure your blog as well as talk through some strategies to help you get to publishing quickly.

Continue reading

How To Have WordPress Check if a User Exists

When it comes to building web applications, I’m a fan of letting a user use their email as their primary login – in fact, I’d go as far as to say that I wish our email was our primary identity: They are unique, it’s a single thing to remember, and we all must have them in order to get online these days.

To that end, whenever I’m working on an application that requires a username and password, I always default to using the email address for the user’s identification. Everything else can be managed in a profile setting, right?

If you’re building an application in WordPress where you’re building custom registration mechanisms through your own views, validation, and so on, you may find yourself needing to check to see if a user already exists.

And if you – like me – often use email as the user name, there’s a really easy way to perform this check.

Continue reading

Go Ahead and Admit Your Mistakes

Arguably, one of the easiest observations to make about the development community is that we’re not exactly the best at admitting our mistakes. Admitting our mistakes is akin to admitting that we were wrong or that we didn’t know what we were doing and no one likes to do that.

Naturally, right?

It’s human nature to want to showcase our successes and mask our failures, but the truth is that no one has any success without actually failing (and likely several times over at that).

Lame.

Unfortunately, I think that developers may be more notorious than others for this. We’re good at criticism, trolling, and flat out demeaning other people’s work, but we’re not so good at accepting it when it comes back around to us.

Although this is may be a bit idealistic, it shouldn’t be that way.

Continue reading

My Day-To-Day: Inbox Zero, Revisited

A couple of months ago, I shared my strategy for trying to get to inbox zero. In short, I mentioned the following points:

  • I think that trying to get to inbox zero is a myth at worst, and a slippery slope at best
  • I outlined my strategy for dealing with email on a daily basis
  • I talk about the software I use as well as various things such as newsletters, after hours, etc.

Since that post, I’ve changed up my strategy a little bit and since email seems to be a common issue for everyone with – well, y’know – an inbox, I thought I’d share what I’m currently doing to manage my inbox.

Continue reading

« Older posts Newer posts »

© 2026 Tom McFarlin

Theme by Anders NorenUp ↑