[HN Gopher] Show HN: ReplPad - Repl/Scratchpad
       ___________________________________________________________________
        
       Show HN: ReplPad - Repl/Scratchpad
        
       Author : amadeuspagel
       Score  : 15 points
       Date   : 2021-05-03 21:49 UTC (1 hours ago)
        
 (HTM) web link (replpad.com)
 (TXT) w3m dump (replpad.com)
        
       | ahelwer wrote:
       | What programming language is this? Is it available as some kind
       | of framework for spinning up your own REPL website for your own
       | language?
        
         | amadeuspagel wrote:
         | It's javascript. It's not available as a framework, but you can
         | make your own repl website based on the code.[1]
         | 
         | [1]: https://gitlab.com/amadeuspagel/replpad
        
         | gregsadetsky wrote:
         | It's JavaScript. The REPL's code is evaluated by the page's
         | JavaScript -- look directly in the page's source, there's an
         | 'eval' call that evaluates the REPL's code.
        
         | jedimastert wrote:
         | Looks like it's just directly `eval`ing vanilla JS
        
       | amadeuspagel wrote:
       | A few hours ago I was doing "repl driven development", meaning
       | that I experimented with the repl, closed it by mistake
       | (confusing Ctrl+D and Ctrl+C), tried to get the state I had
       | before back using the up key, copied the history file into the
       | project folder, removed everything unnecessary and pasted it into
       | the repl again, and then kept developing by editing that file and
       | pasting the result into the repl. I felt that this can't be it
       | and made this as a demo of what I think a repl should be like.
        
         | [deleted]
        
       | kickopotomus wrote:
       | This is a neat little project and all but what is the value
       | proposition? The JS console of any modern browser is much more
       | feature-full.
        
       | jedimastert wrote:
       | This is pretty fun. Reminds me of a bookmarklet I have somewhere
       | that makes a self-editable webpage.
       | 
       | The only suggestion I have would be to make the right textarea
       | non-editable, although I don't know how to do so while keeping
       | selectability
        
         | amadeuspagel wrote:
         | Done. It actually keeps selectability by default, at least in
         | chrome and firefox.
        
       | [deleted]
        
       ___________________________________________________________________
       (page generated 2021-05-03 23:00 UTC)