Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why isn't REPL-style development more common in Ruby?

It looks like Lisp and Clojure programmers often develop programs directly in the REPL. cf. Clojure Development: IDE or REPL?

My question is, why isn't this approach more common in Ruby, via irb? Is this just a cultural difference, or are there structural (language-specific) reasons why REPL-centric development is more common with Lisps than with languages like Ruby and Python?

like image 924
dan Avatar asked Feb 02 '11 20:02

dan


People also ask

Does Ruby have a REPL?

IRB is the built-in Ruby REPL that every Ruby developer is familiar with. It doesn't have many features, but it does what it's supposed to. You type in code & you get the results back.

What is REPL driven development?

REPL driven development is the foundation of working with Clojure effectively. The REPL is an instant feedback workflow that continually runs your code without the need to manually run an explicit compile-build-run cycle. The REPL contains the live application to which you interact with by calling (evaluating) code.


1 Answers

Lisp syntax seems to lend itself very nicely for a combined REPL-and-source-file approach. It is much easier to move code snippets around programmatically when the textual limits of each form are clear.

like image 96
Svante Avatar answered Sep 20 '22 10:09

Svante