Screeps: World
Python would have been better
see title
< >
Showing 1-15 of 27 comments
th_pion Jun 26, 2016 @ 9:46am 
I don't like any of the script languages but yeah...Java Script was the second worst choice on my personal hate list (Perl has the first spot on the list).
Soondead Jun 26, 2016 @ 1:18pm 
Love Python but hate Perl? Did you get your head checked lately? :-D
th_pion Jun 26, 2016 @ 1:50pm 
Originally posted by Soondead:
Love Python but hate Perl? Did you get your head checked lately? :-D
I did not say I love Python :D
[Linux] Zelte Jun 26, 2016 @ 2:46pm 
I don't like dynamically typed language and I hate weakly typed language. I perfectly understand that javascript was chosen because it can run directly in the browser. Did the dev try to interface the game with something else than javascript? I mean the person here asked for Python. Is it possible to use Python and use some sort of FFI to interface with the javascript of the game? Or do you have to use a transcompilator to JavaScript? If you buy the game on Steam and you host you script locally. How do you get completion and things like that?

I am quite a special one as (pure) functionnal programming (Haskell in particular) is my favorite paradigm. I know that there is a transpiler Haskell -> Javascript with a FFI. But I am not use to this sort of thing. Do I just need to be able to call javascript code?

I am curious about this game but I prefer to watch it mature before really trying it.
[Linux] Zelte Jun 26, 2016 @ 2:54pm 
Originally posted by th_pion:
Originally posted by Soondead:
Love Python but hate Perl? Did you get your head checked lately? :-D
I did not say I love Python :D

I watched your video about the game. If you are more a C/C++ person emscripten is another project that might be interesting. (Emscripten is C/C++ -> Javascript. It even convert OpenGL to WebGL.)
Last edited by [Linux] Zelte; Jun 26, 2016 @ 2:54pm
th_pion Jun 26, 2016 @ 2:57pm 
Originally posted by Linux Zelte:
Originally posted by th_pion:
I did not say I love Python :D

I watched your video about the game. If you are more a C/C++ person emscripten is another project that might be interesting. (Emscripten is C/C++ -> Javascript. It even convert OpenGL to WebGL.)
Interesting. I'm actually more profound in C# and Java, though. However, while a bit annoying, I also find it interesting to learn a new language while playing Screeps and JavaScript is widely used. So even with the possibility to use something else, I would probably stay with JS.
Simcra Jun 26, 2016 @ 8:05pm 
why not lua?
[Linux] Zelte Jun 26, 2016 @ 8:24pm 
Originally posted by Simcra:
why not lua?
Because a web browser can directly execute javascript program. Wich makes it the easiest language to run in a browser. But it also give an unfair advantage to JavaScript (hoping that webassembly might fix this).
ShadouFireborn Jun 26, 2016 @ 11:55pm 
@topic:
So what?
SinSchism Jun 27, 2016 @ 1:12am 
General rule: python = server-side; javascript = client side.

The server is being done in node, so... javascript. One language to develop the client side and the server side... and keep it web-based. That, plus the accessibility make javascript the obvious choice.
Satcom Wrangler Jun 27, 2016 @ 5:32am 
Originally posted by Simcra:
why not lua?

Personally i like lua but I hate the fact there is basically no structure in it. Every varbiable always exists....



Originally posted by Linux MrSchism:
General rule: python = server-side; javascript = client side.

The server is being done in node, so... javascript. One language to develop the client side and the server side... and keep it web-based. That, plus the accessibility make javascript the obvious choice.

yes I believe that was the largest facotr of why they chose Javascript, it runs in your browser.
Crohns Racing Jun 27, 2016 @ 6:23am 
Originally posted by Bundeswehr:
Originally posted by Simcra:
why not lua?

Personally i like lua but I hate the fact there is basically no structure in it. Every varbiable always exists....
hes right ya know
mharris021 Jun 29, 2016 @ 12:28pm 
For the ones coming from Java, you can use gradle with the the node-gradle-plugin to act as your build platform. Add Webpack to your node dev dependencies and then set your bundle output to main.js. Make sure you set the output library type to commonjs2.

You can also use webpack with the babel transpiler to make it easy to include other node libraries into your source. I'm currently pulling in full lodash 4.13.1 and then using the babel-plugin-lodash to remove unused code. Just don't expect to debug in the script window, because the output isn't very legible even without using UglifyJs. :)
blc Jun 29, 2016 @ 8:11pm 
Check out coffescript. It's similar syntax to python and is compatible with screeps if you use grunt and there is a plugin for it at github
crazy_james Jul 13, 2016 @ 8:23pm 
honestly if you have any experience in C#, C, C++, Java, etc, you shouldn't find Javascript difficult to pick up. It does take some folks a while to realize that although Javascript is object oriented, it is a class-less OO language that is based on prototypes instead and of course dynamically typed. I don't ever criticize people's choices in preferred languages. Everyone has their comfort zone. However, as someone who gets paid for a living to be a software developer, I encourage anyone to diversify their skillsets. And learn SQL like it's your first language, no matter what I write, I tend to use SQL (and PL/SQL) the most ;)
< >
Showing 1-15 of 27 comments
Per page: 1530 50