Skip to content

Commit 49cf24d

Browse files
committed
Add docs for day 18
1 parent 9eed858 commit 49cf24d

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

18-r/README.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Day 18: R
2+
3+
## Previous Experiences
4+
5+
None.
6+
7+
## Notes
8+
9+
I heard good things about R of people using it for some university related projects.
10+
11+
But I can't confirm that.
12+
13+
One of the biggest flaws of R is that it is only call-by-value.
14+
There is literally no simple call-by-reference.
15+
16+
Another thing that comes on top is the whole fuckup that R's lists are.
17+
Not only you have to index them with `[[i]]` instead of `[i]` (because that gives you a singleton list, for some reason),
18+
being a key feature of R they're missing a lot of functionality.
19+
20+
For example there is no simple way to insert to a list. There just isn't.
21+
There exist hacky workarounds with sorting and some indexing magic and there are literally libraries for this but this should really be a core feature.
22+
23+
The whole file inclusion system is just bad and feels on one layer with that of C.
24+
And we all know how we hated C for `#include`.
25+
26+
R feels like a giant fuckup.
27+
There might be some useful stuff in it but if you try to do anything that isn't exactly intended by the authors,
28+
then you'll have to rely on external libraries or prepare for writing lots of utility stuff.
29+
It feels like a functional language (like Haskell) but without all the stuff that makes functional programming fun.
30+
31+
This was the worst language so far. And yes, this tops Chef.

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ I'll try to choose a different programming language that I am more or less famil
2222
| [15](15-php) | [`PHP`](https://en.wikipedia.org/wiki/PHP_(programming_language)) | - |
2323
| [16](16-js) | [`JavaScript`](https://en.wikipedia.org/wiki/JavaScript) | - |
2424
| [17](17-clojure) | [`Clojure`](https://en.wikipedia.org/wiki/Clojure) | - |
25+
| [18](18-r) | [`R`](https://en.wikipedia.org/wiki/R_(programming_language)) | - |

0 commit comments

Comments
 (0)