Upgrade to Pro — share decks privately, control downloads, hide ads and more …

jest introduction

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →
Ryota Matsunaga
February 01, 2021
300

jest introduction

Ryota Matsunaga

February 01, 2021

Transcript

9 slides
  1. 変数名に情報を詰め込む • Get ではなくfetchやdownload など明確な単語を使う • Temp, returnVal, val, x,

    yなどは避ける • 変数名のフォーマット • 限界値を含める時はmin, maxを使う • 範囲を指定する時はfirst、lastを使う • ブール値ではis、hasを使う (マンション) https://github.com/geo-logic/geologic-admin/pull/1580