There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

JackbyDev ,

Which of these do you prefer?

A?


<span style="color:#323232;">@Test
</span><span style="color:#323232;">  public void turnOnLoTempAlarmAtThreshold() throws Exception {
</span><span style="color:#323232;">    wayTooCold();
</span><span style="color:#323232;">    assertEquals(“HBchL”, hw.getState());
</span><span style="color:#323232;">  }
</span>

Or B?


<span style="color:#323232;">@Test
</span><span style="color:#323232;">  public void turnOnLoTempAlarmAtThreashold() throws Exception {
</span><span style="color:#323232;">    hw.setTemp(WAY_TOO_COLD);
</span><span style="color:#323232;">    controller.tic();
</span><span style="color:#323232;">    assertTrue(hw.heaterState());
</span><span style="color:#323232;">    assertTrue(hw.blowerState());
</span><span style="color:#323232;">    assertFalse(hw.coolerState());
</span><span style="color:#323232;">    assertFalse(hw.hiTempAlarm());
</span><span style="color:#323232;">    assertTrue(hw.loTempAlarm());
</span><span style="color:#323232;">  }
</span>

Uncle Bob's Clean Code suggestsOption A

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • lifeLocal
  • goranko
  • All magazines