Urgent.News

What's breaking now, across thousands of outlets.

Tech

The Validation Rule That Was Itself Invalid

I lost a save cycle last week to a bug that I now think is one of the most under-discussed failure modes in configurable systems: a validation rule that was itself incompletely configured. Not invalid data. An invalid rule . The setup If you have ever built or maintained a form builder, you know the shape. Forms are not code, they are data, arranged in a hierarchy that looks roughly like this:…

One of the most overlooked failure modes in configurable systems is a validation rule that is not fully configured. This issue occurs when a validation rule is incomplete, leading to a bug that is only discovered during the save cycle. The problem arises from a validation rule that is set to "Required" but has no sub-type selected.

This creates ambiguity for the system, as it cannot determine whether the rule is incomplete or if the author simply hasn't finished configuring it. The only way to distinguish between the two is during the save process, which can lead to a frustrating authoring experience. To avoid this issue, one could either restrict the validation rules to require a strictness, default to a safe option, or validate at the point of edit.

By addressing these configuration problems during the design phase, developers can save time and prevent errors from occurring during the save cycle.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

I built 100+ browser tools as a side project — here’s what I learned

I’ve been working on a side project called FroggoTools. It started pretty simply. I use small online tools all the time — calculators, converters, date utilities, generators, formatting tools, etc.

  • FroggoTools started as simple browser utilities with common annoyances.
  • Project expanded to over 100 tools, more engaging than expected.
  • SEO and distribution proved more challenging than development.

My MikroTik workaround for LaLiga Cloudflare blocks

Spain loves football. Spain also has plenty of people watching football on pirate streams. Those streams often sit behind Cloudflare, where one IP address can belong to a lot of completely unrelated…

  • Spanish pirates hide behind Cloudflare IP addresses, complicating LaLiga's removal efforts
  • MikroTik router configured to route Cloudflare traffic through VPN during matches
  • DNS monitoring script enabled VPN for blocked connections, preserving regular ISP access

More from Wednesday 23 September →