Skip to content
DevMeme
5622 of 7590
Databases Post #6169 · source on Telegram

The Foundational Off-By-One Error in Database Theory

Description

The image is a composite of two screenshots. The top part is a tweet from the user ANDREJ (@Andr3jH) which reads, "this is why no one takes computer \"science\" seriously." The word "science" is in quotation marks to express skepticism. Below the tweet is a screenshot of a Wikipedia article titled "Codd's 12 rules". The first sentence of the article's body text humorously states, "Codd's twelve rules[1] are a set of thirteen rules". This contradiction is the core of the joke. It highlights a famous piece of computer science trivia: Edgar F. Codd's foundational rules for relational databases are numbered 0 through 12, resulting in thirteen rules in total. This is a perfect, real-world example of an "off-by-one error," one of the most common types of bugs in programming, making the tweet's jab at the rigor of computer "science" particularly amusing to developers

Comments

24
Anonymous ★ Top Pick Codd's 12 rules are the original off-by-one error, the Genesis bug from which all our fence-posting sins descend. We're not bad at counting; we're just honoring a legacy system
  1. Anonymous ★ Top Pick

    Codd's 12 rules are the original off-by-one error, the Genesis bug from which all our fence-posting sins descend. We're not bad at counting; we're just honoring a legacy system

  2. Anonymous

    Codd’s “twelve” rules? Just the inevitable off-by-one when the theorists index from 0, the DBAs index from 1, and marketing rounds any backlog ≥12 down to a PowerPoint-friendly dozen

  3. Anonymous

    After 20 years in the industry, I've learned that Codd's Rule #0 is actually the most important one: 'For a system to qualify as a relational database management system, it must first confuse everyone about whether arrays start at 0 or 1.'

  4. Anonymous

    Ah yes, Codd's 12 rules - the database theory equivalent of 'there are 10 types of people in the world.' Nothing says 'rigorous academic discipline' quite like a foundational specification that can't count its own axioms. At least when we ship off-by-one errors to production, we have the decency to call them bugs rather than naming the entire framework after them. Though to be fair, Codd was just preparing us for the reality that every 'simple' database migration will inevitably require N+1 steps

  5. Anonymous

    Codd’s “12 rules” are thirteen - the bonus rule is the only one every RDBMS implements: ignore any subset of the other twelve and still market yourself as “relational.”

  6. Anonymous

    Codd's rules: Proving RDBMS foundations ship with schema drift right out of the gate

  7. Anonymous

    Classic RDBMS marketing: call them “12 rules,” ship 12/12 compliance, quietly ignore Rule 0 - the one that says you must actually be relational

  8. @Vas_Kis 2y

    Well, the countdown includes zero in programming smh

    1. @ZgGPuo8dZef58K6hxxGVj3Z2 2y

      Thats not correct

  9. @mpolovnev 2y

    1 story-point task might turn out to take 1 week 😄

  10. @nn_private 2y

    Array overflow

  11. @ZgGPuo8dZef58K6hxxGVj3Z2 2y

    Count will be 12 no mayter if you index from 0 or 1

  12. @ZgGPuo8dZef58K6hxxGVj3Z2 2y

    Basic math but ok

    1. @Vas_Kis 2y

      Well, yea

  13. @Vas_Kis 2y

    28

    1. @ZgGPuo8dZef58K6hxxGVj3Z2 2y

      Okay idk who but either me or you failed school

      1. @Vas_Kis 2y

        Oh ye, I forgot to multiply And it's still school holidays rn, so well

        1. @ZgGPuo8dZef58K6hxxGVj3Z2 2y

          💀

    2. @BuHoGPaD 2y

      Quick maths

      1. @ZgGPuo8dZef58K6hxxGVj3Z2 2y

        Pentium P5 800 Math

        1. @ZgGPuo8dZef58K6hxxGVj3Z2 2y

          Lore: it was recalled die to floating point inaccuracies

      2. @Vas_Kis 2y

        Ikr

  14. @AmindaEU 2y

    I think 28, but math isn't my cup of tea.

  15. @GioMetal 1y

    0 based, ez

Use J and K for navigation