Quoted from Sheprd:It is always better to solder a wire connection that does not depend on the solder for the mechanical strength of the connection. Solder is a weak structure that can become more brittle with age.
Using locking pliers to hold the wires is also a bad practice because it acts as a heat sync, making it more likely to get a cold solder joint or overheat the terminal trying to get the wire hot enough.
It is always better to remove all old solder, strip the wire back, make a good sound mechanical connection without solder, then flow the solder to the wire/tab all at once to keep your knot from coming loose during years of vibration. It's easy when you do it this way because you don't have to worry about holding the wires in place, and so much more reliable in the long run.
In addition, most solder has a rosin flux core to clean the connection (this is essential in forming a good solder joint).
Notice when you first add solder to the joint or wire, you hear a sizzling sound and get a puff of smoke that smells like pine sap (because it is pine sap). That's the rosin flux cleaning the joint as it burns off. It's a one shot deal.
When you just pre-tin the wires or terminals all the flux burns off, so if you heat them together without adding more solder (and thus flux) you will almost certainly get some kind of cold solder joint.
A good solder joint should be shiny like a little less vibrant chrome. If you apply heat for too long or decide to go back and reheat the joint, you will get a cold solder joint (it will look dull grey) unless you apply more flux, either by adding solder or just some flux by itself (flux can be purchased in a liquid pen or other forms).
If you want to see the difference between a good solder joint and a bad one, experiment by making some fresh connections and making some connections by just resoldering them (no new solder added). To really see the difference you will need to clean the flux residue off the connections by using isopropyl alcohol on a cotton swab or cleaning brush. Note that they make non-rosin chemical type fluxes these days that are easier to clean and that do not leave a sticky residue. I don't think they are quite as effective but they have their advantages. DO NOT USE any acid core solder or acid flux (plumbers use this type) as it can corrode electronic circuits.
As others have said, a good mechanical connection before soldering is best, but sometimes (as with micro-switches) it's very difficult to get the wire through the tiny hole in the terminal. If the joint doesn't get a lot of vibration, you can pre-tin the wire and terminal then add some rosin flux (it only takes a tiny bit) as previously mentioned to the wire and terminal before soldering.