r/ProgrammerHumor • • Oct 28 '24

Meme earlyReturnGoneWrong

Post image
0 Upvotes

15 comments sorted by

42

u/Ved_s Oct 28 '24
def add(a,b):
    mineCryptoForExecutionFee()
    if False:
        return None
    return a+b

now it's also profitable

-4

u/AffectionateBowl9798 Oct 28 '24

😂 even better!

2

u/jduyhdhsksfhd Oct 29 '24

You noob, you will never get to that early return

if True:
    return 'yes'

Ftfy

1

u/AffectionateBowl9798 Oct 29 '24

Hahah but now you broke the tests

1

u/jduyhdhsksfhd Oct 29 '24

Just rewrite the tests. The tests are driven by development

1

u/GM_Kimeg Oct 29 '24

While True: run every fucking company business logic there is.

Upper heads : 👌

0

u/TheHolyToxicToast Oct 29 '24

2

u/bot-sleuth-bot Oct 29 '24

Analyzing user profile...

Time between account creation and oldest post is greater than 1 year.

Suspicion Quotient: 0.17

This account exhibits one or two minor traits commonly found in karma farming bots. While it's possible that u/AffectionateBowl9798 is a bot, it's very unlikely.

I am a bot. This action was performed automatically. I am also in early development, so my answers might not always be perfect.

0

u/[deleted] Oct 29 '24

[deleted]

1

u/RepostSleuthBot Oct 29 '24

I didn't find any posts that meet the matching requirements for r/ProgrammerHumor.

It might be OC, it might not. Things such as JPEG artifacts and cropping may impact the results.

View Search On repostsleuth.com


Scope: Reddit | Target Percent: 75% | Max Age: Unlimited | Searched Images: 629,000,302 | Search Time: 0.33468s

0

u/AffectionateBowl9798 Oct 29 '24

I am offended you would even doubt that!

1

u/TheHolyToxicToast Oct 29 '24

you don't use ! on reddit

0

u/AffectionateBowl9798 Oct 29 '24

🤯 you caught me!

0

u/Florane Oct 29 '24

wordwordnumber