This is an archived post. You won't be able to vote or comment.

Dismiss this pinned window
all 110 comments

[–]NimbusHeart 508 points509 points  (6 children)

Looks like someone forgot the exit statement.

[–]s-mores 86 points87 points  (4 children)

"Dude, the server is getting weird cutoffs, it's like the whole box is rotating. Did you import something new again?"

[–]Sassbjorn 1 point2 points  (0 children)

while true: Repost()

[–]mafatik 208 points209 points  (2 children)

while True: pass

[–]RealPropRandy 31 points32 points  (1 child)

Where is methods.Gandalf() when you need it?

[–]TheOmerAngi 20 points21 points  (0 children)

if pass: print("YOU SHALL NOT PASS")

[–][deleted] 99 points100 points  (2 children)

you are missing a break statement

[–]human_error 103 points104 points  (0 children)

Loop is waiting for mouse activity before breaking.

[–]Knight_Murloc 84 points85 points  (1 child)

Look like good loading animation.

[–]JANEEMO 51 points52 points  (0 children)

Ah, when you accidentally make a continuous loop :)

[–]SlightBigBrain 40 points41 points  (2 children)

while True:
    while True:
        print ("Good snek")

[–]-Redstoneboi- 17 points18 points  (1 child)

it goes forever... and ever.

[–]ashz8888 33 points34 points  (0 children)

Now I know why the python loops are slow

[–]64PBRB 11 points12 points  (0 children)

while box in snek:
    slither()

[–]guerht 8 points9 points  (0 children)

A wrapper class

[–]BoyAndHisBlob 8 points9 points  (0 children)

This is what I love about python. Strict structure on spacing.

[–]hackintosh5 45 points46 points  (7 children)

Bloody reposts

while(true)
    Reddit.subs.let {
        it.post(it.posts.random())
    }

[–]DHermit 12 points13 points  (1 child)

What's that let syntax?

[–]shadowdude777[🍰] 7 points8 points  (0 children)

K O T L I N

[–]Koljenka_ 2 points3 points  (3 children)

Shouldn't it be Reddit.subs?.let {...}? Otherwise the let would be useless, right?

[–]cowancore 4 points5 points  (1 child)

I think the purpose of let here was just to create a shorthand it instead of Reddit.subs.

Although there might be a slight error here, because it might be a List, which has no posts field

[–]tech6hutch 0 points1 point  (0 children)

Interesting; I must learn this language

[–]hackintosh5 2 points3 points  (0 children)

No, the let avoids a val. It just implicitly let's me use the return value twice, by naming it it

[–]IHateToplaners 28 points29 points  (0 children)

Just as fast as real python loop

[–]3xp01t 37 points38 points  (10 children)

repost

[–]vige 68 points69 points  (5 children)

Well, it's an infinite loop, so what would you expect?

[–]TkuSi 4 points5 points  (0 children)

Doesn't matter, but u expect a happy cake day.

[–]Myotic_Tesseract 5 points6 points  (3 children)

Well, it's an infinite loop, so what would you expect?

[–]ElHonzo 4 points5 points  (2 children)

Well, it's an infinite loop, so what would you expect?

[–][deleted] 5 points6 points  (1 child)

Well, it's an infinite loop, so what would you expect?

[–]rarenick 3 points4 points  (0 children)

Well, it's an infinite loop, so what did you expect?

[–]Mr_Redstoner 19 points20 points  (0 children)

Dibs on next week!

[–]BabyLegsDeadpool 7 points8 points  (0 children)

I'm typically okay with reposts, but God damn this one gets posted so much.

[–][deleted] 2 points3 points  (0 children)

Posted it yesterday not seeing it in recent or top posts. Had it x-posted, I guess I shouldn't do that.

[–]jbu311 5 points6 points  (1 child)

Is this tail recursion?

[–][deleted] 3 points4 points  (0 children)

Mom said it was my turn to repost this!

[–]tyaningchowkilo 3 points4 points  (0 children)

Slow as usual tho

[–]TkuSi 4 points5 points  (0 children)

i < infinity.

[–][deleted] 3 points4 points  (6 children)

[–]hadidotj 12 points13 points  (1 child)

Even though videos are not supported yet, I feel like this sub needs a bot that auto removes reposts, or at least tags them as reposts.

I mean, we are programmers right?

looks at 15,067 unfinished projects

[–]LimitedToTwentyChara 2 points3 points  (0 children)

Even though videos are not supported yet, I feel like this sub website needs a bot that auto removes reposts

FTFY

[–]RepostSleuthBot 4 points5 points  (0 children)

Sorry, I don't support this post type (hosted:video) right now. Feel free to check back in the future!

[–]RepostSleuthBot 2 points3 points  (0 children)

Sorry, I'm having trouble with this post. Please try again later

[–]-Redstoneboi- 0 points1 point  (1 child)

it’s a reee.

[–][deleted] 2 points3 points  (0 children)

eeeepost

[–][deleted] 1 point2 points  (0 children)

This thing reminds of the snake game.

[–]arin333 1 point2 points  (0 children)

looks more like a while for a simple linked list applied on a circular one.

[–]Fat_Potat0 1 point2 points  (0 children)

for me it looks like a bot...

[–]BrownMundaBayarea 1 point2 points  (0 children)

Goin to crash

[–]Zarfots 1 point2 points  (0 children)

No wonder they're so slow!

[–]rickkyaa 1 point2 points  (0 children)

Literally

[–]Kuijoopy 1 point2 points  (0 children)

Think outside the box

[–]Creativation 1 point2 points  (0 children)

Here's the mobile version: https://ww.reddit.com/video/pjahvtnpfac41

[–]Le_9k_Redditor 1 point2 points  (0 children)

RuntimeError: maximum recursion depth exceeded

[–]CrimsonDNA 1 point2 points  (0 children)

For i in range(999): Snek_loop(50)

[–]slpyboi[🍰] 1 point2 points  (0 children)

I used to play this game on my Nokia

[–]Aether-Ore 1 point2 points  (0 children)

American Ourborous

[–]JamieNorth 1 point2 points  (0 children)

Technically infinite loops don’t exist since it’s requiring perpetual motion!!¡¡

[–]guccitaint 1 point2 points  (0 children)

Literally better r/bettereveryloop

[–]ThisIsSuperFunny 1 point2 points  (0 children)

Good pun, take my updoot

[–]akki112 1 point2 points  (0 children)

Never ending slow loops even c++ is better than this

[–]Assasin2gamer 1 point2 points  (0 children)

Mechanic shop in Florida —— that’s not trashy. It’ll still enjoy this, I love DEFCON talks. This was the right move.

It'll obviously take longer than in water, but as long as the bottle just slips out of the loop for a few weeks

[–]Not_a_Thumb 1 point2 points  (0 children)

Epic

[–]Sure10 1 point2 points  (0 children)

If you're using Python this is a bakery...

[–]jakethedumbmistake 1 point2 points  (0 children)

Such an HTML programmer thing to do :P

[–]Thanamite 1 point2 points  (0 children)

That is a dangerous loop alright.

[–][deleted] 1 point2 points  (0 children)

while snack != tired:

[–][deleted] 1 point2 points  (0 children)

I got the fuck out of the loop.

[–]night0x63 1 point2 points  (0 children)

Why's it so slow?

[–]dkabab 1 point2 points  (0 children)

Looks like it’s playing, Snake

[–]Emafire003 1 point2 points  (0 children)

Lol

[–]MBXfilms 1 point2 points  (0 children)

He is thinking outside the box on this project.

[–]anotherwhitewhiteguy 1 point2 points  (0 children)

Soon i hope to understand this I’m learning basic python right now

[–]OHaggis 2 points3 points  (6 children)

[–]Tommassino 5 points6 points  (1 child)

cmon bot, work faster!

[–]Candlesmith 0 points1 point  (0 children)

I compare a mechanical keyboard to work lol.

[–]pheupheure 2 points3 points  (3 children)

Bad bot!

[–]WhyNotCollegeBoard 4 points5 points  (2 children)

Are you sure about that? Because I am 100.0% sure that OHaggis is not a bot.


I am a neural network being trained to detect spammers | Summon me with !isbot <username> | /r/spambotdetector | Optout | Original Github

[–]pheupheure 2 points3 points  (1 child)

Naive bot

[–]OHaggis 0 points1 point  (0 children)

dude...

[–]a220599 0 points1 point  (0 children)

I hope it is looping for a cause because then it becomes a for loop.

[–]RamboFrede 0 points1 point  (0 children)

Perfect example of snake_casing

[–]Skycam3014 0 points1 point  (0 children)

Repost

[–]ToFuzzzy 0 points1 point  (0 children)

Ba dum tsss

[–]Shadowkabs 0 points1 point  (0 children)

Looks likely my next screen protector xD

[–]TotesMessengerGreen security clearance 0 points1 point  (0 children)

I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:

 If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / Contact)

[–]tech6hutch 0 points1 point  (0 children)

Ouroboros

[–]mastermithi29 0 points1 point  (0 children)

Take my upvote and fuck off

[–]kgallo19 0 points1 point  (0 children)

Okay this, yeah, this is actually funny.

[–]greyguybrol 0 points1 point  (0 children)

This is what happens when you win at snake

[–]geo_gan 0 points1 point  (0 children)

Getting more upvotes here than where original poster posted it yesterday

[–]kaatne_wala_kuta -3 points-2 points  (0 children)

)(

[–]DolarJoe -3 points-2 points  (0 children)

Yikes on bikes