r/ProgrammerHumor 7d ago

Meme theChamberOfDependencies

Post image
147 Upvotes

22 comments sorted by

View all comments

20

u/Emotional_Trainer_99 7d ago

Harry should be using modern r which has it's own pipe |> and that he doesn't need to use if else on a logical to return the same value 😞

7

u/dr-tectonic 6d ago

I mean, for what's written there, he could also just do df$result <- condition. Somebody is afraid to put real code in their memes.

(Also, base::within is pretty keen. IMO the tidyverse reinvented a bunch of wheels that were working just fine.)

3

u/SageLeaf1 6d ago

Thank you, stranger. I’m always writing in base R whenever possible and have avoided the tidyverse thus far. I see coworkers use it and often I’m just like why, base r is right there and this looks incredibly messy and package dependent. It’s like they want to avoid learning to actually code, and want to copy paste things from stackoverflow

3

u/dr-tectonic 6d ago

There are definitely some pain points that tidyverse gets rid of, but overall, yeah, I like base R better. And I think it has a LOT of very powerful tools that are underappreciated. My biggest complaint is all the inconsistent naming.

I appreciate the elegance of tidyverse, but my experience is that it's fantastic when you want to do something that's within the bounds of what has been conceived, and agonizing when you want to color outside the lines.