4 ms·
I appreciate Racket's huge emphasis on making it easy to get started. Not relying on complicated tooling (but making it possible for advanced users to do so) ma
by gcr 10y ago
I appreciate Racket's huge emphasis on making it easy to get started. Not relying on complicated tooling (but making it possible for advanced users to do so) makes Racket an incredible way to begin learning Lisp.
Follow along, hacker news comment reader! This only takes a second!
1. Download and install http://racket-lang.org/ http://racket-lang.org/
2. Open Racket
3. Type the following into the top text box and click "Run":
#lang web-server/insta
;; A "hello world" web server
(define (start request)
(response/xexpr
'(html
(body "Hello World"))))
4. Read about the webapp you just wrote: https://docs.racket-lang.org/continue/index.html https://docs.racket-lang.org/continue/index.html
Everything builds off of that.
No need to putz with the command line (but you can $ racket that-file.rkt if you want to). No need to fight with Homebrew and Racket's package manager (but there is a package manager if you want it). No need to install support for your own text editor (but if you don't want to use DrRacket, you are more than welcome to Emacs-Major-Mode it up if you want).
- hkjgkjy 10y agoRacket does it so well! I presume Clojure can't, because it is for good and bad tied to the JVM platform, and has to be bothered with classpaths, classes & methods and what I call "the java mindset" of crazy XML-heavy mazes.