Mike C

Utah

Age: 26

I write lots of code, usually of the Javascript variety.

Writing compilers is my jam.

Here are a couple of articles I wrote on game development:

  1. Making a Space Invaders Game using Psykick2D
  2. How to Do Your Own Colllision Detection
2m
answered Forcefully iterate for loop in Coffeescript
7m
comment Forcefully iterate for loop in Coffeescript
Have you tried re-assigning i?
11m
comment Unit testing tool for single page web app
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it. If you read the rest of that page, you'll also see that questions asking "which is best" is off-topic as well.
4h
comment Javascript conflict with WordPress
Again, do you see any errors in your console?
4h
revised How to make user remake the function if the answer is not correct
improved indentation
4h
revised Insert DateTime.now() Lightswitch HTML
improved indentation
4h
comment Javascript conflict with WordPress
What do you mean it "stops working"? Do you see any errors in your console? (hit F12 to view the console)
4h
comment Some JavaScript code not recognized in Grunt
What do you mean "not recognized in Grunt"? I severely doubt Grunt is broken, you're probably not using it correctly. All that Grunt does is run tasks. Stuff like concatenate files, uglify javascript, etc.
4h
comment Form Validations in Javascript
@javanoob Stack Overflow does let you post HTML. Every single line of it has to be indented using 4 spaces and there must be a blank line above the first line of code.
4h
comment Form Validations in Javascript
@javanoob What do you mean "the page doesn't change, just the url does"? Generally speaking, if the URL has changed, you've been redirected to another page unless the only changes that take place are preceded by a #.
4h
revised Form Validations in Javascript
improved formatting
4h
comment Form Validations in Javascript
Is the function running? Is the page changing before you can see the messages?
6h
comment More performant Javascript game tick?
Rather than re-binding every time you use requestAnimationFrame you could re-assign loop during the installLoops method as the bound function. this.loop = this.loop.bind(this). Then you can just use requestAnimationFrame(this.loop) and avoid the overhead of generating a new function.
6h
revised More performant Javascript game tick?
improved formatting
Feb
6
comment Javascript: split key value (with space)
Could the value of either key contain an escaped "? If not, you could solve this using regular expressions, assuming you know the names of the keys upfront.
Feb
6
answered Javascript [this] keyword binding with new
Feb
6
revised how can I run $.cookie() after or before using setInterval or clearInterval execution in javascript?
improved formatting
Feb
5
comment Why is this html / javascript showing as a blank screen?
Do you see any errors? (Hit F12 to view see your developer tools)
Feb
5
revised angular 2 two way data binding or what?
put code in question
Feb
5
comment angular 2 two way data binding or what?
To have data match on multiple computers at once, you need to do some server-side processing. Two-way data binding just means that either your models/controllers can send data to the view (your HTML) or the other way around.
1 2 3 4 5