Urgent.News

What's breaking now, across thousands of outlets.

Tech

Absolute Beginner Tips: CRUD Is a Template, Not the Law

One of my biggest struggles when I first started developing projects for my portfolio was understanding that CRUD was a template, not a law. I remember starting my first dashboards using the same basic structure everywhere: GetAll, GetById, Create, Update, and Delete. And honestly, there is nothing wrong with that. It's a great starting point. However, as I progressed through my projects, I…

The article "Absolute Beginner Tips: CRUD Is a Template, Not the Law" emphasizes that CRUD (Create, Read, Update, Delete) is a starting point, not a strict rule for all projects. The author shares personal experiences of initially following a generic CRUD structure but later realizing the need for more specific and optimized endpoints.

This shift allows for better performance, reduced data transfer, and more focused operations. The article provides practical examples of how to implement these changes, such as using DTOs (Data Transfer Objects) for lightweight responses and creating specialized update operations instead of relying on generic endpoints.

Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Mocking a Race Between Two Clients: A Deterministic Approach

Quick answer: A race between two clients happens when both act on the same resource and the result depends on whose request lands first, which is exactly what makes it hard to reproduce.

  • Mocking replaces timing randomness with deterministic responses
  • Assigns explicit latency to each step for predictable interleaving
  • Enforces version/ETag comparisons to reject stale writes

Make the code examples in your Docusaurus docs runnable, in 46 languages

Most docs have the same problem with code examples. The reader copies the snippet, opens a terminal or a playground in another tab, pastes it, fixes the indentation, and only then finds out what it…

  • Develop docusaurus-plugin-onlinecompiler to make code examples runnable in multiple languages
  • Supports 46 languages with sandbox execution on OnlineCompiler.io for each code run

More from Thursday 12 November →