3 ms·
I have been programming R for some work and enjoyed it but it wasn't very good code. So after digging a while to figure out how to get better with R I learned R
by baldfat 9y ago
I have been programming R for some work and enjoyed it but it wasn't very good code. So after digging a while to figure out how to get better with R I learned Racket.
1) "How to Design Programs" is the best book I have ever gone through for any language. http://www.htdp.org/ http://www.htdp.org/
2) Went through "Realm of Racket" with my 11 year old daughter. http://www.realmofracket.com/ http://www.realmofracket.com/
3) The documentation is the most consistent and well maintained. they created their own language 'pollen' just for this purpose. Best thing ever. https://docs.racket-lang.org/ https://docs.racket-lang.org/
4) I thought this was an academic playground and wasn't going to stick beside teaching me. Well, it is just awesome. I don't really touch Python much and my R code is light years better. I just went through a 1000 line program in R and It is now 40 lines.
Have been hobbyist programmer since 1978 and love Racket more than the other languages.
- tudelo 9y agoInterestingly enough it was my first real programming language. Imagine going from that to Java -- quite shocking.
- putsjoe 9y agoAny details on how you managed to cut 1000 lines down to 40?
- baldfat 9y agoYes I was able to make concise higher functions and iterate them. Before I went through learning Racket I was doing a lot of repeating things with slightly different changes. I figured out how to attack the problem in a repeatable concise way.