-
One-Armed Programming
For years, I’ve been saying that *knock on wood* … I’ve never had any kind of RSI. That’s no longer true. I have Cubital Tunnel Syndrome. Cubital Tunnel Syndrome affects the ring- and little- fingers and the severity can range from some slight tingling to extreme pain and near paralysis of these fingers. Unfortunately, I […]
-
How to really check with JavaScript if CSS failed to load from a CDN
I want to load a third-party CSS stylesheet from a CDN, but I’m concerned how it will affect my site if the CDN goes down. How do I use JavaScript to check if a CSS file has loaded so I can load a local fallback instead? This can’t be a new idea. I can get […]
-
Should We Avoid Ternary Operators?
I recently read a Facebook post which suggested it was better to use a ternary operator instead of an if…else statement whenever the result would be a single line of code. That doesn’t seem right. I’ve noticed this trend toward shorter, smaller code, and I understand the appeal. If I can do in one line […]