Skip to content

Latest commit

 

History

History
91 lines (78 loc) · 1.68 KB

common-mistakes.mdx

File metadata and controls

91 lines (78 loc) · 1.68 KB

import { Appear } from 'mdx-deck'

Common Mistakes


Use real dependency

  • Using real database
  • Slow unit test

Write unit test

after everything done

  • Big codebase
  • Difficult to refactor
  • Found unexpected bug

Use reflect.DeepEqual

instead of cmp.Diff

  • Only tell equality
  • Cannot spot the difference between 2 types
  • Prove it!

import { CodeSurferLayout, CodeSurferColumnLayout, Code, Step, } from "code-surfer";