Design Decisions

in
My First Software Design

Background

Prefer
Dedicated Endpoints
over
Unified ones

/transaction/create

Vs.

/transaction/createExpense

/transaction/createIncome

/transaction/createTransfer

+

+

Pros

Cons

  • Might be more code replications
  • Reduce the complexity of program
  • Able to enforce stronger and more readable rules to the input

Soft Deletes, Not That Good

  • Add extra logic to the queries
  • Create unnecessary conflicts on key constraints
  • Give relatively small benefits compared to the drawbacks

Is Using ORMs a Good Idea?

GORM Vs. Prisma

Bonus!

DRY Vs. WET

Discuss!

My first software design

By whcwhc78

My first software design

  • 295