Writing clean code like Uncle Bob describes can be complicated sometimes. So you have this long if statement that’s relatively simple in design but ugly to the eyes and somewhat hard to read.
if(
x1>=img.left&&x1=img.top&&y1=img.left&&x2=img.top&&y2=lowerX&&x1=lowerY&&y1=lowerX&&x2=lowerY&&y2=a&&this=img.left&&x1=img.left&&x2=img.top&&y2=img.top&&y2r)){
img.scaling = Math.pow(x1-x2,2)+Math.pow(y1-y2,2);
} //end if
At what point does sacrificing performance become worth it for code readability?