Creator and co-founder of The Practical Dev, Ben is a software developer living in New York City.
I have been working on adding Klipse live REPL functionality to posts. It's not quite done for everybody to use, but here is the first post with that functionality. 😊
<pre class="snippet-for-evaluation eval-js"> [1,2,3].map((x) => (x * 10) + 1 ) </pre> </div>
I am still ironing out the details, so the functionality only works from my account for now, but this should be rolled out soon for all. It's a nice tool for certain posts that could make use of the interactivity for demonstration and learning. The code required to execute this functionality will only be present on pages that make use of this feature.
Here is the same map function as above, but in Ruby: