Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Real-time multiplayer in a browser with node.js and HTML5 is a myth?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
20 replies to this topic

#21 maunovaha   Members   -  Reputation: 279

Like
0Likes
Like

Posted 17 February 2014 - 06:14 AM

I sense the uncomfortable vibe this topic brings to some, and I have recently ran into this little video:

 

http://www.youtube.com/watch?v=NpC1GbPw-fk

Charlie Crane: Game server development in node.js -- JSConf EU 2013

 

These good Chinese fellows are pretty much tackling this topic, in a serious scale. Open source, too. Great stuff. Video has some interesting statistics towards the end. I don't know any details, personally. Their code seems clean.

 

Well, that's nice.. watched the video and looked up their source.. seems really massive (lots of code comments in Chinese) tongue.png .. too bad that their example demo seems to run at bad server or with even worse bandwidth? downloading simple .js files takes likes 15 sec and executing game never get past 98%.

 

However, I would really like to hear why you describe that vibe to be uncomfortable ? smile.png

 

 

Super-dyanamic langauges like JavaScript (or PHP, or Python) can be highly productive while developing, but end up costing not only a bit of performance (a LOT for PHP, a little for JavaScript) but also in maintainability.
Check out this link, about how a single missing "var" statement ruined the launch of a product: http://blog.safeshepherd.com/23/how-one-missing-var-ruined-our-launch/
Sadly, all too common in JavaScript projects (although using jshint helps to some extent: http://jshint.com/ )

 

Yes, I think the problems of that is somewhat tackled down with automatic jshint (on save) including for example. JsFormat/EditorConfig etc. plugins for sublime, this all requires ofc. that you set those up and full team who is developing is committed to do so. Because jshint actions can be made run on save you really can't push code without var etc. to repository. I really like jshint, just set rules to your js once and start coding. (ok, if you are dumb you can ignore the warnings in console and just go with it).


Edited by maunovaha, 17 February 2014 - 08:11 AM.


Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS