Measuring goals

Ever heard of S.M.A.R.T. goals? The S.M.A.R.T. stands for:

  • Specific
  • Measurable
  • Actionable
  • Relevant
  • Time-bound

You can read more about setting goals here. For now, let’s focus on the measurable part of goals. In JavaScript, if I wanted to define a goal object as measurable, I could write this:

const myGoal = {
  description: 'Write blog',
  isMeasurable: true
};

While that technically works, that wouldn’t be very helpful since I need some sort of way to measure it — a unit of measurement.

const mySmartGoal = {
  description: 'Write blog',
  unitOfMeasurement: '1 post'
}

That makes sense, but what if my goal was to write 500 words per blog post? Then I might want to write something like this:

const mySmarterGoal = {
  action: 'Write',
  quantity: 500,
  measurement: 'words'
}

const myOtherSmarterGoal = {
  action: 'Lose',
  quantity: 10,
  measurement: 'pounds'
}


Discover more from AaronTweeton.com

Subscribe to get the latest posts sent to your email.