" The Bro Code " , cited by Barney many times throughout the series , is a set of written rules for bros to follow , and has been published as a tie - in novel , an audiobook , an iPhone Application and an Android Application .