News for hackers. Stuff that matters.
Re:Ask HN: Programming – what changed your mind about a lang... by baldfat on Thursday November 02, 2017 @07:26PM (#15615314)
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/

2) Went through "Realm of Racket" with my 11 year old daughter. 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/

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.

Re:Ask HN: Programming – what changed your mind about a lang... by tudelo on Friday November 03, 2017 @01:32PM (#15620847)
Interestingly enough it was my first real programming language. Imagine going from that to Java -- quite shocking.
Re:Ask HN: Programming – what changed your mind about a lang... by putsjoe on Friday November 03, 2017 @05:42PM (#15622380)
Any details on how you managed to cut 1000 lines down to 40?
Re:Ask HN: Programming – what changed your mind about a lang... by baldfat on Wednesday November 08, 2017 @07:38AM (#15651780)
Yes 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.