so Hi guys!
recently I saw many people coding in MV in many way's!
not that it's bother me not at all I love see manies way's people code even myself I code in a certain way's who are totally not the convention..but let's not speak JS convention...what I want to speak is more the 'coding' mindset in RM we currently have...
what I want to share is the fact that people tend to say "protect" your code from being edited by the other....and ect...what's could be good for Website or any other application ...Although this..not a good mindset for when you are coding in MV...why?
Simply because we are not alone...we are not only one programmer one plugin....we all "interact" with each other and we have to deal with many possible incompatibility ect...
Although people tend to use the anonymous function who are good for LOCK the global variable declared inside the plugin this what the intention it's was done for and when you code it properly anonymous function is candy ect.
Although when I see this :
(function(){
function SomeClass() {this.initialize.apply(this,arguments);}
SomeClass.prototype.constructor = SomeClass;
SomeClass.prototype.initialize = function() {
// material
};
})();
// the problem with this function is that it's make it private to the PLUGIN only you can't edit it externally or make any compattibility snipset plugin for it.
// the "good" way's for at least left programmer access this said function for edit or make any kind of extentions plugin ect... would be to do that.
function SomeClass(){this.initialize.apply(this,arguments);}
SomeClass.prototype.constructor = SomeClass;
(function(){
SomeClass.prototype.initialize = function(){
//material
};
})();
// with this said method you can left anyone edit the class for compatibility ALTHOUGH when declaring new class it's useless to input anonymous function
// anonymous in my opinion should be use for alias / parameters
// or in best resort use a object for store your parameters.
SO this not really concern people who use modular coding such yanfly since their code are open.
and I am saying we MUST do that I am just saying...please stop making your code "freezed" or impossible to be edited...it's just make your plugin so much incompatible and a pain to work with...and honestly we should not have this stupid mindset of "protecting" our code in MV when...we are supposed to be a community who help each other honestly...
I respect other people coding...but just when you are declaring a new function who affect thing's such "menu" or battle....at least declare the new class outside of the anonymous function so this will be far more easier!
SO I mean I am open to speak about the way's to code in MV
Honestly I think in my opinion anonymous function should be restrict to alias or parameter stuff honestly...
or I mean you can also use the modular way's for store your parameters or any other way's lol they have so manies way's to input stuff....
Anyway's hope you guys can understand...I am not searching fight I am just stating my opinion.
recently I saw many people coding in MV in many way's!
not that it's bother me not at all I love see manies way's people code even myself I code in a certain way's who are totally not the convention..but let's not speak JS convention...what I want to speak is more the 'coding' mindset in RM we currently have...
what I want to share is the fact that people tend to say "protect" your code from being edited by the other....and ect...what's could be good for Website or any other application ...Although this..not a good mindset for when you are coding in MV...why?
Simply because we are not alone...we are not only one programmer one plugin....we all "interact" with each other and we have to deal with many possible incompatibility ect...
Although people tend to use the anonymous function who are good for LOCK the global variable declared inside the plugin this what the intention it's was done for and when you code it properly anonymous function is candy ect.
Although when I see this :
(function(){
function SomeClass() {this.initialize.apply(this,arguments);}
SomeClass.prototype.constructor = SomeClass;
SomeClass.prototype.initialize = function() {
// material
};
})();
// the problem with this function is that it's make it private to the PLUGIN only you can't edit it externally or make any compattibility snipset plugin for it.
// the "good" way's for at least left programmer access this said function for edit or make any kind of extentions plugin ect... would be to do that.
function SomeClass(){this.initialize.apply(this,arguments);}
SomeClass.prototype.constructor = SomeClass;
(function(){
SomeClass.prototype.initialize = function(){
//material
};
})();
// with this said method you can left anyone edit the class for compatibility ALTHOUGH when declaring new class it's useless to input anonymous function
// anonymous in my opinion should be use for alias / parameters
// or in best resort use a object for store your parameters.
SO this not really concern people who use modular coding such yanfly since their code are open.
and I am saying we MUST do that I am just saying...please stop making your code "freezed" or impossible to be edited...it's just make your plugin so much incompatible and a pain to work with...and honestly we should not have this stupid mindset of "protecting" our code in MV when...we are supposed to be a community who help each other honestly...
I respect other people coding...but just when you are declaring a new function who affect thing's such "menu" or battle....at least declare the new class outside of the anonymous function so this will be far more easier!
SO I mean I am open to speak about the way's to code in MV
Honestly I think in my opinion anonymous function should be restrict to alias or parameter stuff honestly...
or I mean you can also use the modular way's for store your parameters or any other way's lol they have so manies way's to input stuff....
Anyway's hope you guys can understand...I am not searching fight I am just stating my opinion.
