Where I live (Portland, Oregon) the rules for sheds are actually pretty generous. It can be something like 10 feet high, 200 square feet or less, and I don't think requires any setback, so the shed in the article might comply with similar rules depending on where they are.
As for code, yeah most cities have codes on the hight and setback of backyard sheds. This shed doesn't look like it meets either.
https://www.strongtie.com/strongdrive_exteriorwoodscrews/sdw...