998 karma · joined Oct 22, 2010 (16y ago) · 236 submissions
comment 14y ago · link · parent
My conclusion: count() is horribly slow. Always precalculate it, if possible.
https://github.com/php/php-src/blob/master/ext/standard/arra...In PHP they actually check the length of an array at every invocation of count(). As far as I can see the numeric value for length isn't stored anywhere.
comment 14y ago · link · parent
http://www.tiobe.com/index.php/content/paperinfo/tpci/index....
http://lang-index.sourceforge.net/
P.S. I know that TIOBE isn't a reliable source of informations but it's somewhat interesting to take a look that the statistics
comment 14y ago · link · parent
http://raspberrypi.rsdelivers.com/product/raspberry-pi/raspb...
I'm very happy that my order has been delayed.
comment 14y ago · link · parent
comment 14y ago · link · parent
Anyway I like the "See all" view (but I haven't used it from day one, I don't know way but it didn't catch my attention). Finally Apple has implemented infinite scroll. I found myself more inclined to continue to scroll the list part application #20.
On the old App Store you had to tap the "show 20 more" cell. For me It's a sort of psychological barrier. It's like saying "there are more apps, I don't show them to you cause they are not very good". I don't know if I explained it well.
comment 14y ago · link · parent
window.requestAnimationFrame = (function() {
return window.requestAnimationFrame || window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame || window.oRequestAnimationFrame ||
window.msRequestAnimationFrame || function(callback) { window.setTimeout(callback, 1000 / 60); };
})();
and it will work in Opera 12 too.comment 14y ago · link · parent
comment 14y ago · link · parent
comment 14y ago · link · parent
http://codex.wordpress.org/Function_Reference/wp_parse_args
You can pass the arguments as an array or as a URL-like ampersand separed string.
comment 14y ago · link · parent
As an addendum it looks like that 'undefined' is a valid key:
var m = new Map;
m.set(undefined, 1);
console.log(m.get(undefined));comment 14y ago · link · parent
NSString *s = [NSString stringWithCString:"hello" encoding:NSUTF8StringEncoding];
NSString *s = @("hello");
it's 11 characters vs 67. Now what I really, really miss is the implementation of the NSString concatenation operator. stringWithFormat isn't always the answer nor appendString. Please forgive me if you find that my idea is silly: // String concatenation
NSString *s = @+(@"hello ", @"world");
Or maybe some concise dictionary operators. NSDictionary *d1 = @{ @"first":@"Hello", @("second"):@"World" };
NSDictionary *d2 = @{ @"third":@"Greetings" };
NSDictionary *cd = @|(d1, d2); // Dictionary merge
NSDictionary *id = @&(d1, d2); // Dictionary intersect
NSDictionary *dd = @^(d1, d2); // Dictionary differencecomment 14y ago · link · parent
Also Rounded Rects are everywhere, http://www.folklore.org/StoryView.py?story=Round_Rects_Are_E...
comment 14y ago · link · parent
comment 14y ago · link · parent
comment 14y ago · link · parent