Smartness and happiness are like test coverage.
If you are not smart or have no tests, you will not be happy.
If you are smart or have high test coverage, you may or may not be happy.