DevOps'ish 245: Please do not attempt to simplify this code, Rust Mod Team, feedback, attackers don't bother brute-forcing long passwords, GitOps, kube-scheduler-simulator, and more
“PLEASE DO NOT ATTEMPT TO SIMPLIFY THIS CODE. KEEP THE SPACE SHUTTLE FLYING.”: This almost 2000 lines of code that make up the persistent volume controller was one of the most popular social media posts this week: 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 // ================================================================== // PLEASE DO NOT ATTEMPT TO SIMPLIFY THIS CODE. // KEEP THE SPACE SHUTTLE FLYING. // ================================================================== // // This controller is intentionally written in a very verbose style. You will // notice: // // 1. Every 'if' statement has a matching 'else' (exception: simple error // checks for a client API call) // 2. Things that may seem obvious are commented explicitly // // We call this style 'space shuttle style'. Space shuttle style is meant to // ensure that every branch and condition is considered and accounted for - // the same way code is written at NASA for applications like the space // shuttle. // Two things struck me about this comment: ...