HackerTrans
TopNewTrendsCommentsPastAskShowJobs

noctilux

no profile record

comments

noctilux
·قبل 5 سنوات·discuss
Coming from writing OOP-style code in Python and C++, I initially disliked R quite a lot. My code is becoming more functional-style by the year and I'm now finding myself enjoying R more and more.

There are issues with R: lots of weird quirks; many different ways of doing things, often just supported for legacy reasons; poor error messages; to name just a few. But on the positive side, it really encourages functional-style programming through the use of apply functions and many of the new tidyverse packages. The resulting code can be very neat and less error-prone than equivalent python code.

The S3 system of OOP initially struck me as very weird, but now I see it as essentially just single dispatch, not really much of OOP at all. It works quite well and is extremely simple.

I guess my thoughts are: approach R as a functional language, and I think you'll find much to like. Try to write C++ or python-style OOP in it, and you'll just find it very strange.
noctilux
·قبل 5 سنوات·discuss
Finally, an uplifting story about software.
noctilux
·قبل 6 سنوات·discuss
This was a fun read, thank you! Makes me appreciate how much is constantly reinvented as years go by...