154 points · by nikivi · 5y ago · 56 comments
https://www.reddit.com/r/lisp/comments/qlcza4/comment/hj22i7...
For most other practical purposes... probably Racket.
There are a few other options I still keep in mind, including Gambit and Chicken.
(Actually, lately, the "Lisp" I'm using is Python. Python is usually tolerable, and the huge ecosystem and easy employability are nice in some ways. But Lisp technical sophistication and community signal:noise ratio tend to increase with the percentage of parentheses. Not because parentheses are magical, though they are-- but because the parentheses Lisps are built on better original foundations, and then disproportionately attract people on technical merits rather than marketability.)
Do you think that's a reasonable way to become a more confident and employable programmer?
https://www.edx.org/course/how-to-code-simple-data
https://www.edx.org/course/how-to-code-complex-data
They use Racket and are based on the book How to Design Programs. I think they're a great supplement to SICP, which is an excellent book you should stick with. The book The Little Schemer is also helpful for solidifying recursion principles. The Programming Languages courses (Parts A, B, and C) on Coursera are excellent two. Part A uses SML, and is another good source for recursion practice, Part B uses Racket, and Part C uses Ruby.
Lastly, are you going through SICP using Scheme or Racket? If not, I highly recommend doing so (in the case you are using the Python version of the book, which has been modified heavily from the original).
[1] http://htdp.org
[2] https://mitpress.mit.edu/books/little-schemer-fourth-edition
http://www.smashcompany.com/technology/object-oriented-progr...
But IMHO the highest-value things you can do to become a better software developer are to simply practice software development of various kinds. Work on software development in a company, contribute to open source projects, do little personal side projects (that ideally you polish up with quality and documentation, so that other people can use/extend them, or sometimes move on because opportunity cost), etc. Experiment with styles, technical approaches, etc.
When you can, work on things you want to work on, and let your needs and curiosity there guide what you spend time learning and practicing.
When you really have to grind Leetcode for interview theatre reasons, it's not entirely without learning value, but it has very little to do with real-world software development. So don't waste all your time on Leetcode. Pass the interviews you want to pass, but otherwise spend your time on more substantial and rewarding things. IMHO.
https://jovian.ai/learn/data-structures-and-algorithms-in-py...
By the way, are you aware of the SICP Python version?
https://wizardforcel.gitbooks.io/sicp-in-python/content/
When feeling more confident you can even try a go at something like doing a toy compiler.
https://ruslanspivak.com/lsbasi-part1/
Or if you prefer a book instead,
https://www.amazon.com/Writing-Interpreters-Compilers-Raspbe...
Also being forced to read the docs b/c there are not as many YouTube videos and stack overflow answers has been great to get over my fear of doing that in python.
Lastly not having a specific library requiring you to develop more of the code from scratch, has helped me think about how to tackle harder problems on my own.
Some helpful tips for a beginner in Racket.
1. The Racket discord is very helpful
2. If you are having trouble debugging an error in Racket, and it isn’t giving you a specific line number. Try racket -l errortrace -t my-program.rkt
3. Racket has a vscode plugin called Magic Racket
4. Drracket’s syntax highlighting leaves a lot to be desired, but you can change what gets highlighted to a high degree of granularity in it’s settings
(https://github.com/bendudson/py4cl/ to use python libs from CL!)
https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
I went from racket to guile because I find guile more fun. For production things I would probably use racket (or even better Chez isbthat was an option), but guile is what I use to keep my soul.
Racket: From the people who brought you the quote: "the toplevel is hopeless".
There is good reason for it in the racket context, but if you want a lisp machine you should pick something else.
Racket has "batteries included", so it was just connecting the output of one library with the input of the next library. (And reading a few times the documentation. Everything is in the docs, but sometimes the examples are too dry and you must guess how to use it.)
With Racket, I miss having real threads and rich "batteries included" data structures as you'd find in Java and C#.
By real threads, I mean the ability to spawn a thread in Racket that corresponds to a new underlying operating system thread for that Racket process. Just like you get when you spawn a thread in Java.
[Balancing] Binary Search Trees as a standard that is available in many languages; B-Trees if memory locality is important; Skip Lists if there is data structure sharing between real threads and something like a Concurrent Balancing Binary Search Tree would have too much lock contention.
I have looked over the `data-red-black` library; I wish its interface was richer with `map`, `filter`, retrieving a range of values, partitioning/sliding over key-value pairs, and all the other generic sequence operations that hopefully Rhombus can enable for different underlying data structures.
[1] https://en.wikipedia.org/wiki/Arc_(programming_language)