« first day (787 days earlier)      last day (4160 days later) » 

11:00 PM
oh!... one is not a follower of fencing
 
is it fair to say that this is a bug with twitter boot strap?: stackoverflow.com/questions/13829813/…
 
HERE I COME TO SAVE THE DAY!
 
i dont know if I feel amazed or not by that
alas this place is dead
 
11:17 PM
When rlemon is here everyone should feel amazed....
@KyleAdams can you show me an example. I've used popover but not very much
github.com/twitter/bootstrap/blob/v2.2.1/js/… and github.com/twitter/bootstrap/blob/v2.2.1/js/… where is the "stay" option you are talking about? Also it does not appear to be in the documentation on the official site. nor does it appear if you look in the source code for the 2.2.1 gh-pages documentation. github.com/twitter/bootstrap/blob/v2.2.1/docs/javascript.htmlrlemon 1 min ago
I think he made up an option then wonders why it doesn't work
 
Is there a recommended method with how to check if say my_array[x] is an array?
 
arr typeof Array
 
ok ill try that :) thank you
 
!!> var arr = [], not_arr = ""; console.log(arr instanceof Array,not_arr instanceof Array);
 
@rlemon "undefined" Logged: "object","string"
 
11:30 PM
pfft, everythings an object.
 
!!> Array.isArray( [] );
 
`true`
:6653950 `"undefined"` Logged: `true,false`
 
damn, isArray.... rlemon Y U NO THINK!
 
lol isArray better choice?
 
!!/tell Dave mdn isArray
 
!!/mdn I wonder what happens with ridiculous input
 
hmm unknown support for mobiles according to that link
 
meh, it'll probably be fine
It's part of ES5
 
think i might jsperf between typeof and isArray
 
11:33 PM
instanceof is also faster.
 
see what i get
beat me to it :P
 
instanceof sucks
 
you suck!
 
Irrelevant
 
relevant.
 
11:34 PM
if it works and appears faster why would it suck
 
because it is a whore... and that's what whores do.
idk, ask him :P
 
Because using a missile launcher to open your front door also (1)works, (2)is faster
 
(2) No
Unless your front door is huge
 
mine is. i'm a baller.
bling bling mofos
 
missile gets the job done. with a statement like "yep bitches im here!"
 
11:36 PM
Array.isArray is more semantic.
 
instanceof is a remnant of classical inheritance. It's just...yucky.
 
Hey there, im wondering if there's a way to get the height from the top of the viewport to a specific div on my page, so that basically it will change height depending on the viewport size
 
for me performance is critical because its a canvas game im developing
 
If that's your bottleneck then you're doing exceptionally well
 
Then don't use polymorphism. Know your types
 
11:38 PM
no its not my bottle neck but i jsperf what ever has mutliple options :P
 
That's such a weird way of doing things
 
not really... i need speed
 
Mighty Polymorphing Power Rangers!
 
It doesn't represent the application...it represents a subset of the application, specifically the one you're testing for
Use better coding stuff, and if speed proves to be a concern, optimize when necessary.
 
when you have 60fps minimum in draw loop... checking an array is an array that often you have to consider performance
 
11:39 PM
Benchmarks lie, especially when you're benchmarking singular (happy?) needles in a haystack.
 
well i do benchmark on my game too :P
 
not if it's enough needles and a small enough haystack.
 
i have 500by500 iso tiles with 59fps avg so far
 
bah, do as you wish
 
altho i think chrome limits request animation to 60 so i cant go higher
 
11:41 PM
if you are using requestAnimationFrame then it will cap you at 60 iirc
 
Optimize your commas and sums, take the bear out on a wheelchair...
 
Don't use + and -, they are slow. Use bitwise operations only
 
if you want higher than 60 (idk why you would) then setTimeout(draw, 1000/fps);
 
well problem with that is the game will keep going if the user minimizies the game so i opted not to bother
no point doing animation if the user isn't looking
 
use with(){} everywhere!
 
11:42 PM
Spaces are slower than tabs
 
ill minify the code there won't be any space :P
 
Okay
 
IE seems to do best with canvas performance
better than Chrome
 
IE only renders like 40% of the frames
fully computes all code, but only spits out less than half the frames
 
ah i see
 
11:44 PM
so it is only faster because it is doing less.
and chrome is in fact faster on benchmarks.
but IE is close
 
i still feel like im writing a code with browsers that consider canvas stuff as beta
 
11:56 PM
pls upvote so he can come to chat: stackoverflow.com/q/13829278/995876
 

« first day (787 days earlier)      last day (4160 days later) »