The OOP/markup syntax purity test

I don’t actually hate AI, despite the last thing I wrote.

The rate at which it consumes natural resources is horrifying, but honest when it’s 4:58pm and I need to finish a block of code, I start thinking about how I’m going going to walk to the grocery store (maybe) and cook my own dinner vs having it delivered (probably) and compost the scraps (usually) and that offsets the CPU burn, right? Probably? Maybe?

Anyway. I’m on LinkedIn, and I belong to some number of WordPress groups, and I see content like this a lot.

And, it’s like, who cares? The syntax in every language and framework I use (javascript, jQuery, CSS, PHP, WordPress, name your API) is inconsistent and easily referenced, and at this point if you aren’t using an AI copilot to write these queries, you’re wasting your time and your client’s money.

Quiz: which of the below code statements is the correct function to fetch and display a WordPress post's featured image?

At this point, people who write their own regexes and SQL queries are the same kind of people who whip cream with a whisk, or do long division by hand.

Posted in Dev