{"slug": "the-joy-of-old-school-coding-after-a-stupid-mistake", "title": "The Joy of Old-School Coding After a Stupid Mistake", "summary": "A developer recounts debugging an Entity Framework Core mapping error, where a one-to-one relationship was incorrectly mapped using a collection, and only integration tests caught the issue. The developer initially considered using AI tools like Copilot but resolved the problem with a one-line code change, reflecting on the satisfaction of old-school debugging.", "body_md": "The other day, it happened again.\n\nI had an error message that [made me scratch my head](https://canro91.github.io/2025/12/09/Debugging).\n\nFor a moment, I thought, *\"God, why am I doing this? I should start a garden or something.\"*\n\nI copy-pasted the error message into Google.\n\nStackOverflow didn't help that much.\n\nI was [tempted to go to Copilot](https://canro91.github.io/2025/07/13/TheProblemWithAI).\n\nBut I held my horses.\n\nA few moments later, *\"Oooohh, here it is!\"*\n\nA one-line code change fixed it.\n\nStupid Entity Framework Core!\n\nI was in a rush a few days before and I missed a small detail:\n\nI used a collection to [map a one-to-one relationship](https://canro91.github.io/2026/03/11/OneToOne).\n\nSimple! I know. Only integration tests caught it.\n\nFor a moment, an error message made me want to quit.\n\nA second later, I was back in the game.\n\nYet again. For the nth time.\n\nI guess AI doesn't give you that feeling—or does it?\n\n*Whether you code the old way or with AI, check out Street-Smart Coding—It covers debugging, testing, and many 28 more lessons to help you code like a pro.*", "url": "https://wpnews.pro/news/the-joy-of-old-school-coding-after-a-stupid-mistake", "canonical_source": "https://dev.to/canro91/the-joy-of-old-school-coding-after-a-stupid-mistake-36mb", "published_at": "2026-08-24 05:00:00+00:00", "updated_at": "2026-08-24 05:14:30.836844+00:00", "lang": "en", "topics": ["developer-tools"], "entities": ["Entity Framework Core", "Copilot", "StackOverflow"], "alternates": {"html": "https://wpnews.pro/news/the-joy-of-old-school-coding-after-a-stupid-mistake", "markdown": "https://wpnews.pro/news/the-joy-of-old-school-coding-after-a-stupid-mistake.md", "text": "https://wpnews.pro/news/the-joy-of-old-school-coding-after-a-stupid-mistake.txt", "jsonld": "https://wpnews.pro/news/the-joy-of-old-school-coding-after-a-stupid-mistake.jsonld"}}