Hacker News new | ask | show | jobs
by nikcub 5264 days ago
i'd suggest using Git properly instead of making a new copy of the main JS file with every version:

https://github.com/adityaravishankar/command-and-conquer/tre...

it would also be nice if you separated out the code into functional modules (as opposed to event functions) so that parts can be reused. I was interested in checking out your selection code since I implemented my own recently.

better modules and functional separation would also make it easier for others to understand and contribute to the code.

Not taking anything away from an awesome demo, just some suggestions.

1 comments

All these are minified versions. I believe these were kept in place with different version number attached to be able to quickly switch between, not for version control reasons.
Check out cnc.js for a non-minified version.