0
Completed

Examples : Refactor by ourselves & Popovers

Antoine Denis 4 years ago updated by anonymous 4 years ago 1

We should have the possibility to try to refactor by ourselves.

Maybe show the code to refactor and an editor where we can try. When we're ready we can launch the step by step solution. 

(forget about the blue background in some part of the code, I didn't had the courage the remove it)

Image 291

In the end we can easily compare (as it is right now), but also with our own code.

Image 292


I did those screens quickly so you get the idea.

At least, we should be able to copy paste the code ('impossible' for now).

Also the popovers... pop overs the code itself. 

When you just start the example and you want to get the big picture of the code it's a bit annoying as you can't see the whole code.

You have to go to the next next in the hope it will move away and nothing will change.

Could we see the code before the first popovers appear ?

Answer

Answer
Completed

Thanks a lot for taking the time to describe your idea in details!


I considered this self-check approach a while ago when I produced the first version of the course. It's certainly doable, but since it also requires a proper code validation back-end for various programming languages. I didn't have the time & budget to accomplish all of it in v1.0. I also thought that if I had to implement the actual exercises, it would probably better to move all the practice into the actual IDE with some custom tutor plugin. There was another potential issue with tablets: at that time, they were too slow to process input in a web-editor and even now the actual input process leaves much to be desired.

Anyway, now after almost 5 years after initial release, I'm finally working on the second edition of the course. I planned to address the examples in the second edition as well, but I'm not yet ready to announce anything at this point. I'll certainly consider your suggestion once again when I start improving the examples.

Answer
Completed

Thanks a lot for taking the time to describe your idea in details!


I considered this self-check approach a while ago when I produced the first version of the course. It's certainly doable, but since it also requires a proper code validation back-end for various programming languages. I didn't have the time & budget to accomplish all of it in v1.0. I also thought that if I had to implement the actual exercises, it would probably better to move all the practice into the actual IDE with some custom tutor plugin. There was another potential issue with tablets: at that time, they were too slow to process input in a web-editor and even now the actual input process leaves much to be desired.

Anyway, now after almost 5 years after initial release, I'm finally working on the second edition of the course. I planned to address the examples in the second edition as well, but I'm not yet ready to announce anything at this point. I'll certainly consider your suggestion once again when I start improving the examples.