2/ What defines bad quality code, and why is it considered poor?
Bad code isn't just code that has bugs. It's code that actively resists being understood, modified, or trusted.
It's Brittle: A small change requires a huge effort. You try to fix one thing, and two other things break.
It's Opaque: It's impossible for a new team member to understand what the code is doing without weeks of archaeology.