What are you talking about? Literally all of Luna's code is commented from top to bottom since its creation. We didn't do any 'update' or lack of documentation. :1LOL - Really?> I found more than half of the scripts in luna to have little to zero documentation at all. Literally, there are scripts without a single line of comment. Perhaps they have updated it since then![]()
Modules are pretty obvious and something we didn't want people to tinker with.Not all of it no.. Don't want to go inking the actual code but here are some scripts to highlight this...
Module MenuLuna, Module BattleLuna, Lunatic Common, 'Default Status Menu' doesnt have much information on what its actually doing or how to use it, Elements Active Battler..
Dont get me wrong, most of it is documented and there are obviously the guides and such. As I said, I hadn't looked at it much so I was only commenting from my initial couple minutes of looking at it.![]()
Enelvon and I have been doing this for a long time now -- I'm honestly surprised that no one noticed or commented on that. All of our scripts are marked up with YARD formatting so that they can be processed by yardoc to provide very complete, readable documentation for developers. We also recently started hosting some of that documentation directly online via GitHub Pages, so some of our scripts focused towards script authors have complete technical documentation available at all times online. The SES Console, for example, has complete documentation here.Though, generating 3rd-party documentation automatically doesn't seem like a bad idea
http://rdoc.sourceforge.net/doc/index.html (http://rdoc.sourceforge.net/doc/classes/Anagram.html)
http://www.rubydoc.info/gems/yard/file/docs/GettingStarted.md
# ------------------------------------------# something# arg1 : type# Does this. Mind these things, and such.# ------------------------------------------def something(args) blahend
Personally, with some of my scripts I literally dont want people to be using the methods - so I purposely obfuscate them. Dont think its easier to leave them out or anything - yea, it does take more time to add them in, but its not a difficult thing to doObfuscating/minimizing code comments just because 'it is just prudent to' is lazy-minded, and if the dev has the time or the will, making it more clear where certain boundaries of code, comments, etc begin, and end, will help other developers to traverse the dev's code so much more easily.
If I see a script with obfuscated methods, I don't use it. Simple as that. I need to know that I can see -- and without a lot of added headache -- what a script does, because chances are I might have to make compatibility changes to my scripts to support them.Personally, with some of my scripts I literally dont want people to be using the methods - so I purposely obfuscate them. Dont think its easier to leave them out or anything - yea, it does take more time to add them in, but its not a difficult thing to do![]()
...then you're only hurting yourself.The scripts in question I generally do not intend for others to use, which is why I obfuscate.![]()
I generally do this. I make a 'mk I' version of the script and keep that safe and unreleased. Then i begin obfuscation.If you are interested in obfuscating your code you should consider writing clean source and releasing obfuscated versions. By that I mean use a tool to obfuscate it.
The majority of RM scripts do not code as libraries, but code to serve specific use cases.To me, a good library is one you don't have to modify. It provides a reasonable API which is well documented and accessible, and occasionally a DSL for using it if it's complex enough.
No, the art is making it to where they don't even have to read the code to get it to run, nor do they have to really modify it.