« first day (237 days earlier)      last day (4710 days later) » 

user1385191
9:00 PM
yes
 
okay. fixes ...danky.
 
user1385191
store your logs in a <pre> tag
 
user1385191
and use text nodes
 
have a great weekend everyone
 
@MattMcDonald wow i didn't even know there WAS a <pre> tag. fail. good idea though.
 
9:03 PM
@ThomasShields jsfiddle.net/PEJvR/2 fixed that for you
 
@Raynos interesting. The code is longer, but what makes it easier in the long run?
 
@ThomasShields jsfiddle.net/PEJvR/4 fixed log
Object.create has setters / getters build in
 
hmmm interesting. looks good.
 
right... cool.
 
9:05 PM
 
i'll give it a shot.
 
personally I recommend you use Object.create for your OO.
 
cool beans. i shalt attempt usage of it.
 
user1385191
@ThomasShields jsfiddle.net/PEJvR/7
 
user1385191
there's what I mean
 
user1385191
9:08 PM
the pre tag stores whitespace
 
user1385191
whoops, forgot to update the width
 
@Raynos en.wikipedia.org/wiki/Smoke_testing (basically "does it run?")
 
@MattMcDonald yeah. cool. thanks.
 
derived from the electronics smoke test, in which you literally turn the circuit on and see if anything starts smoking.
 
@Raynos so why can't i set stuff like i can get it? jsfiddle.net/wrf6H/16
 
9:21 PM
@ThomasShields because its not writeable
 
well why the heck not
how do i set it then?
 
@ThomasShields jsfiddle.net/xUCMf/4
you forgot to make it writable :D
It's also not enumerable by default
Nor is it configurable by default :)
 
...starting to think this is more trouble than it's worth....
:D
 
not really.
properties should be read only by default
enforces good practice
 
that's true.
 
9:26 PM
you can also just do it the old fashioned way
 
OH i see.
cool.
so you can also set writable in the original Object?
like here? (see the comment) jsfiddle.net/wrf6H/23
 
why doesn't this work: jsfiddle.net/radu/F9kam
(Chrome 12)
fixed with this line: this.onselectstart = function () { return false; };
 
9:45 PM
@ThomasShields yes but that object is stored in the prototype
 
@Raynos vs...?
 
As in its in the prototype its not the object
falcon.__proto__ === Team
 
oh.
so that means ALL scores are writable now, not just the Falcons's correct? is that what you meant about it's in the prototype?
 
No
only properties you define in Object.create(Parent, { /* here */ }) are read only by default
anything is writable
 
then what was the point of adding writable:true earlier?
oh wait.
i think i get it.
one second
 
10:01 PM
yes
as such
 
okay cool.
thanks, btw, for helping me through this. :) anything i can do for you? (yeah right)
 
user1385191
you can always provide an extra set of eyes
 
user1385191
don't downplay the value of that
 
@MattMcDonald that's true. I quite accidently stumbled upon a bug earlier.
 
10:25 PM
You can run my unit tests in IE9 :P
arturadib.com/hello-backbonejs WE NEED MOAR TUTORIALS LIKE THIS
 

« first day (237 days earlier)      last day (4710 days later) »