It depends on your goals. If you wish to contribute to CPP and EI for yourself, then you have to pay yourself a salary. If you do not wish to contribute to CPP and EI, you can instead pay yourself through dividends.