Amani Mavu web development blog and tutorials

2
posts

Using JSONC

September 02, 2026

If you’ve ever inherited a huge JSON config and wondered “why is this like this?”, JSONC is the missing piece. JSONC (JSON with Comments) lets you document intent right next to the settings—making large configs easier to understand, review, and safely change. In this post, I’ll explain what JSONC is, how it works in practice, and where you’ve probably already seen it... read more

Vacuous Truth in JS

August 22, 2025

While testing a permissions function, I discovered something curious about Array.prototype.every. It checks if all items satisfy a condition, returning false if any don’t and true if they all do. But with an empty array, it still returns true. This is explained by vacuous truth: since no items exist, there are no counterexamples to disprove the condition.... read more

  • All
  • Configuration
  • Documentation
  • JavaScript

Amani Mavu web development blog and tutorials

2
posts

Using JSONC

September 02, 2026

If you’ve ever inherited a huge JSON config and wondered “why is this like this?”, JSONC is the missing piece. JSONC (JSON with Comments) lets you document intent right next to the settings—making large configs easier to understand, review, and safely change. In this post, I’ll explain what JSONC is, how it works in practice, and where you’ve probably already seen it... read more

Vacuous Truth in JS

August 22, 2025

While testing a permissions function, I discovered something curious about Array.prototype.every. It checks if all items satisfy a condition, returning false if any don’t and true if they all do. But with an empty array, it still returns true. This is explained by vacuous truth: since no items exist, there are no counterexamples to disprove the condition.... read more

  • All
  • Configuration
  • Documentation
  • JavaScript