MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1y5vntt/technicallycorrect/19t7jfa6e1sn9/
r/ProgrammerHumor • u/Apprehensive_Bit7392 • 19h ago
42 comments sorted by
View all comments
25
Does this ensure that it only prints it one time? It seems like this would print it many times. Does that @ symbol make it only print once?
Oh, nevermind, it's j = 0, i = 0, and both less than 1.
8 u/DarthPiotr 16h ago The @ symbol in C# means that you don't have to escape special characters inside, including new lines. This is why you can have a string spanning a few lines without syntax error. 7 u/laplongejr 19h ago I need a name for that... a startingblock loop? "Ready to run but will only go once" -16 u/DJDevon3 19h ago With i++ 😂 I've never seen trollish coding before but if it exists this is it. 5 u/2eanimation 19h ago i = 0x = ++ix == 1 -> truevsi = 0x = i++x == 0 -> true 1 u/failedsatan 3h ago not quite, it's more x++ == 0 -> true and ++x == 0 -> false
8
The @ symbol in C# means that you don't have to escape special characters inside, including new lines. This is why you can have a string spanning a few lines without syntax error.
7
I need a name for that... a startingblock loop? "Ready to run but will only go once"
-16
With i++ 😂 I've never seen trollish coding before but if it exists this is it.
5 u/2eanimation 19h ago i = 0x = ++ix == 1 -> truevsi = 0x = i++x == 0 -> true 1 u/failedsatan 3h ago not quite, it's more x++ == 0 -> true and ++x == 0 -> false
5
i = 0x = ++ix == 1 -> true
vs
i = 0x = i++x == 0 -> true
1 u/failedsatan 3h ago not quite, it's more x++ == 0 -> true and ++x == 0 -> false
1
not quite, it's more x++ == 0 -> true and ++x == 0 -> false
x++ == 0
++x == 0
View all comments
25
u/Pure_Material_9235 19h ago
Does this ensure that it only prints it one time? It seems like this would print it many times. Does that @ symbol make it only print once?
Oh, nevermind, it's j = 0, i = 0, and both less than 1.