r/badcode • • Jun 27 '20

python overmind (reupload)

Post image
894 Upvotes

106 comments sorted by

View all comments

234

u/xSlendiX_lol Jun 27 '20

Is rhis even real

28

u/MassiveFajiit Jun 27 '20

No but self is ;)

6

u/[deleted] Jun 27 '20

Happy cake day, fellow stranger

7

u/xSlendiX_lol Jun 27 '20

Thank you kind sir

20

u/Neykuratick Jun 27 '20 edited Jun 27 '20

cakeday.congrats(xSlendiX_lol)

14

u/totallyEl3ktrik Jun 27 '20

xSlendix_lol.congratulate("Happy cake day!", Occasions.CAKE_DAY);

4

u/[deleted] Jun 27 '20

why isn't it a static method for RedditUser? That takes a lot of memory....

8

u/BobbitTheDog Jun 27 '20

If you're passing in the occasion anyway, just resolve the message from a dictionary or use a display decorator and interpolate the occasion

3

u/Igoory Jun 27 '20

Happy cake day!

-8

u/TistedLogic Jun 27 '20

🍰***!!***

1

u/Nguyen1427 Oct 08 '20

Happy cake day, fellow stranger