My nightly development routine is fairly consistent. I hack some code, commit it, hack some. Before bed, I take a look at the commits and see if everything is in a stable state that actually makes sense to push. If so, I push it. Otherwise, I save it for another day. I then suspend my [...]
Categories: Development
- Published:
- May 22, 2011 – 12:04 pm
- Author:
- By Mike Gerwitz
While working on a project of mine, I noticed that overriding toString() on an object would not cause it to show up when looping through the object’s properties with for in Internet Explorer 6 (I have not tested what other versions are affected). My suspicious were verified on StackOverflow:
http://stackoverflow.com/questions/3679233/are-there-still-ecmascript-3-implementation-differences-in-major-browsers/3679293#3679293
To clarify, this is the problem:
?View Code [...]
Categories: Development, Javascript
Tagged: Development, Javascript
- Published:
- March 6, 2011 – 11:21 am
- Author:
- By Mike Gerwitz
There are many moments in a developer’s life where things simply don’t make sense. You test even the most obscure solutions to try to figure out the problem, when the actual solution ends up making perfect sense (though it may be subtle). The case of modules in Node.js with use of the instanceof operator was [...]
Categories: Development, Javascript, Node.js
Tagged: Development, Javascript, node
- Published:
- November 9, 2010 – 10:19 pm
- Author:
- By Mike Gerwitz
In PHP, arrays are used for virtually everything (I’ll spare my rant on that), therefore it’s likely that you’re going to use them abundantly in your scripts. The issue we’re going to be focusing on here isn’t with the arrays themselves – it’s the simple fact that you’re probably going to have to iterate over [...]
Categories: Development, PHP, PHP Performance
Tagged: Development, PHP
- Published:
- March 28, 2010 – 8:32 am
- Author:
- By Mike Gerwitz
I’m fairly new to PHP extension writing. I’ve just gotten into it in order to optimize some existing PHP 5.3 code for my WebKernel project. However, there was one fundamental problem that I could not find the solution to anywhere online – how do you define a function within a namespace!? WebKernel used namespaces extensively, [...]
Categories: Development
Tagged: PHP
- Published:
- June 21, 2009 – 8:53 am
- Author:
- By Mike Gerwitz
In my MyCustomBB Blog a while back, I discussed the PHP’s decision to change the namespace separator to a backslash. Until recently, this patch hadn’t yet been applied. Therefore, I continued developing my code using the old static operator (::).
Well, I recently installed the new PHP 6 snapshot from http://snaps.php.net/ and found that my code [...]
Categories: Development, PHP
Tagged: PHP
- Published:
- December 18, 2008 – 10:59 am
- Author:
- By Mike Gerwitz
Well; after several wasted hours looking into what I believed to be a bug within the PHP core, I have figured it out. I want to post this in the hope that you, the reader, do not have to go through the stress I went through in attempting to resolve this issue (and almost restorting [...]
Categories: Development
Tagged: PHP
- Published:
- May 1, 2008 – 3:45 am
- Author:
- By Mike Gerwitz