Some months ago I was on Hacker News (as one does) and I ran across a (now deleted) article about not using
if statements. If you’re new to this idea (like I was), you’re in a for a real treat. Just search for “if statements” on Hacker News. You’ll get articles proposing that you might not need them, articles that refer to them as a code smell and even the quintessential “considered harmful.” Listen, you know a programming … Read article
The post In Defense of the Ternary Statement appeared first on CSS-Tricks.
I wanted to implement a notification message in one of my projects, similar to what you’d see in Google Docs while a document is saving. In other words, a message shows up indicating that the document is saving every time a change is made. Then, once the changes are saved, the message becomes: “All changes saved in Drive.”
Let’s take a look at how we might do that using a boolean value, but actually covering three possible states. This definitely … Read article
The post Undefined: The Third Boolean Value appeared first on CSS-Tricks.
On March 6, 2018, a new bug was added to the official Mozilla Firefox browser bug tracker. A developer had noticed an issue with Mozilla’s nightly build. The report noted that a 14-day weather forecast widget typically featured on a German website had all of a sudden broken and disappeared. Nothing on the site had changed, so the problem had to be with Firefox.
A screenshot of the bug report filed with Mozilla.
The problem, the developer noted in his … Read article
Browsers, thank heavens, take backward compatibility seriously.
The post A historical look at lowercase defaultstatus appeared first on CSS-Tricks.
There used to be a point where even the basic features of ES6 were rather experimental. … Read article
The post Differential Serving appeared first on CSS-Tricks.
I’ve blogged a little about Blazor, showing examples like Compiling C# to WASM with Mono and Blazor then Debugging .NET Source with Remote Debugging in Chrome DevTools as well as very early on asking questions like .NET and WebAssembly – Is this the fu…