I have realized not too long ago that I learn new programming things well by seeing other, better people's code. I have even learned some things from the open-source plugins of Yanfly. So I was just wondering, can anyone give me any ideas/tips on how I can obtain certain codes and how I can maximize learning by seeing other people's code and studying it?
MV Learning coding/JavaScript by seeing other people's code?
Learning JavascriptIf you're looking at the default code, you're already learning someone's code. There is a lot of insight you can get if you're new to programming just by looking at the default code.
Although, it ultimately depends on the quality of the code itself. Some of the codes aren't worth reading. Some are just straight confusing. What I could say is just "what is this dev trying to achieve by writing this", or at least what they were assuming.
Although, it ultimately depends on the quality of the code itself. Some of the codes aren't worth reading. Some are just straight confusing. What I could say is just "what is this dev trying to achieve by writing this", or at least what they were assuming.
I concur with TheoAllen. I personally want to add that I think there is nothing wrong with looking at other people's code for studying and practicing, as long as you write manually from scratch after the code study. Play around with private practicing until it's all second nature.
Yeah agreed that looking at other people's code and understanding what they are trying to achieve is good.
One thing I think gets lost there is the process which the developer took to create that plugin. For someone with less experience I've seen people struggle with confidence issues when they see a massive plugin developed by an advanced scripter in the community. Questions such as: how can I ever get that good? How did they do this? I think there is value in seeing how scripters are just regular people who need to look things up on a search engine / do a significant amount of research into core classes before diving into their own script / etc.
So going back to the main topic, yeah I think there's something to learn from seeing other people's code, going through all the plugin releases for each engine is a good starting point. But I would also encourage you to find any "let's code" style YouTube videos that show people going through their coding development process. Doesn't have to be strictly RPG maker based but could be helpful just in seeing how JavaScript developers code.
One thing I think gets lost there is the process which the developer took to create that plugin. For someone with less experience I've seen people struggle with confidence issues when they see a massive plugin developed by an advanced scripter in the community. Questions such as: how can I ever get that good? How did they do this? I think there is value in seeing how scripters are just regular people who need to look things up on a search engine / do a significant amount of research into core classes before diving into their own script / etc.
So going back to the main topic, yeah I think there's something to learn from seeing other people's code, going through all the plugin releases for each engine is a good starting point. But I would also encourage you to find any "let's code" style YouTube videos that show people going through their coding development process. Doesn't have to be strictly RPG maker based but could be helpful just in seeing how JavaScript developers code.
Original thread: https://forums.rpgmakerweb.com/threads/learning-coding-javascript-by-seeing-other-peoples-code.143524/