As a Captain , whenever I have entered a flight deck and discovered that the aircraft has just left the hangar , I have made sure that the cockpit prep is very thorough indeed.
Sadly, the most dangerous aircraft to fly is one that has just come off maintenance - and I'm truly not knocking engineers, but we're all human and mistakes and omissions can occur in the best regulated facilities.
Y'e canna be toooo carrreful - I was once taught.