+ 5

The value of knowing what convoluted code does

The challenges on this app seem largely based on looking at awful confusing code and deciphering it rather than acknowledging best practices. var two = 5; var five = 3; document.write(two*5*five%3%two/2*5-3) when I see this I just think "You shouldn't use document.write()" Do you find these exercises valuable or impractical? I never see or write code this bad in real life/at work.

10th Nov 2017, 10:19 AM
Matthew Sbar
1 Resposta
+ 4
I know how it feels but yeah, the point of challenges seems to be logical thinking rather than the elegance of codes. In Python,it's worse when the questions have names of datatypes as variable names! It should return error!
10th Nov 2017, 10:24 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar