Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 16, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 16, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 16, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 16, 2025

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025

      Minecraft licensing robbed us of this controversial NFL schedule release video

      May 16, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The power of generators

      May 16, 2025
      Recent

      The power of generators

      May 16, 2025

      Simplify Factory Associations with Laravel’s UseFactory Attribute

      May 16, 2025

      This Week in Laravel: React Native, PhpStorm Junie, and more

      May 16, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025
      Recent

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»CodeSOD: Looks Guid to Me

    CodeSOD: Looks Guid to Me

    July 3, 2024

    Today, we have an interesting one. It’s not technically a Code SOD, because it doesn’t have any code. It isn’t quite a feature, because it doesn’t contain a story. It’s just some data, from a database table.

    But it does tell a story.

    Today’s anonymous submitter was browsing through the tables underlying a bit of enterprise software. One of the things which caught our submitter’s attention was that the MODULES table had a field MD_ID and a field MD_GUID. Now, it seems odd to have both. Ideally, each GUID is unique. Maybe it was some misguided ideas around how to optimize foreign keys? Maybe it didn’t start with GUIDs, and needed to retain the old column for backwards compatibility? There are many, logical reasons why it might be this way.

    Let’s look at the data.

    MD_ID
    MD_NAME
    MD_GUID
    MD_DESC

    0
    Defects
    {e1bb4b51-06e1-454e-8d75-83d6f7a38f42}
    Defects

    1
    Test Plan
    {fefeb3f5-81fd-472c-af4a-9bbf008f22f8}
    Test Plan

    2
    Test Lab
    {652b5c42-13e1-40d1-a319-7056c0171006}
    Test Lab

    3
    Requirements
    {409a58f0-73f6-46b9-a96c-e3851ed09825}
    Requirements

    4
    Dashboard
    {c67dcd3a-3968-44c9-baf3-a65c81bd329a}
    Dashboard

    5
    Components
    {df363e91-c0a6-465c-9ef4-820365957c2e}
    Business Components

    6
    Releases
    Releases module has no GUID
    Management

    7
    Models
    {74ce1ffb-6840-49da-b7e3-7e138e1851a1}
    Business Models

    8
    Libraries
    {e00fdc7f-174a-4b28-aced-f71e02058781}
    Libraries

    9
    Environments
    {80f6b6d7-c022-4306-9b6f-6a77774d8d5f}
    Environments

    This is more about the users than the data itself, but I really do enjoy that the description field provides no additional information, and in some cases makes the meaning of the name less clear.

    But the real special thing is obviously, that the Releases module has no GUID. This also tells us that the GUIDs are stored as strings, which is the wrong way to store a GUID.

    Is there a good reason why one module doesn’t get a GUID? Probably not. But it leaves us puzzling- why not just set one. It doesn’t matter! Why is this one special? Why do we break our unique identifiers by not treating them correctly?

    [Advertisement]
    ProGet’s got you covered with security and access controls on your NuGet feeds. Learn more.

    Source: Read More 

    Hostinger
    Facebook Twitter Reddit Email Copy Link
    Previous Articledoggo – command-line DNS client for humans
    Next Article This $40 Subscription Will Bring AI Into Your Business

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 17, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2024-47893 – VMware GPU Firmware Memory Disclosure

    May 17, 2025
    Leave A Reply Cancel Reply

    Hostinger

    Continue Reading

    CVE-2025-43554 – Substance3D Modeler – Out-of-Bounds Write Arbitrary Code Execution Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Engineering a Healthcare Analytics Center of Excellence (ACoE): A Strategic Framework for Innovation

    Development

    10 Steps for Dealing with Criticism (Free Download)

    Development

    Data Maturity Model: A Blueprint for Data-Driven Success 

    Development

    Highlights

    6 books engineers should read

    June 29, 2024

    Here are 6 books I’d buy every engineer who joins my team, if I ran…

    Black Myth: Wukong developers say optimizing for the Xbox Series S “would take years,” begging the question if the blockbuster action game will ever come to Xbox

    January 3, 2025

    Wifislax – Slackware-based live distribution

    May 4, 2025

    Skywings Marketing: Premier Digital Marketing Company in Laxmi Nagar

    April 24, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.