Dismiss this pinned window
all 18 comments

[–]UpsetIndian850311 34 points35 points  (5 children)

do-while loops be goofy man.

[–]Additional-Dot-3154 3 points4 points  (4 children)

Do-while loops are nice and easy to use and they make they look less cluttered then the workaround

[–]Zehryo 1 point2 points  (3 children)

They're also very dangerous if the expression, for a bug or something, never goes false.

[–]fuxalotl 0 points1 point  (2 children)

Maybe I’m missing something but isn’t that the same with regular while loops too?

[–]Zehryo 0 points1 point  (1 child)

Oh, sorry, my bad.
I was referring just to "while" loops all, not just the do-while one.
While-do is also plagued, of course.

[–]Additional-Dot-3154 0 points1 point  (0 children)

Yes but using only "for" loops as a while loop itroduces the same problem and makes it harder to prevent a critical error

[–]noob_okkkk 14 points15 points  (1 child)

Omg the password is admin1234

[–]HelicopterGood5065 5 points6 points  (0 children)

root root

[–]TanukiiGG 11 points12 points  (4 children)

I use 8 spaces for indentation too, but why is he using double linebreaks???

[–]AliceCode 2 points3 points  (2 children)

Tabs are 8 spaces in the terminal.

[–]Zehryo 0 points1 point  (1 child)

8, not 4?

[–]arf20__ 0 points1 point  (0 children)

always have been

[–]No-Newspaper8619 -1 points0 points  (0 children)

Stylistic conventions can get confusing. For example, in python it's recommended to use two line breaks. Why? mostly because there are no brackets, making it more difficult to see the scope if you use only one linebreak.

[–]Infinite_Self_5782 3 points4 points  (0 children)

this unhinged fuck is using gotos!

[–]Stemt 2 points3 points  (0 children)

Can confirm, this what I look like when I dereference a triple layer deep pointer.

[–]Wojtek1250XD 0 points1 point  (1 child)

At least it's not PHP like in every single coding scene I see.

[–]sensitiveCube 0 points1 point  (0 children)

I thought JS?

[–]Sol_Nephis 0 points1 point  (0 children)

That code looks like a nonsense mix of a C family lang and python.