Jump to content

EmployeeNumber8

Members
  • Posts

    30
  • Joined

  • Last visited

  • Days Won

    2

EmployeeNumber8 last won the day on April 10 2013

EmployeeNumber8 had the most liked content!

Contact Methods

  • Website URL
    https://github.com/gamedev8?tab=repositories

Profile Information

  • Gender
    Not Telling

EmployeeNumber8's Achievements

Newbie

Newbie (1/14)

12

Reputation

  1. You missed the "this" keyword when you assign to leftPressed and rightPressed I'm going to assume it was just a typo. We've all done it haha.
  2. Chris made a good observation, so I've modified the code snippet. However, there is absolutely nothing "wrong" about using uppercase.
  3. To make it a bit more "object oriented", you could revise it such that the internals of Rectangle are private. I'm sure you'll find several ways to achieve this. Here is a one way. var CreateRectangle = function(left, top, right, bottom){ //private state var width = right - left; var height = bottom - top; var getArea = function () { return width * height; } return { getArea: getArea };}
  4. Is there a way to submit tutorials/articles in here? Lots of smart guys here... it would be cool if we could create tutorials for newcomers. Something similar to the articles section on the gamedev.net forums.
  5. Are you using Chrome on Windows? Try locking your computer (windows key + "L") during the audio and see if the sound stops. It happened to me once but I forgot to submit it as a bug.
  6. +1 for Webstorm +1 for Sublime Text I'm on the same setup as Chris.
  7. The way it is written in the MDN documentation makes sense. If you maintain a reference to the oldChild with var, then it will persist in memory. The spec doesn't seem to specify what user agents should do here regarding memory. I would assume that is beyond the scope of the spec. This is directly from MDN:
  8. It will get garbage collected if there are no references to it. I remember confirming this last year in Chrome, Firefox, Opera and IE8+ Just be mindful the this open bug for Chrome regarding memory leaks. If you see memory usage go through the roof, then it may be the bug... and not the fact that you adding/removing many DOM elements. Hopefully they fix it soon - very annoying!
  9. Define "harder to scale". I've found it quite easy to scale. When you talk about what the language was designed for, and the async model - those arguments are purely academic... but in the real world, companies like eBay, 37signals, Cloud9, Yahoo!, LinkedIn, Flickr, Microsoft , Twitter (on a small scale), Instagram (I think)... are all using nodejs on the server side. These are companies that really have to deal with massive scaling. By your own admission, you've only "tried" it. Show some real world examples of how/why nodejs is a poor choice for scaling. Projects, applications, companies using nodejs
  10. @BlueMagic You should post a separate topic in the Audio forum for Howlerjs
  11. I'll support any obsolete browser, but it will cost the client more.
×
×
  • Create New...