One method is the feed-through: uses the receptacle to carry on the circuit elsewhere and the receptacle must be designed to do so (note that not all receptacles allow feed-through), the other method is the pigtail one: wires are twisted inside a wire nut. They are both equally safe if done properly. Regarding the codes: that changes from country to country, for example in North America and UK the use of wirenuts (marrettes) is common but in other European countries marrettes aren't approved. Depending on the country one is in, electrical components are built and tested differently, rules and practices are different (my personal experience is with Canada and Italy for example). Obviously one follows the code that applies to them and inspectors will require whats fitting to the code according to them and their experience. I dont have enough reputation to comment directly to other people replies but regarding godsquadgeek answer: "UL specifically tests receptacles for the ability to safely carry downstream current. This testing is usually conducted at 20 amps, since a 15-amp receptacle can be wired on a 20-amp circuit and thus carry the 20-amp feed-through current. As long as the receptacle is rated and UL-listed for feed-through wiring, as well as properly installed, it should be safe as intended by UL’s Standard for Safety (UL 498), which covers receptacles" (Steve Campolo, engineering vice-president at Leviton). Also Mike quoted NEC 300.13 (B) but misunderstood it: it clearly states grounded conductor and Mike goes on talking about neutral, the "grounded conductor" by definition is the ground wire, or earth, its very different than a neutral in any normal residential wiring. Obviously ground continuity through a device that can be removed accidentally interrupting it is not allowed and normally the ground should be found pigtailed on its own in the box with wirenuts or connected to the box if its in metal or fitted with a grounding attachment (they should have multiple grounding screws) and eventually from there a tail is brought to the receptacle. In this way the ground is carried on uninterrupted on its own independently from the method used to carry on the rest of the circuit (as also ColinMcC mentions when he says he would have to use a marrette for the ground anyways).