내 삶의 선택에 의문을 품게 만든 2가지 버그 (그리고 실제로 있었던 일)

작성자

카테고리:

← 피드로
DEV Community · Philip Damwanza · 2026-07-07 개발(SW)

Philip Damwanza

  1. The Ant That Refused to Take the Shortest Path

Building lem-in, my ant colony pathfinding project. The algorithm kept sending ants down a longer route when a shorter one clearly existed. I spent hours convinced my BFS logic was fundamentally flawed.

The real cause: My “shortest” path check was quietly comparing path lengths before removing duplicate edges. The path wasn’t actually shorter — it just looked shorter to a function that hadn’t finished doing its job yet.

  1. The Marketplace Listing That Vanished Into the Void

The setup: Uploading a product photo to Cloudinary on the marketplace project, and the listing would save successfully — but the image field was just… empty. No errors. No warnings. Nothing.

The real cause: I was awaiting the wrong variable. The upload was finishing fine; I was just asking a different, unrelated promise how it felt about it.

원문에서 계속 ↗

코멘트

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다