If I gave you a piece of code and I said it satisfies all your requirements , is bug-free, handles all the edge-cases, you would be delighted at the moment, for it is like a god-sent gift from heaven. There is another side to this story, it being guilt. You know the code works, but just don’t know HOW? Well, that’s the million dollar question right?
PS : The ‘HOW IT WORKS’ is the most important question!
I am sure a lot of us would have faced such a situation at some point. Let’s be honest, the sense of contentment and delight is totally at another level when you analyse problem statement on your own,write code for it , fix a million bugs on the way finally see it working . Feel that adrenaline rush ? I am supposing you do .This is something none of you can disagree about .
“Seeing is believing” , so unless you actually tried out, you wouldn’t be completely convinced . You would find code from all sources, maybe lookup the documentation or a few other sites on the internet. And then the process begins, copying the code in your own editors, changing it to cater to your needs and so on, sounds like a tedious process right ? So the idea would be to have dynamic code instead of static code at places where this code is found.
Convinced of this, GITHUB finally introduced Codespaces, a direct integration with Visual Studio Code, this is still in the Beta Version, I am all excited to use this as soon as it is released. Instead of having code snippets all over the internet, I would be a better idea to have an option to run a given code snippet and test its functionality, maybe make a few changes , at the place you find it, this can be integrated with the cloud. It would require a little restructuring of the current existing systems but I believe it would benefit developers and all would get a better understanding of what they are working with. In this way, you can choose what exactly suits your need and it will be more efficient.
Do you agree?