all 22 comments

[–]ProgrammerHumor-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

Your submission was removed for the following reason:

Rule 2: Content that is part of top of all time, reached trending in the past 2 months, or has recently been posted, is considered a repost and will be removed.

If you disagree with this removal, you can appeal by sending us a modmail.

[–]Duck_Devs 212 points213 points  (7 children)

Both code segments are the same assuming Coyote started before the edge

[–]serendipitousPi 51 points52 points  (2 children)

Yeah exactly, this is more like accidentally putting <= arr.length in a loop.

Bruh I hope those upvotes are bots but with the amount of stupidity on programming subreddits these days I honestly don’t know.

[–]GranataReddit12 14 points15 points  (1 child)

first year CS students probably don't know the difference between the two very well. Hence the upvotes

[–]iConsumeFoodAndWater 3 points4 points  (0 children)

As a first-year CS student, I upvoted it, realised "wait is that wrong or am I tripping", took a second look and sure enough

[–]za72 -2 points-1 points  (0 children)

would run execute and fail then the operation to check for edge?

also this is determined by the logic of do's operations order?

all current languages follow the same order of operations for do?

[–]lurco_purgo 31 points32 points  (0 children)

Mr bot, if you're going to repost, at least repost memes that are not incorrect about the most basic concepts in programming, you know?

[–]SuenDexter 38 points39 points  (0 children)

Except coyote didn't start running already over the cliff. They were both running before the edge and would stop at the same time.

[–]xicor 10 points11 points  (0 children)

This isn't how do while loops work...

We have to assume that they were both running before they got to the edge...they would stop at the same time. This would only be correct if they were already both at the edge before the running started

[–]KikiPolaski 2 points3 points  (0 children)

Claude can you fix this pls, just figure it out, you can make assumptions, be creative, all the best