The following workflows are applicable to both the Node Editor and the Hypershade.
Middle-drag a node from the Node Editor or the Hypershade work area into a field in the Attribute Editor or Property Editor.
Middle-drag a node onto another in the Node Editor or the Hypershade work area.
Select the attribute you want to connect to from the pop-up menu that appears.