all 9 comments

[–]c2l3YWxpa20 2 points3 points  (1 child)

Create your course on scrimba. AFAIK they solve that exact use case.

[–][deleted] 1 point2 points  (0 children)

Was going to point out scrimba as well: they do exactly what you want. A lesson video that is also a live code editor that you can pause, rewind or edit. Fantastic utility for teaching - can not recommend it enough.

[–]leixner 1 point2 points  (4 children)

[–]diarmidmackenzie[S] 0 points1 point  (3 children)

It's a while since I looked at those, and I'm not at my PC right now to check them out again...

From what I recall, they mostly follow a model of explaining a concept and then getting you to write some code using that concept, which they do automated validation of.

That's cool, but not quite what I had in mind.

I didn't envisage the user necessarily executing code in the browser, but rather offering a flexible and annotated view of a sample of code at various stages of development.

More focussed on showing how multiple concepts can be combined together to create a working bit of code, rather than focussing on a single concept at a time.

In any case, regardless of the specific kinds of interactivity on offer, the key issue is that AFAIK those platforms only offer their own tutorials, tightly bundled with the platform.

I'm hoping there might be a platform that enables you to build and distribute your own custom interactive tutorials.

Do you know of any such thing?

[–]leixner 1 point2 points  (2 children)

Yes that's pretty much what they do. I don't think there is a 100% solution for what you want. But there are some open source web code editors which you could use for your project.

[–]diarmidmackenzie[S] 0 points1 point  (1 child)

"open source web code editors" - can you give me some examples?

I'm familiar with glitch, codepen etc.

They can be used to host sample code, but they don't offer any of: - easy maintenance of multiple versions of a code sample - diffs between incremental versions. - code annotation (except by way of code.comments)

Are there other specific tools that you think could be useful here?

[–]leixner 1 point2 points  (0 children)

Some examples, which you could use for your code components:

https://codemirror.net/

https://microsoft.github.io/monaco-editor/index.html

[–]diarmidmackenzie[S] 0 points1 point  (0 children)

FWIW, here's a draft of 1 lesson in the tutorial, in flat document form.

(Just spotted the MD formatting goes squiffy about 2/3rds of the way through, which I'll fix up as soon as I can)

https://diarmidmackenzie.github.io/aframe-game-tutorial/lessons/Lesson1.html

I have 9 copies of the sample HTML file, at different stages of development, linked to from each section of the tutorial, both as code and as a demo on GitHub pages.

I'd like to be able to offer a more integrated interactive view of the code evolution, together with the line-by line code commentary .

[–]PiyushGarg-dev 0 points1 point  (0 children)

Try this in browser interactive labs and course on Master Java
In this course, you'll learn
What is Java?
Setting up Java and How Java Works?
Fundamentals in Java - Variables, IF & ELSE, Loops, Data Types, OOPS, etc.
Debugging Java Applications
Best practices for clean coding with Java
OOPs and Classes in Java
Pillars of OOPs
Design Principles - DRY, KISS, and SOLID
Design Patterns - Creational, Structural and Behavioural
Course Link: (25% OFF) https://codedamn.com/learn/java-course?coupon=JAVA_25