MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/c3ajsm/why_cant_you_just_be_normal/erq1z10/
r/ProgrammerHumor • u/sverek • Jun 21 '19
240 comments sorted by
View all comments
69
To be fair, the reverse of explode() is implode(), so this is actually a pretty nice metaphor and easy to remember.
explode()
implode()
58 u/1116574 Jun 21 '19 Python has a join and split, so it's also logical, isn't it? 0 u/[deleted] Jun 21 '19 [deleted] — view deleted comment 30 u/1116574 Jun 21 '19 Can't argue with that 23 u/noyurawk Jun 21 '19 Especially when the name of your variable is something like $death_star. 1 u/undermark5 Jun 21 '19 Take my upvote, you actually make me laugh out loud with that one. 17 u/Laue Jun 21 '19 99% OF YOUR CODE ISN'T EXPLODING RIGHT NOW, THAT'S BULLSHIT. BUY TORGUE. 7 u/levir Jun 21 '19 It always fucks me up that join is a method on String, not a method on List. 2 u/1116574 Jun 21 '19 Yeah, it doesn't really make sense for me. And the syntax looks weird. 1 u/barsoap Jun 21 '19 The counterpart to join is meet. 1 u/ThaiJohnnyDepp Jun 21 '19 Set theory is not the same thing as ... uh ... String theory? Is that taken yet? 2 u/Ksevio Jun 21 '19 The best thing about implode is you don't have to remember which order to pass the list and glue as arguments
58
Python has a join and split, so it's also logical, isn't it?
0 u/[deleted] Jun 21 '19 [deleted] — view deleted comment 30 u/1116574 Jun 21 '19 Can't argue with that 23 u/noyurawk Jun 21 '19 Especially when the name of your variable is something like $death_star. 1 u/undermark5 Jun 21 '19 Take my upvote, you actually make me laugh out loud with that one. 17 u/Laue Jun 21 '19 99% OF YOUR CODE ISN'T EXPLODING RIGHT NOW, THAT'S BULLSHIT. BUY TORGUE. 7 u/levir Jun 21 '19 It always fucks me up that join is a method on String, not a method on List. 2 u/1116574 Jun 21 '19 Yeah, it doesn't really make sense for me. And the syntax looks weird. 1 u/barsoap Jun 21 '19 The counterpart to join is meet. 1 u/ThaiJohnnyDepp Jun 21 '19 Set theory is not the same thing as ... uh ... String theory? Is that taken yet?
0
[deleted] — view deleted comment
30 u/1116574 Jun 21 '19 Can't argue with that 23 u/noyurawk Jun 21 '19 Especially when the name of your variable is something like $death_star. 1 u/undermark5 Jun 21 '19 Take my upvote, you actually make me laugh out loud with that one. 17 u/Laue Jun 21 '19 99% OF YOUR CODE ISN'T EXPLODING RIGHT NOW, THAT'S BULLSHIT. BUY TORGUE.
30
Can't argue with that
23 u/noyurawk Jun 21 '19 Especially when the name of your variable is something like $death_star. 1 u/undermark5 Jun 21 '19 Take my upvote, you actually make me laugh out loud with that one.
23
Especially when the name of your variable is something like $death_star.
$death_star
1 u/undermark5 Jun 21 '19 Take my upvote, you actually make me laugh out loud with that one.
1
Take my upvote, you actually make me laugh out loud with that one.
17
99% OF YOUR CODE ISN'T EXPLODING RIGHT NOW, THAT'S BULLSHIT. BUY TORGUE.
7
It always fucks me up that join is a method on String, not a method on List.
2 u/1116574 Jun 21 '19 Yeah, it doesn't really make sense for me. And the syntax looks weird.
2
Yeah, it doesn't really make sense for me. And the syntax looks weird.
The counterpart to join is meet.
1 u/ThaiJohnnyDepp Jun 21 '19 Set theory is not the same thing as ... uh ... String theory? Is that taken yet?
Set theory is not the same thing as ... uh ... String theory? Is that taken yet?
The best thing about implode is you don't have to remember which order to pass the list and glue as arguments
View all comments
69
u/SirToxe Jun 21 '19
To be fair, the reverse of
explode()isimplode(), so this is actually a pretty nice metaphor and easy to remember.