So if you are a web developer or have done any web development in the last few years or have any experience programming in javascript you will know that there is a lot of really cool things happening. One of them is https://babeljs.io/
This will allow you to to import other scripts into your scripts, write ES6 code and use third party libraries and if you use react it will compile your JSX code down to javascript.
According to my research I did last night, when yanfly launches a console, we get a chrome console. This means that the game (be it on mac or windows) is wrapped in a chromium based environment. What does that mean?
Just because they (the people who wrote this engine) wrote it using ES5 code and wrote it using http://stackoverflow.com/questions/592396/what-is-the-purpose-of-a-self-executing-function-in-javascript (self executing javascript) Doesn't mean you cant write more ... advanced javascript. Which I intend to do.
This leads me to my question. In the past if you write RGSS code, you might release 2 or three scripts all at once some hundreds of lines long. With babel and other technologies like gulp you can write a whole library, many file long and concatenate it all and then minify it all and it will still run.
Minified code is impossible to read and modify, is the community allowing this? I am not against it, I am all for it. Not because you cant change it but because it allows you to add third party libraries, write more modular and testable as well as "clean" code.
For my purposes I would release scripts as a link to github or some other repository based place where you can download the whole component I release for RPG Maker that contains, as some will be familar with - a dist folder containing the minified and non minified version.
The introduction of Javascript really allows you to create some super complicated and super amazing things that you couldn't do before - I just want to know before I write the "next big thing" how the community expects there scripts?
If I provide a minified version you could still edit variables via the in system variable editor thing I saw in yanflys video, and if you really know javascript you could even get the un minified version, make changes and commit them back as a contribution.
With RGSS we pasted out giant ass scripts here, with javascript we can do 500x more. What rules if any is the community going to impose in terms of how you write code, how you deliver code and how you share code?
Or do we care?
Personally you better "use strict" in your code or I wont trust you 😛
This will allow you to to import other scripts into your scripts, write ES6 code and use third party libraries and if you use react it will compile your JSX code down to javascript.
According to my research I did last night, when yanfly launches a console, we get a chrome console. This means that the game (be it on mac or windows) is wrapped in a chromium based environment. What does that mean?
Just because they (the people who wrote this engine) wrote it using ES5 code and wrote it using http://stackoverflow.com/questions/592396/what-is-the-purpose-of-a-self-executing-function-in-javascript (self executing javascript) Doesn't mean you cant write more ... advanced javascript. Which I intend to do.
This leads me to my question. In the past if you write RGSS code, you might release 2 or three scripts all at once some hundreds of lines long. With babel and other technologies like gulp you can write a whole library, many file long and concatenate it all and then minify it all and it will still run.
Minified code is impossible to read and modify, is the community allowing this? I am not against it, I am all for it. Not because you cant change it but because it allows you to add third party libraries, write more modular and testable as well as "clean" code.
For my purposes I would release scripts as a link to github or some other repository based place where you can download the whole component I release for RPG Maker that contains, as some will be familar with - a dist folder containing the minified and non minified version.
The introduction of Javascript really allows you to create some super complicated and super amazing things that you couldn't do before - I just want to know before I write the "next big thing" how the community expects there scripts?
If I provide a minified version you could still edit variables via the in system variable editor thing I saw in yanflys video, and if you really know javascript you could even get the un minified version, make changes and commit them back as a contribution.
With RGSS we pasted out giant ass scripts here, with javascript we can do 500x more. What rules if any is the community going to impose in terms of how you write code, how you deliver code and how you share code?
Or do we care?
Personally you better "use strict" in your code or I wont trust you 😛