Urgent.News

What's breaking now, across thousands of outlets.

Tech

Mistake 1: Skipping the Docs (Spoiler: They’re Goated)

As a rookie starting in software development, especially in the age of AI, I could easily skip the learning phase and jump straight into building. But my experience during my undergraduate years taught me something: shaky foundations and an inadequate understanding of the tools you're working with will eventually come back to bite you — sometimes in ways you least expect. After setting up my…

In the world of software development, particularly in the age of AI, it is easy to overlook the importance of foundational knowledge. This was a lesson learned by a rookie developer who, after setting up their development environment and database design, decided to jump straight into building their project. However, this decision led to a series of issues that could have been easily avoided with a better understanding of the tools they were working with.

The developer initialized Prisma 8 in their DMS project, assuming that it would correctly generate the necessary folder structure. However, Prisma 8 initially generated the Prisma directory inside the src/ folder, which went against their intended setup. Instead of recognizing this discrepancy, the developer moved the Prisma directory to the project root, believing everything was fine and continuing to write their database models in contract.prisma.

This seemingly innocuous action had far-reaching consequences. Two major issues arose from this incorrect folder structure. Firstly, the NestJS compilation error occurred because a TypeScript file was placed outside the directory covered by the TypeScript compilation configuration. Secondly, Prisma was unable to locate the schema in the expected location, causing subsequent Prisma commands to fail.

These problems stemmed from the developer's failure to fully comprehend how Prisma's configuration and NestJS's compilation setup interacted. By changing the folder structure without a proper understanding of the underlying mechanisms, they inadvertently created these issues. The AI tool, ChatGPT, did suggest folder structures and database models, but without the necessary context about the project setup, its suggestions were misleading and unsuitable.

The developer recognized that AI is only as good as the person using it. They understood that blindly accepting AI's suggestions could lead to problems, especially when working with new versions of tools like Prisma. Reading through the Prisma 8 documentation proved invaluable in resolving these issues and tackling subsequent problems, including cases where AI suggested Prisma ORM queries based on outdated versions.

While documentation may not always be the most exciting read, it can often be the most essential. In this case, the developer's experience serves as a reminder that building a solid foundation in the tools and technologies one works with is crucial. It highlights the importance of not solely relying on AI suggestions but rather understanding the underlying principles and seeking guidance from reliable sources like documentation.

This lesson learned will undoubtedly help the developer navigate future projects with greater confidence and avoid similar pitfalls.

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

Lịch Sử Của Java

Java được phát triển bởi Sun Microsystems (hiện là công ty con của Oracle) vào năm 1995. James Gosling được mệnh danh là cha đẻ của Java. Trước Java, tên của nó là Oak.

  • Java developed by James Gosling at Sun Microsystems in 1995
  • Named Java after Oak tree, replaced due to copyright issue
  • Released in 1995 with Write Once, Run Anywhere feature

Did Pakistan Air Force Bomb Yemen?

Pakistan’s Ministry of Information and Broadcasting has rejected claims that Pakistan Air Force (PAF) aircraft were used against Yemen’s Houthi … Read More The post Did Pakistan Air Force Bomb Yemen?

Laravel 13.35: New QUERY Routes, Smarter Model Defaults & Queue Improvements

🚀 Laravel 13.35: New QUERY Routes, Smarter Model Defaults & Queue Improvements Laravel continues its rapid release cycle with Laravel 13.35 , released on October 7, 2026.

  • New Route::query() method allows HTTP QUERY routes registration
  • Eloquent model defaults() method calculates dynamic default attributes
  • Queue workers support percentage-based memory limits for flexibility

Reading the CVSS 7.1 Score for CVE-2025-38680: Local, Low Complexity, High Confidentiality Impact

Reading the CVSS 7.1 Score for CVE-2025-38680: Local, Low Complexity, High Confidentiality Impact Vulnerability overview CVE-2025-38680 is a Linux kernel out-of-bounds read in the USB Video Class…

  • CVE-2025-38680 affects Linux kernel due to out-of-bounds read in USB Video Class driver.
  • NVD assigns high severity score of 7.1 based on CVSS 3.1.
  • Local attacker can exploit vulnerability with low attack complexity and privileges.

More from Friday 9 October →