JJ / nodeo

Simple evolutionary algorithm in JavaScript in CommonJS format, for node.js and anything else.
GNU General Public License v3.0
22 stars 6 forks source link

Refactoring/Clear coding style #2

Closed halfdan closed 8 years ago

halfdan commented 9 years ago

Hi there, I've been looking into writing my own EA library in node for quite some time but just found yours and figured I may as well contribute. What I find lacking is a clear code structure and coding style. Would you be willing to accept a pull request that introduces a few more jshint rules and tidies up the code?

As for communication between distributed EAs - have you thought about using socket.io for communication between browser <-> node?

(I'm a PhD candidate doing research on Evolutionary Algorithms at the University of Tübingen - http://www.ra.cs.uni-tuebingen.de/software/JavaEvA/)

JJ commented 9 years ago

Sure, please go ahead. And I'm sorry I didn't answer before. Yep, I thought about socket.io and mentioned it at a conference, but somebody mentioned other option (socks?) which apparently worked better. For the time being I'm just using Ajax. WRT to coding style, feel free to add issues and make suggestions, as well as pull requests. I work on this from time to time, but it's obviously too raw yet.