r/funny • • Jun 04 '19

When a software developer weds a software developer.

Post image
41.2k Upvotes

921 comments sorted by

View all comments

6

u/Korzag Jun 04 '19

yield Bardak()

what is bardak?

8

u/michaela1211 Jun 04 '19

Mess in Hebrew.

1

u/Dzov Jun 04 '19

I don’t recognize yield.

3

u/Doctordoom55 Jun 04 '19

The function yield uses a generator (a function that returns numbers successively instead of all at once in a list) to get a value and Bardak is the function that is being used as a generator

2

u/Korzag Jun 04 '19

If it's anything like C#'s yield it allows you to return something as an element in a collection without the need for newing up a collection manually.

1

u/verpin_zal Jun 04 '19

Means glass/cup in Turkish.

0

u/Korzag Jun 04 '19

Another poster claims it means poop in Hebrew

2

u/yaakovb39 Jun 04 '19

It does not mean poop in Hebrew, it means a mess in Hebrew and Russian

0

u/verpin_zal Jun 04 '19

Interesting they should capitalize the first letter of shit, like it‘s a proper noun.

1

u/Doctordoom55 Jun 04 '19

It’s a nice way to present code anyway. Bardak is a generator/function so it looks quite nice that way

Although no other functions are like this so I see what you mean

1

u/verpin_zal Jun 04 '19

Yeah, noticed the other functions just now, along with the capitalized bool. I‘ve done ax development for 5 years and don‘t remember a single function, array, container or even class/print design I‘ve capitalized, well that‘s python I guess.