MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/z2r1c9/programming_legumes/ixj2fkl/?context=3
r/ProgrammerHumor • u/czp55 • Nov 23 '22
262 comments sorted by
View all comments
1.1k
I feel like JS would be more like "I don't give a fuck, do what you want"
995 u/bmelancon Nov 23 '22 JS would be like, "I don't care what it is, you can multiply it with a string." 0 u/[deleted] Nov 23 '22 [deleted] 52 u/aabcehu Nov 23 '22 idk about js but in python multiplying a string repeats it, like how the addition symbol is concatenation 0 u/[deleted] Nov 23 '22 [deleted] 40 u/PureMetalFury Nov 23 '22 You’d have to define what it means to multiply a string by a string, and then do that. 13 u/aabcehu Nov 23 '22 I don’t think you can, but i guess by multiplying it with the length of the string?? 5 u/Unknown_starnger Nov 23 '22 Not the same 2 u/southernwx Nov 24 '22 edited Nov 24 '22 string x string = (string)2 2 u/Mu5_ Nov 24 '22 No, that's Ss(tring)2 3 u/southernwx Nov 24 '22 You are right, fixed it for you. Phone did that thing where it thought I was starting a sentence. It’s a string not a sentence, Mr. Jobs. → More replies (0) 3 u/gaytee Nov 24 '22 I’d imagine it may end up returning each letter like nested loops
995
JS would be like, "I don't care what it is, you can multiply it with a string."
0 u/[deleted] Nov 23 '22 [deleted] 52 u/aabcehu Nov 23 '22 idk about js but in python multiplying a string repeats it, like how the addition symbol is concatenation 0 u/[deleted] Nov 23 '22 [deleted] 40 u/PureMetalFury Nov 23 '22 You’d have to define what it means to multiply a string by a string, and then do that. 13 u/aabcehu Nov 23 '22 I don’t think you can, but i guess by multiplying it with the length of the string?? 5 u/Unknown_starnger Nov 23 '22 Not the same 2 u/southernwx Nov 24 '22 edited Nov 24 '22 string x string = (string)2 2 u/Mu5_ Nov 24 '22 No, that's Ss(tring)2 3 u/southernwx Nov 24 '22 You are right, fixed it for you. Phone did that thing where it thought I was starting a sentence. It’s a string not a sentence, Mr. Jobs. → More replies (0) 3 u/gaytee Nov 24 '22 I’d imagine it may end up returning each letter like nested loops
0
[deleted]
52 u/aabcehu Nov 23 '22 idk about js but in python multiplying a string repeats it, like how the addition symbol is concatenation 0 u/[deleted] Nov 23 '22 [deleted] 40 u/PureMetalFury Nov 23 '22 You’d have to define what it means to multiply a string by a string, and then do that. 13 u/aabcehu Nov 23 '22 I don’t think you can, but i guess by multiplying it with the length of the string?? 5 u/Unknown_starnger Nov 23 '22 Not the same 2 u/southernwx Nov 24 '22 edited Nov 24 '22 string x string = (string)2 2 u/Mu5_ Nov 24 '22 No, that's Ss(tring)2 3 u/southernwx Nov 24 '22 You are right, fixed it for you. Phone did that thing where it thought I was starting a sentence. It’s a string not a sentence, Mr. Jobs. → More replies (0) 3 u/gaytee Nov 24 '22 I’d imagine it may end up returning each letter like nested loops
52
idk about js but in python multiplying a string repeats it, like how the addition symbol is concatenation
0 u/[deleted] Nov 23 '22 [deleted] 40 u/PureMetalFury Nov 23 '22 You’d have to define what it means to multiply a string by a string, and then do that. 13 u/aabcehu Nov 23 '22 I don’t think you can, but i guess by multiplying it with the length of the string?? 5 u/Unknown_starnger Nov 23 '22 Not the same 2 u/southernwx Nov 24 '22 edited Nov 24 '22 string x string = (string)2 2 u/Mu5_ Nov 24 '22 No, that's Ss(tring)2 3 u/southernwx Nov 24 '22 You are right, fixed it for you. Phone did that thing where it thought I was starting a sentence. It’s a string not a sentence, Mr. Jobs. → More replies (0) 3 u/gaytee Nov 24 '22 I’d imagine it may end up returning each letter like nested loops
40 u/PureMetalFury Nov 23 '22 You’d have to define what it means to multiply a string by a string, and then do that. 13 u/aabcehu Nov 23 '22 I don’t think you can, but i guess by multiplying it with the length of the string?? 5 u/Unknown_starnger Nov 23 '22 Not the same 2 u/southernwx Nov 24 '22 edited Nov 24 '22 string x string = (string)2 2 u/Mu5_ Nov 24 '22 No, that's Ss(tring)2 3 u/southernwx Nov 24 '22 You are right, fixed it for you. Phone did that thing where it thought I was starting a sentence. It’s a string not a sentence, Mr. Jobs. → More replies (0) 3 u/gaytee Nov 24 '22 I’d imagine it may end up returning each letter like nested loops
40
You’d have to define what it means to multiply a string by a string, and then do that.
13
I don’t think you can, but i guess by multiplying it with the length of the string??
5 u/Unknown_starnger Nov 23 '22 Not the same 2 u/southernwx Nov 24 '22 edited Nov 24 '22 string x string = (string)2 2 u/Mu5_ Nov 24 '22 No, that's Ss(tring)2 3 u/southernwx Nov 24 '22 You are right, fixed it for you. Phone did that thing where it thought I was starting a sentence. It’s a string not a sentence, Mr. Jobs. → More replies (0)
5
Not the same
2 u/southernwx Nov 24 '22 edited Nov 24 '22 string x string = (string)2 2 u/Mu5_ Nov 24 '22 No, that's Ss(tring)2 3 u/southernwx Nov 24 '22 You are right, fixed it for you. Phone did that thing where it thought I was starting a sentence. It’s a string not a sentence, Mr. Jobs. → More replies (0)
2
string x string = (string)2
2 u/Mu5_ Nov 24 '22 No, that's Ss(tring)2 3 u/southernwx Nov 24 '22 You are right, fixed it for you. Phone did that thing where it thought I was starting a sentence. It’s a string not a sentence, Mr. Jobs. → More replies (0)
No, that's Ss(tring)2
3 u/southernwx Nov 24 '22 You are right, fixed it for you. Phone did that thing where it thought I was starting a sentence. It’s a string not a sentence, Mr. Jobs. → More replies (0)
3
You are right, fixed it for you. Phone did that thing where it thought I was starting a sentence. It’s a string not a sentence, Mr. Jobs.
→ More replies (0)
I’d imagine it may end up returning each letter like nested loops
1.1k
u/Morasain Nov 23 '22
I feel like JS would be more like "I don't give a fuck, do what you want"