How senior developers fix broken things:
Step 1. Sip coffee. Appreciate coffee. Okay, let’s look at the ticket or issue.
Step 2. Look at broken code.
Step 3. Sip coffee. Appreciate coffee.
Step 4. Shake your head and use a bit of cursing.
Step 5. Try to fix code breaking other stuff and introduce more bugs.
Step 6. Explain how broken it is to coworkers.
Step 7. Sip coffee. Appreciate coffee. Walk away, get ready to go home, and hope someone else will fix it.