Hey there, I´m thinking about rewriting SexScripts in JS and wanted to hear your opinion.
Starting my argumentation with a quote: Atwood’s Law : “Any application that can be written in JavaScript, will eventually be written in JavaScript.” (check)
Writing a FAQ (check): Why Javascript and not Java? SexScripts is written for Desktop and Android. You have to install that software first. Javascript is for the Web and almost every device can access it. In addition (if you have the source code, which you will get bcz Open Source) you can download it and have fun with it offline. Javascript has many more available features than Java has: Sound, Images, Text, Buttons, UserInput (no problem, like it is now), Videos, Text2Speech, SpeechRecognition, location, using webcams: no problem also. You can use many librarys from npm as well and can simply interact with webservers (CatAPI, uploading images and so on). So the often requested feature CornerTime is with Javascript not as hard to do as with Java. What is with user-written scripts? You could import user-written scripts in that App by importing a Script from your computer or from a webserver. (Yes, importing unknown scripts could be dangerous, but importing unknown Groovy scripts could also be a risk). And Javascript is also easy to learn (and could be more interesting for other projects) Do it need to be hosted? If your user-script does not need an server, it can be simply downloaded. It could also be statically hosted. For more advanced scripts there has to be a server. How would your solution look like? My idea is to have a Framework which gives the users an ability to easily use some features. The WebApp with an "Action"-Area (where the text etc. will be loaded) and a menu/settings bar where you can load different scripts should be also part of that framework. Saving of user-data offline would take place in the Javascript LocalStorage. In addition a permission system (where to user has to approve if the script is able to talk to the internet etc.) would be also a good idea, but there should be also a warning when importing a script that this is maybe "hackable" and the user should pay attention which scripts he imports. If all that stuff is working there could be an Online-Feature where you can store information of users online and do stuff with it (like the Courtroom script does or Slave market etc.), I would like to also do a server-template and the user can choose on which servers he wants to store his data (decentralized approach) and copy his profile from offline to online or from one server to another (and have multiple profiles on multiple servers).
|