Code and a Poem about Software

twitter logo github logo Updated on ・1 min read

The best code,
without tests,
not to be trusted.

function alwaysLeft(left) {
  return function(right) {
    return left
  }
}

Test coverage,
gives confidence,
still can be busted.

alwaysLeft('L')('R') === 'L'

Code abused,
ways unimagined,
leaving you disgusted.

function I(x) {
  return x
}

alwaysLeft(I)('L')('R') === 'R'

@joelnet

Cheers!

twitter logo DISCUSS
Classic DEV Post from Jun 30

Spring Boot - Crash course

JavaScript Joel profile image
Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!