News for hackers. Stuff that matters.
Re:Show HN: Leporello.js – interactive functional programmin... by BobJS on Tuesday October 03, 2023 @05:16PM (#37757687)
Are you using the monaco editor? If so please enable the autoClosingBrackets:

```js

monaco.editor.create(document.getElementById('container'), {

    value: 'const myVar = hello',

    language: 'javascript',

    autoClosingBrackets: 'always'  // <--- This
});

```

When I highlight "hello world" and press ', I want to see "'hello world'" instead of "'"

All that aside, awesome project

Re:Show HN: Leporello.js – interactive functional programmin... by dmitry-vsl on Tuesday October 03, 2023 @05:25PM (#37757781)
Thank you for the suggestion! I am using the Ace editor. I will consider adding a configuration option, but my main goal is to build a VSCode plugin, so all the configuration will be left to the user.
Re:Show HN: Leporello.js – interactive functional programmin... by meowtimemania on Tuesday October 03, 2023 @06:01PM (#37758195)
sounds amazing. Your tool is super useful for understanding recursive functions. Only thing I felt that I was missing when using this was a format button to fix the formatting of my code.
Re:Show HN: Leporello.js – interactive functional programmin... by dmitry-vsl on Tuesday October 03, 2023 @06:11PM (#37758302)
Thank you for your feedback! I believe it has some value in teaching programming in the spirit of "Structure and Interpretation of Computer Programs." There is a JavaScript edition of the SICP book. I believe Leporello.js would be a nice environment for students to solve problems from this book.