As someone who has written a tool to minify code I do have some thoughts about this:
Firstly I think it is helpful to distinguish between minification and obfuscation. I would define minification as reducing source size without changing how it works. The best example of this is Google's
closure compiler. This can perform varying levels of minification from stripping whitespace, to shortening variable names through to more advanced techniques such as constant folding and function inlining. This can be used to make code less readable but I don't think it hides intent -
tools like this allow you to pretty-print code, the Lua plugin for IntelliJ allows you to reformat code and then rename variables - performing the minification process in reverse.
Minification is a very useful tool. It cuts Howl's size from 109kB to 49kB - more than a 50% reduction. For a large program such as OneOS this could really solve the issue of disk space. I think the issue with blocking minification is that in the end all it is is a badly formatted program :)/>.
Obfuscation however is rewriting code to hide intent. You can see some pretty impressive examples on the
wiki page. I don't think we have, or ever will, see code that attempts to do that - after all there is no reason that you would want to. I think if someone released obfuscated code then questions would have to be asked.
Personally I think CloudNinja's perspective is slightly off - what they are describing sounds pretty like advanced malware targeting what is most commonly used to automate basic Minecraft tasks: we do need some perspective. However maybe the moderators could say how much malware is a problem - though I have never noticed it.
On the topic of open source - do it. We have a
wonderful community on the forums. I post code because I enjoyed writing it, I think other people will find it useful, and because I want other people to make it better. The last of those is really important - ComputerCraft is a great way to learn. If we then start not open sourcing code - what do we stand to gain?
TLDR:- Minification helps save space - good idea
- Obfuscation is less of good idea
- Malware for CC isn't really advanced
- Open source is good - if you are going to release minified sources then also provide some source of unminified code.
Sorry for the massive, slightly incomprehensive post