Search by

    Logic Design Process.

    created_at:June 25, 2022

    updated_at:June 25, 2022

    Today, I am going to explain logic design process.

    Purposes of this article creation

    • To be able to create DB tables in MySQL in Ruby on Rails on my own.
    • To be able to do logic design.

    Logic Design Process

    In this case, I will create logical data model for a SNS task management application on Cacoo as a deliverable.

    【What is Logic Design?】

    • This is performed in order to assume execution in a real system and to avoid database-induced failures.
    • Finally, table structures are created from the logical data model.

    【Logic Design Process】

    • 1.Create CRUD Matrix(CRUD Analysis)
    • 2.Create Decision tables
    • 3.Code Design

    - Thinking about Data Migration(Data Transition) - Security Design

    ※Procedures 1 and 2 above are performed to ensure the logicality of the data life cycle.

    ※「Thinking about Data Migration(Data Transition)」&「Security Design」 will be summarized in a separate articles.

    1. Create CRUD Matrix(CRUD Analysis)

    • Analyze which tables are used at which stages of the system to ensure that there are no inconsistencies in the data life cycle.
    • It can also be used to estimate the number of table accesses.

    ※Not included in this time.

    2. Create Decision tables

    • A table that maps system conditions to execution results.
    • It contrasts conditions and processes and describes complex conditional judgment.

    ※Not included in this time.

    3. Code Design

    Design an appropriate code system for the data to increase development efficiency and maintainability of the system so that it can be used for a long period of time.

    【Merits of Code Design】

    • Easier team development.
    • Improved software maintainability.

    【Types of codes used in code design(Example)】

    • Sequence Code (Sequential Code)
      • Codes that assign consecutive numbers in sequence (sometimes called sequential codes).
    • Block Code (Division Code)
      • Codes in which the upper digits are divided into several blocks and sequential numbers are assigned within the blocks.
    • Digit-by-digit Code
      • A code in which each digit of a code is combined with a meaning.
    • Mnemonic Code
      • A code expressed by inserting letters, numbers, or symbols such as abbreviations that represent information in the code.
    • Decimal Code
      • A code in which data is divided into 10 parts from 0 to 9 according to the principle of decimal numbers, and the partitioning is repeated for lower groups of data in the same manner.

    【Creation of code design documents】 ※Not included in this time.

    Deliverables(Logical Data Model)

    • URL:※Not included in this time.


    [Logic Design]

    [Code Design]

    Word Explanation

    【About Conceptual, Logical, and Physical Data Models】

    [Conceptual Data Model] A data model that is independent of the means of implementation and describes the data required by the company and the relationships among the data.

    [Logical Data Model] A data model that describes the structure of the data (data structure of the conceptual data model) organized according to the DBMS.

    [Physical Data Model] A data model that describes the structure organized to physically store (the data structure of the logical data model).

    Summary/What I learned this time


    © 2022, rubicon44TechBlog All rights reserved.