Quick Tip: Check User’s Browser With JavaScript

You’d think in 2018 we’d have a standard way to do browser detection or that the majority of browsers would handle standard idiosyncracies around CSS properly.

But here we are, and it’s still not happening.

This means that when it comes to working with JavaScript, we still may have to do a bit of browser sniffing to determine which browser it is with which we’re working.

Don’t get me wrong: It’s not as bad as it used to be, but there are times in which I’ve recently encountered errors with Chrome and Firefox, specifically.

Read More

Setting Up a 2017 MacBook Pro for WordPress Development

Last Thursday was rough. If I were to explain everything that went down both with my computer and my personal life, you’d think I was making the whole thing up.

It’d be like the adult equivalent of “my dog ate [the last month of] my homework.” Or something like that.

First, as far as my personal life is concerned, this has nothing to do with the well-being of my family. Just a local debacle of waiting two hours during the workday to get something handled. Irrelevant other than, you know, taking a hefty chunk out of a workday.

Secondly, the computer stuff can all be summed up easily: There was a completely pathetic series of unfortunate events that led to its demise. Essentially, “I killed the car.

Setting Up a 2017 MacBook Pro for WordPress Development

So I had to order a replacement in short order (which is not something I wanted to do), had to have to delivered the next day before noon (which is not something I like to pay for) nor is it something that I had planned as a business expense for at least another year or two.

But here we are.

And this leads me to write this post: It’s a walkthrough of the process I follow and of the applications I install whenever setting up a new machine and how I configure it.

It’s not going to be incredibly detailed, but it’s a starting place for if this ever happens again or for any developer looking to set up a new machine or repurpose an existing machine.

Read More

WordPress Blogs You Follow Regularly…?

This weekend, I got a message from a fellow WordPress-developer whom I highly respect. In the note, Mario asked:

I was curious, do you follow other WP bloggers or have a go-to list for people still actively writing?

Which is a good question because, to be honest, there aren’t that many people I know in WordPress who blog regularly.

WordPress Blogs You Follow Regularly (If Any)

This isn’t to say there aren’t a lot of people in WordPress who are active on Twitter or actively sharing their stuff on other channels like GitHub, Slack, newsletters, etc., but there aren’t many people who are actively writing on their blogs.

And maybe it’s weird, maybe it’s not, but I’d assume that those involved in WordPress development of some sort would occasionally write on some place on the web.

Read More

Hitting Pause on Publish

Whenever there are holidays, I still publish a post about what’s going on simply because this blog has become a little more than just a place to talk about code. It’s also a place where I very occasionally share what is happening offline.

This week, my wife and I are finally taking a week-long trip with our daughters.

And we’re stoked.

Read More

How to Create a Zip File With Excluded Files and Directories

Whenever we’re working on a project that requires some custom functionality, we still try to abide by the whole themes-are-for-presentation and plugins-are-for-functionality even if it’s not something that has any use outside of our projects.

This doesn’t mean we don’t use source control or anything like that, but it’s just that not everything that is open-source by its license is available for download because it has no applicability outside of a niche use case.

But that’s a discussion for another time.

All I’m saying is that even though we may be working on something just for us, we don’t abandon good development practices.

And there are times, say, where we may be sharing files, source code, or something via Slack that is not yet ready to either commit or to share any other way. In times like that, it’s helpful to be able to create a zip file, right?

Slack: Sharing a plugin without source control.

But sometimes, we need to create a zip file with excluded files.

Read More