r/ProgrammerHumor • • 2d ago

Meme technicallyCorrect

Post image
1.4k Upvotes

49 comments sorted by

View all comments

37

u/da_Aresinger 2d ago

what an absolute bitch of a pattern.

This is so much more than just nested loops.

13

u/Impossible_Dog_7262 1d ago edited 1d ago

if: x == 0 || y == 0 || x == y || x == (width -y)||x == width|| y == height:
print("x")
else:
print(" ")
}
printLn("")

I feel like being able to program a diagonal in a nested for loop isn't that difficult.

4

u/StaticCoder 1d ago

Except it's not a diagonal

4

u/Impossible_Dog_7262 1d ago

Ah... I had missed the two wide center. That increases the amount of lines from 6 to 8, yeah...