r/functionalprogramming • • Oct 03 '23

Question Stuck in tutorial hell

How can I get out? I want too much at once and can't decide which language to learn first. I switch from one language to another. I have tons of books, watch video after video. I've tried doing the Exercism tracks, but I always get stuck early, mostly because I don't quite understand what the goal of a task is (I'm not a native English speaker).

I mainly want to learn Python, Rust, Elixir, F#, maybe even Haskell. But I keep going in circles. I don't know what kind of project to start with because I have many interests.

I want to learn to program in a more functional style, even in languages like Python. I know I should pick one interest, choose a language and start with a project, but it is hard to stay on track.

How can I break out of the circle of tutorial hell?

12 Upvotes

29 comments sorted by

View all comments

Show parent comment

1

u/Voxelman Oct 03 '23

Ok, but what exactly do you mean with "a lisp"? Lisp like the language?

3

u/-w1n5t0n Oct 03 '23

Yes; but Lisp, unlike most other languages, usually refers to a pretty broad family of languages that have many things in common:

  • Common Lisp, the "grand daddy". A super mature and ANSI-standardised project with many solid implementations, can do many different styles of programming so may not be a great first choice if you mostly want to focus on functional programming.
  • Scheme, the elegant , lean, simple-yet-powerful Lisp.
  • Racket, the younger offspring of Scheme that's focused on metaprogramming and easily making mini-languages.
  • Clojure, the elegant-yet-practical Lisp that lives on the JVM (so you get all of Java's power for free, without having to touch any Java).
  • Emacs Lisp, the "yo dawg, I heard you like programming so I put a programming language in your code editor so you can code while you code".
  • Hy, a Python-hosted Lisp that's basically Python but with a Lisp syntax.

Out of all of these, I would either recommend Scheme or Clojure. Scheme is a classic and there are many textbooks around it (Structure and Interpretation of Computer Programs is a must if you want to learn functional programming). Clojure is rapidly becoming a classic and brings some fresh and opinionated new ideas to the Lisp table, such as "immutable-by-default" data types, simple data literals for hash maps and vectors etc.

2

u/Jazzlike_Sky_8686 Oct 03 '23

Without trying to fall into any semantic traps, I mean a language that looks like a lisp, so (add 1 2 (mul x y 10)) style syntax. I only suggest it because they're very easy to parse but can be extremely expressive without a lot of "what does that syntax look like" questions.

2

u/Voxelman Oct 03 '23

Got it. Maybe I can even start simpler with a polish notation Parser?