Okay… that could be another tropic we could work on… bash script example to accomplish xyz task. Thanks for the idea.
This thing here is more for existing tutorials that may have scenarios where you can run an example directly on the website, instead of doing it in your terminal.
Personally, I don’t need it and I don’t think it adds remarkable value.
But as long as not every posted bash snippet will be automatically rendered this way, might be OK.
Hi @abhishek I think that would be a great addition. For me, having a sandboxed environment while testing those I would like to try, is a safe way to learn. Would we get error messages for wrong syntax, etc.? Help from the community would be much simpler if it is right here on ItsFOSS.
Being able to practice what I learn in those series is definitely a +1 for me!
Sort of… Like there is bash tutorial that teaches the basic concepts. If simple examples can be followed directly on the website, it may help some learner as they won;t have to open their terminal and they can practice along with reading the chapters.
I studied Kotlin on Hyperskill’s website for a while, and they provided a page where I could write code to test what I believed would provide the expected answer/solution to multiple choice questions at the end of the chapters/sections I learned. I found that site to be very helpful. Of course, there were also questions that asked me to write a program based on specifically provided specifications too.
I think that having bash scripts that I can run on the website could be useful to users who are learning to write scripts, especially if you ensure that what ‘students’ see is properly formatted. Then tutorial students would see properly formatted code as well as being able to run/edit the scripts to see how code changes effects the output/result. At present, when I go through a tutorial, I put Firefox on one side of my screen, and a terminal window on the other so I can run the code I see in the tutorial, unless it looks like it would persistently change my system configuration. I say Go for it!