When you solve problems other people are incapable or unwilling to solve you may effectively label yourself as: good.
If the problem is a common one and nobody else is able to solve it people will use your code... even if the code isn't good.
If the problem is a common one and nobody else is able to solve it people will use your code... even if the code isn't good.