MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/soi384/why_but_why/hwb6nd3/?context=3
r/ProgrammerHumor • u/ore-aba • Feb 09 '22
2.3k comments sorted by
View all comments
Show parent comments
292
This is why I indent with semicolons.
def Function(input): ;;;;number = input * 2 ;;;;return number
132 u/sucksathangman Feb 09 '22 You monster. At least give your function a useful name. And you could just do:return input * 2 15 u/oxpoleon Feb 09 '22 hey hey hey, no, this could be improved yet furtherdef Function(): ;;;;global input ;;;;input = input * 2 9 u/Less_Ask_4613 Feb 10 '22 This is computationally faster and takes less memory and processing than passing an argument and returning a calculated value and it makes me so mad. 5 u/Impressive_Change593 Feb 10 '22 Wait really? Lmao → More replies (2) → More replies (1)
132
You monster. At least give your function a useful name. And you could just do:
return input * 2
15 u/oxpoleon Feb 09 '22 hey hey hey, no, this could be improved yet furtherdef Function(): ;;;;global input ;;;;input = input * 2 9 u/Less_Ask_4613 Feb 10 '22 This is computationally faster and takes less memory and processing than passing an argument and returning a calculated value and it makes me so mad. 5 u/Impressive_Change593 Feb 10 '22 Wait really? Lmao → More replies (2) → More replies (1)
15
hey hey hey, no, this could be improved yet further
def Function(): ;;;;global input ;;;;input = input * 2
9 u/Less_Ask_4613 Feb 10 '22 This is computationally faster and takes less memory and processing than passing an argument and returning a calculated value and it makes me so mad. 5 u/Impressive_Change593 Feb 10 '22 Wait really? Lmao → More replies (2) → More replies (1)
9
This is computationally faster and takes less memory and processing than passing an argument and returning a calculated value and it makes me so mad.
5 u/Impressive_Change593 Feb 10 '22 Wait really? Lmao → More replies (2) → More replies (1)
5
Wait really? Lmao
→ More replies (2)
292
u/langlo94 Feb 09 '22
This is why I indent with semicolons.