The last 3 code inspections that I did for DIY projects all failed. These are the ones that at least got a permit.

Many times you can get something to work but it does not mean that it is right or safe.

Even the pros get it wrong. Please watch both.