Urgent.News

What's breaking now, across thousands of outlets.

Tech

Three tiny CSV fixtures that catch different importer mistakes

A well-formed CSV can still carry the wrong meaning for your importer. Here are three fictional inputs, with explicit expectations, that you can copy into a test suite without uploading any customer data. An identifier is a string id,postal_code 0007,00123 Expected cells: ["0007", "00123"] . If your application converts both values to integers, it has changed the identifiers. Whether to convert a…

One additional test case that has identified an importer bug in the reporter's suite involves a repeating ID. The CSV input is:

id,name

001,Ada

001,Jan

According to the CSV specification, an importer should fail this test case since the IDs are repeated. However, a tolerant importer that silently overwrites the previous record with the last occurrence of the ID could parse this as:

id,name

001,Jan

This behavior may appear correct at first glance, but it represents a business decision that should be explicitly stated in the importer's test suite. Recording the input's encoding and delimiter alongside each fixture aids in diagnosing the issue. While the CSV itself is technically valid, the importer's handling of the duplicate ID does not align with its intended purpose or the data's accuracy.

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

Recaller

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend What I Built I built Recaller — an ultra-minimalist, sophisticated dual-tone black and white web application designed…

  • Recaller is an ultra-minimalist web app for deep focus and memory
  • Combines Pomodoro clock, 3D flashcards, and quizzes into one interface
  • Built for Alex, a student struggling with fragmented study tools

Introducing Pathfinder_Engine 1.0: Simplifying Navigation Logic

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend Hacktoberfest 2026 Contribution As part of the #hf26challenge, I am thrilled to showcase Pathfinder_Engine 1.0.

  • PathfinderEngine 1.0 simplifies navigation logic for developers.
  • Engine uses A and Dijkstra algorithms for optimal path calculation.
  • Community invited to refine algorithms and contribute to routing tools.

Publishing 20 files at once with no GitHub token

I needed to update 20+ files in a GitHub repo. I had no personal access token, no SSH key, and no gh CLI — and creating a token required sudo mode, which I could not pass.

  • Reporter updated 20 files in GitHub repository without token
  • Web UI allowed 20 files to be uploaded in single commit
  • Recommended uploading changed files for efficiency

More from Sunday 4 October →