Self-proclaimed jack of all trades
- Mar 16, 2012
- Reaction score
- First Language
- Primarily Uses
The problem with "newbie programmer wants to learn by looking at how people code it" is that, most of them begin to just use IIFE for the sake of IIFE because people do it. For plugin dev, it makes their code can not be overridden outside of it. You have to directly edit the plugin file so you can not make a separate patch to preserve the original code or make a compatibility patch for two or more plugins.the problem come from the newbie to rm who wants to learn programming. Normally you look at how people does it right? (which I did in the past) then look the code base but now MOST and I can tell you will write in ES6 and when people will look the codebase and the plugins they will be like : why it's written differently?
Come to think of it, what is the benefit of IIFE to plugin devs?
My point is different programming and different environments call for a different paradigm. RPG Maker default code is not responsible to teach them how to actually write proper code. They need to learn about the environment. It just a part of being a programmer.