In the interests of health and safety a number of trades are controlled by law, most particularly plumbing and electricity. The degree to which plumbing and electrical work are actually regulated varies from jurisdiction to jurisdiction. For instance almost all work performed in new construction must be undertaken by licensed plumbers and licensed electricians, and that right across the country. There are some exceptions to this general rule in different regions allowing for some work done in owner built homes to be done by the owner as long as it is inspected by the municipality.
In renovation, most jurisdictions require any work hired out to be done by licensed professionals but when the work is done by the occupant/owner (both occupant and owner, not the owners or occupants of rental properties) there are many exceptions. In addition most general renovators will do minor electrical or plumbing work themselves, although they should technically be hiring a licensed tradesperson for that work. Some larger renovation companies actually have licensed staff on their in-house team.
Vancouver sits on one extreme where owner/occupants can take a course on such things as minor electrical work, get their permits and do it themselves. Ontario allows minor work like changing outlets and switches without any training as long as the owner/occupant obtains a permit. Quebec has decreed that changing a light bulb is as close as an occupant is allowed to get to any electrical wires. That is the technical side of the law and each jurisdiction seems to have arrived at their particular type of regulation via very different reflections.
Vancouver recognizes that people will do DIY electrical work anyway so they believe that a pro-active approach will have the end result of better work being done in real houses. However, a lot fewer people take the courses than purchase electrical fixtures and wiring at the renovation centres so just how effective is this approach is unknown.
Ontario believes that the permit requirement will allow the possibility of DIY electrical maintenance without opening the door too wide. But when the permits are more expensive than the light switches and there are no inspections, the general attitude is that this is just a government money grab and very few people get permits while there are a lot of switches sold in Ontario.
Apparently the Quebec absolute interdiction was pushed into place by the insurance industry trying to reduce house fires caused by electrical installations. At one point they tried to forbid the selling of all electrical wire and fixtures in retail outlets, restricting access to licensed professionals, but the courts judged that freedom of commerce prevailed and the retail stores could legally sell everything you need to build a house -- of course assuming you were purchasing it to give to your electrician to install it. Given the volume of electrical sales in the retail outlets, this policy has been a dismal failure with the consequence that an owner/occupant cannot even get his DIY installation inspected and rendered safe because he wasn't supposed to do it in the first place. Just to add total incoherence to the Quebec situation, Hydro Quebec advertises and subsidizes the retail sale of 240v setback thermostats directly to homeowners -- all of which are dangerous to work with without knowledge and none of which are legal for the homeowner to install themselves. It is fairly easy to get these 240v thermostats to work, but do you know if you have too many or too long wires jammed into that electrical box violating the electrical code fire safety provisions? This well functioning box could overheat and cause a fire! There is more to safe wiring than just making something go on and off.
DIY books abound on how to do all plumbing and all electricity. The books are legal, the activities they explain are illegal for non-licensed to do in some jurisdictions under some circumstances -- and that is usually noted in small print someplace in the book. As a DIY communicator should I follow the Quebec example of sticking my head in the sand, refusing to give any safety advice to people who are going to engage in this activity anyway? Or do I teach good practices but tell people in certain jurisdictions to not listen?
Sure you should follow the law where you live, primarily because you could potentially have an insurance problem if the house burns and it is proved that illegal electrical work was responsible.
My best advice is to study what you want to do. If you do not feel totally confident about what you are doing, either in plumbing or electricity (or the structure of the house for that matter) then call in a professional -- even if the laws in your area permit you to go ahead on your own. The laws are inconsistent, mostly ignored even by those who should be supporting or enforcing them, and the reality is that you or someone before you has probably already done a lot of DIY plumbing and electricity in your house. Learn to know if it is safe and healthy -- or ask a professional to inspect and correct it for you.