logoalt Hacker News

tveitatoday at 5:50 AM1 replyview on HN

As they say in TDD, write a test, then write the simplest code that will make it pass.

Clearly supporting multiple functions starting with 'p' would be overengineering.


Replies

bloppetoday at 8:27 AM

By that standard, this is totally over-engineered. Just hardcode it.