You've got two buttons in front of you: spend hours optimizing that O(n²) algorithm down to O(n log n), or just add some comments so the next poor soul can figure out what your nested ternary operators are doing. The choice is obvious when your sprint ends in 8 hours.
Junior devs panic because they haven't learned the ancient art of "ship it now, refactor never." Readable code? That's a luxury for teams with reasonable project managers. Right now, you're just trying to make sure it doesn't catch fire in production.
Optimization is for people who have time. Readability is for people who think someone will actually maintain this code. You have neither time nor illusions.
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp