MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/p3yx45/i_see_your_simple_printer_and_raise_you_this/
r/badcode • u/[deleted] • Aug 14 '21
14 comments sorted by
55
I hate you and everything about this even more than the last one
25
This....is.... "true masterpiece."
22
I’m thoroughly enjoying the direction all of this is going in.
18
Image Transcription: Code
class Outputter: def __lshift__(self, text: str): print(text, end="") return self cout = Outputter() endl = "\n" class DataContainer: def __init__(self): self.data = "" def __str__(self): return self.data var = DataContainer() class Inputter: def __rshift__(self, other: DataContainer): other.data = input() cin = Inputter() cout << "What is your name?: "; cin >> var; cout << "Hello, " << var << "!" << endl;
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
12 u/--B_L_A_N_K-- if (true == true) {return true;} else {return true;} Aug 14 '21 edited Jul 01 '23 This comment has been removed in protest of Reddit's API changes. You can view a copy of it here.
12
This comment has been removed in protest of Reddit's API changes. You can view a copy of it here.
14
This is god awful. I like it.
10
Is this some sort of language conversion
15 u/killersquirel11 Aug 14 '21 Python++
15
Python++
7
More witchcraft goodies, like it.
3
Any language in which the syntax is flexible enough you can pretend to be another language for absolutely no reason whatsoever is a good language in my book.
2
std::endl is not the same as '\n' just so you know
3 u/sandmasterflash_ Aug 14 '21 A newline and setting flush equal to true would be. 1 u/supersharp Aug 15 '21 Wait, it's not? What's the difference? 1 u/DaimaoPPK Aug 15 '21 Check sandmasterflash_'s commenthttps://www.reddit.com/r/badcode/comments/p3yx45/i_see_your_simple_printer_and_raise_you_this/h8xzh51?utm_source=share&utm_medium=web2x&context=3
A newline and setting flush equal to true would be.
1
Wait, it's not? What's the difference?
1 u/DaimaoPPK Aug 15 '21 Check sandmasterflash_'s commenthttps://www.reddit.com/r/badcode/comments/p3yx45/i_see_your_simple_printer_and_raise_you_this/h8xzh51?utm_source=share&utm_medium=web2x&context=3
Check sandmasterflash_'s commenthttps://www.reddit.com/r/badcode/comments/p3yx45/i_see_your_simple_printer_and_raise_you_this/h8xzh51?utm_source=share&utm_medium=web2x&context=3
55
u/moonlandings Aug 14 '21
I hate you and everything about this even more than the last one
25
u/[deleted] Aug 14 '21
This....is.... "true masterpiece."
22
u/IHeartBadCode Aug 14 '21
I’m thoroughly enjoying the direction all of this is going in.
18
u/KomaedaEatsBagels Aug 14 '21
Image Transcription: Code
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
14
u/Mc_UsernameTaken Aug 14 '21
This is god awful. I like it.
10
u/[deleted] Aug 14 '21
Is this some sort of language conversion
7
u/[deleted] Aug 14 '21
More witchcraft goodies, like it.
3
u/wallefan01 Aug 17 '21
Any language in which the syntax is flexible enough you can pretend to be another language for absolutely no reason whatsoever is a good language in my book.
2
u/DaimaoPPK Aug 14 '21
std::endl is not the same as '\n' just so you know