I prefer 1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1.
Here’s a very simple example.
What’s 3^3?
Or,
Well it’s 3x3x3
Which is 3+3+3, 3 times.
Which is 3+3+3+3+3+3+3+3+3, which is 27.
Which solution do we prefer?
3^3 = 27?
Or
3+3+3
+3+3+3
+3+3+3
=27?
Which one uses more lines?
ChaosMonkey@lemmy.dbzer0.com 1 day ago
cley_faye@lemmy.world 12 hours ago
Code formatter will see this and be like:
const a = 1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1;
I smell a promotion in your near future!
01189998819991197253@infosec.pub 1 day ago
That’s only one line.
ChaosMonkey@lemmy.dbzer0.com 23 hours ago
You’re right, 1*1 line.
wabafee@lemmy.world 15 hours ago
Today you just ask AI to write you an essay 100 pages long to get that answer.
ohlaph@lemmy.world 1 day ago
var three1 = 3
var three2 = three1
…
Repeat until 27.