You can get framing screws that bend similar to framing nails.
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...