Which code is better ?
or this ?
Absolutely the second one is more readable and it takes you less time to understand ! ⏰
#CleanCode #DontUseComments #Tip3
// Check to see if the employee is eligible for full benefits
if((employee.flags & HOURLY_FLAG) && (empoyee.age > 65))
or this ?
if(employee.isEligibleForFullBenefits())
Absolutely the second one is more readable and it takes you less time to understand ! ⏰
#CleanCode #DontUseComments #Tip3