Wiring safety codes are intended to protect people and property from electrical shock and fire hazards.
An electrical code is a set of regulations for electrical wiring.The intention of an electrical code is to provide standards to ensure electrical wiring systems that are safe and unlikely to produce either electric shock or fires. Ways in which electrical codes ensure safety include ways to prevent (or mitigate) short circuits, ground faults, and overheating from inadequate current-carrying capacity (ampacity). Appropriately rated fuses or circuit breakers are used to interrupt a circuit loop whose ampacity is exceeded to avoid overheating of wires or other fixtures.
Electrical codes are usually devised by national or international technical organizations, and adopted as law to make them enforceable.Electrical codes differ based on geographic area.
See the following: DIN VDE (German Institute for Standardization) published by DIN-Norms is used in Germany National Electrical Code has been adopted for electrical wiring in the United States and for Mexico, Costa Rica, Venezuela and Colombia IEC 60364 is used as a basis for electrical codes in many European countries Canadian Electrical Code published by the CSA is used in Canada (see Electrical wiring in North America). British Standard BS 7671 is the set of regulations for electrical wiring in the United Kingdom. Australian/New Zealand Standard AS/NZS 3000:2007 Wiring Rules is used in Australia and New Zealand. NF C 15-100 (fr) is used for low voltage installations in France RGIE (fr) (Réglement Général sur les Installations Électriques) is used for installations in Belgium. AREI (nl) (Algemeen Reglement Elektrische Installaties) is used for installations in Flanders, Belgium. Źródło: https://en.wikipedia.org/wiki/Electrical_code
On the other hand, many electricians have daily contact with electrical installations retains fewer and fewer safety work and then can easily lead to tragedy..