ladybug-tools / spider

:spider_web: 3D interactive analysis in your browser mostly written around the Three.js JavaScript library
http://www.ladybug.tools/spider
44 stars 15 forks source link

Question of direction and sharing #143

Open theo-armour opened 5 years ago

theo-armour commented 5 years ago

@mostaphaRoudsari

In your really cool recent coding example - https://github.com/mostaphaRoudsari/radJSON - you use ES6 export/import. I do like this implementation and it makes for simpler looking/feeling code. On the other hand, it requires a server in order to run. This means that even a beginner must be able to set up a localhost before hacking into the scripts.

In contrast and thus far, none of the scripts on Spider need a server to run. The idea is: download and open a JavaScript file in NotePad or whatever. Make an edit and save. Hit refresh and - bingo - it runs.

It's still early days in terms of our collaboration, but somehow we should figure things out so that code written both ways is available and references the other style

mostaphaRoudsari commented 5 years ago

@theo-armour, Very good point. Let's discuss this over a call. This is a very good point.

I think they are ways to keep the development in ES6 and also make new developers also happy! Starting a local server with node or python is straight forward and we can document that in details.