As already said using the barbell uses supporting muscles to steady the bar thus it is better than the fixed plane of movement of the smiths machine. If you have to train alone though the smiths machine has some benefits. You could also use dumbells as they futher allow for a larger plane of movement stimulating more muscle growth.