4 ms·
What R has going for it is ggplot2, which is heavily inspired by a formally validated "Grammar of Graphics" (see the L Wilkinson book). One of the main reasons
by epgui 4y ago
What R has going for it is ggplot2, which is heavily inspired by a formally validated "Grammar of Graphics" (see the L Wilkinson book). One of the main reasons why the tidyverse works so well is because it tends to follow the organizing principle of "tidy data" (see the H Wickham paper) with some combinator interoperability between packages. R itself is pretty insane ("bad") in terms of language design, even though it has some neat tricks and features.
Python is a much saner language than R (I am not talking of packages here), but it's still super clunky by design (less so than R). It can most certainly do all the things that R does, although its plotting libraries are either lacking in their design (matplotlib) or maturity (the other GoG-inspired libraries).
When you continue on your journey to learn more languages, at some point you realize that when you have a well-designed, simple and consistent language, you really don't need very many packages to get the job done fast. I had this a-ha moment with Clojure (although I find working with the JVM annoying).
- otabdeveloper4 4y ago> Python is a much saner language than R That's like saying that cat turds smell much better than dog turds. Maybe it's technically true, but let's not split hairs here.
- epgui 4y agoHaha I wouldn’t say it like that, but I’m pretty sure we feel the same way deep down. Regardless of how true your comment might be, this can seem a bit hostile or condescending to people who don’t have a “cleaner” reference point for language design. Or, in the “fog of war” of competing alternatives, it may even appear unreasonable to experienced programmers: we’re so used to thinking that everything is a tradeoff that over time we can forget that some things really can be “just better” than other things. Most of the time when we hear such claims, it comes from a place of subjective preference or over-generalization, so our brains pattern match strongly against that. And at the end of the day, as a practical matter, the best camera is the one you carry with you, and the best tool is the one you can use.