News for hackers. Stuff that matters.
Re:Lambda.r Functional Programming in R by mushufasa on Tuesday December 29, 2020 @02:11PM (#25573540)
I agree with this.

That said, a lot of the use-case of R is one-off scripts, run locally on a machine by an analyst, as part of preparing a written report for non-technical stakeholders. So the code readability isn't as important.

This is both a strength and weakness of R in general. The R community has many different ways to accomplish the same goals. Production systems decline to use R in large part because of the code maintenance burden across a team, versus Python's "one right way" approach.

Re:Lambda.r Functional Programming in R by mespe on Tuesday December 29, 2020 @06:07PM (#25576180)
Every time I think code readability isn't important, I am inevitably proven wrong. Either I need to go back months later and need to figure out what I did, or I end up sharing with others. Even those one-off, "never going to touch this again" scripts.
Re:Lambda.r Functional Programming in R by matmatmatmat on Tuesday December 29, 2020 @04:24PM (#25575223)
I wonder how true this "one right way" is? For instance, I've seen multiple ways to do the same thing in Pandas.

Does it come down more to an agreement among the team about how code should be written?

Re:Lambda.r Functional Programming in R by notagoodidea on Wednesday December 30, 2020 @04:41AM (#25580149)
I found that the "one right way" python's mantra fall apart when it comes to pandas and numpy. Those libraries must be seen as DSL on top of the language IMHO.