← Back to Difficulty Selection

Code Review (Easy): Refining Metric Inputs

Story

Mark Patel was updating the shared utility library at ReviewThat Labs to better handle the various ways developers input performance metrics into the dashboard. Eva Harrington pointed out that the previous version was too strict, failing on valid shorthand like trailing decimals or scientific notation used for high-frequency data. Mark is now refining the logic to ensure that inputs like "-123.456e789" pass through smoothly, while clearly broken entries like "95a54e53" are caught and rejected. This update will help the team reuse the same validation logic across all their internal monitoring tools.

Your Task

Read the story and code, then decide if the code is ready for production or needs improvement.

Hints

What would block an approval? Give me a hint.

Next

Check out Next Topic: The Layout Validator

Cookies help us track your progress - nothing extra.