Parker Codes
banner
parker-codes.dev
Parker Codes
@parker-codes.dev
Code Wizard • Director of Technology • Statecharts • a11y • UX Design • Architecture • Security • Proud Father of 3
Thoughts on @tailwindcss.com syntax for the new if() function support?
July 8, 2025 at 5:53 PM
These are my go-to desk snacks.

For me, they meet the sweet spot of tasty yet somewhat healthy, and I only need to have small portions.

Eating a full meal can cause me to feel drowsy, but if I pair these with lots of water and some short breaks from the screen, I'm golden!
April 30, 2025 at 6:33 PM
Latest Blog Post: Make Real Friends

parker-codes.dev/blog/make-re...
December 31, 2024 at 8:15 PM
Oh, no. ChatGPT is now asking me to do things before it answers?!
December 16, 2024 at 10:02 PM
New blog post: Top Tips for Freelance and Agency Developers: Hourly Billing and Beyond

parker-codes.dev/blog/freelan...
December 14, 2024 at 7:02 PM
Answer: Every condition is evaluated, even if the first false would do the trick.

Instead, we can utilize functions to keep the code readable.

A simple trick would be to use inline functions, only adding a few characters per line, and then call those functions like so:
December 4, 2024 at 5:53 PM
Code performance tip:

In programming, "short-circuit evaluation" refers to how logical operators like && and || evaluate from left to right and stop as soon as the result is determined.

Do you see what could be slow about this code?
December 4, 2024 at 5:53 PM
Here's an example of using :not(:has(*)) in @css instead of the :empty pseudo-selector, because that one doesn't work if there is any markup inside such as an empty HTML comment..
November 14, 2024 at 1:23 AM
Back before Father's Day, I made this Yes/No Button for any of you with kids who are Bluey fans (sound on):

yes-no.parker-codes.dev
November 4, 2024 at 9:40 PM