We recently had a contractor fix our yard gate to keep in the Nodlings (Nub in particular). I was not pleased with the results. We did get them to come back and fix it properly, for which they apologized, but it was aggravating in the interim.
So here's a picture of said gate and a list of 7 Flaws to Avoid When Building a Gate. See how many you can spot (click for larger image).

1. Mix of old and new wood makes structural integrity suspect. Also, this is ugly.Your suggestions in the combox, please.
2. The stopper/backer board for the gate is affixed to the mobile gate side, not the locking/stationary side. Therefore, it stops nothing.
3. Old and rusted hardware reused on new gate. No padlock means gate can't be locked.
4. Hardware/cross boards extend beyond edge of stationary gate. Mobile gate cannot close from inside yard.
5. Mix of new and old nails and screws; only screws should be used to hold pickets on rails. The nails will slip out over time because the pickets are so thin.
6. Tight fit between stationary and mobile gate means that any natural expansion or sagging of the gate will prevent it from closing properly.
7. The gate hinges indicate gate opens inward (correct). However, given the position of #2 and #4 this gate was built backwards and in fact, never actually worked.
