« first day (1406 days earlier)      last day (3764 days later) » 

22:08
me: You should put that in a function
him: Why?
me: Closure
him: You mean scope?
me: Do you know the difference?
him: what should I name the function?
I'm not a fan of the word "closure" either. It really is just a scope.
yeah - but I got used to saying closure :)
what's the active/visited color attribute for <a>?
that's non-css
:visited
then why?
for a stupid email
22:12
the email doesn't support css?
a lot of email clients don't support the style tag
oh, it's vlink
var dates = (startDate) ? startDate : getDate(); //- facepalm
@nafizaalam Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
lookup how to use jquery .on()
22:27
what was the thing you need to put in a constructor to inherit from another constructor?
this=Constr2.call(this, args)
?
I'm sure that's wrong
function foo(){}
function bar(){}
bar.prototype = new foo();
hmm
2
Q: Constructor or Object Inheritance in JavaScript

Jan NetherdrakeI am new to JavaScript (started learning it this week). I've completed the CodeCademy course (actually just Objects 1 && 2 parts, rest was boring). I thought I learned prototypal inheritance with constructors, but than I've started watching Douglas Crockford: Advanced JavaScript Right at the be...

here uses object.create
which is probably better
I remembered it being something like:
bar.prototype=foo.prototype;
at the end
22:30
bar.prototype = Object.create(foo)
There's a function B(){} example in that link that looks to do what you're saying @towc
@taco well, there is A.call in there
1 min ago, by rlemon
http://blog.javascriptroom.com/2013/01/21/the-initializer-pattern/
read this
btw, im a noob, I found that by literally copy/pasting your question lol
Inheritance hasn't sunk in for me yet
@rlemon may Object.create(foo) be then
22:33
@Zirak @Abhishek perfect translations
also @towc rlemon.ca see my new site?
@rlemon looks good!
but wouldn't say it's better than the old one
then again, I know pretty much nothing about design
@rlemon are you using js for the cloud animation?
yes
@rlemon it's pretty much just a page with link to other websites?
22:34
@towc it's just for now
nice man
need to finish some other stuff
@rlemon future plans?
build a blog and put all of my demos in it, and maybe re-work that contact page to contain a few other links
Hi all. I got a question:
setTimeout(function() { notification.close () }, 4500); // 1
setTimeout(notification.close, 4500); // 2
The first works, the second doesn't. Why?
22:36
It's not the same
a.x() and b = a.x; b() are not the same
@rlemon site renders perfectly on phone fwiw
@rlemon good luck
@FlorianMargaine almost perfect for me
when you change orientation and go back the clouds script bugs
(for me)
Ah didn't try orientation
@copy arrgh, thanks. Where can I read about it?
22:38
Yeah it's buggy
In Python they would be the same
Yeah it's buggy
tldr; notification.close.bind(notification)
@rlemon it's strange... obj1.prototype=Object.create(obj2) does not work for me
instead obj1.prototype=obj2.prototype does
oh, forgot to change the constructor in the first case
anyway, the second way is shorter and probably the same
it isn't the same
@copy got it. Thanks :)
22:52
@rlemon difference?
79
Q: Understanding the difference between Object.create() and new SomeFunction() in JavaScript

MattI recently stumbled upon the Object.create() method in JavaScript, and am trying to deduce how it is different from creating a new instance of an object with 'new SomeFunction()', and when you would want to use one over the other. Consider the following example: var test = {val: 1, func: functi...

that's the difference between new and Object.create, but not obj.prototype
You have failed to understand what new does
probably
23:11
wait...
just realized
if I don't actually understand what new exactly does, how can I be sure who am I?
It doesn't matter for now
Keep producing tons of code
(function () { return new $.fn.each.call(code.bind(this)); }());
Why does burning things to a USB take so long. Ohhh my god
...because you're not supposed to burn things to USB?
It's a last resort
23:21
my laptop doesn't have a cdrom
!!> var board=[[1,1,1], [2,2,0], [2,1,0]]; board.indexOf([1, 1, 1])>-1;
@m59 "cheap"
@towc false
Wife pulled out some DVDs looking for a movie to watch, then I pointed out we didn't have a functioning player in the apt.
why does it return false?
23:24
!!> [1, 1, 1] === [1, 1, 1]
@Zirak false
whaaa?
cmon!!
References, objects, whatnot
@SomeKittensUx2666 are you a male 0: ?
@towc No, I'm a conglomerate of young felines.
23:25
oh, right
but really, I've always thought you were a female
^^ this guy
is it possible to programmatically register and login to a github account?
Yea
!!google octokit
Why would you want to do that?
23:27
technically, yes
@tejas-manohar What makes you think it's impossible?
Oh register?
meh, stupid question
probably
Automated Turing tests
23:28
Seeing @rlemon's site makes me feel like mine is inadequate ._.
It's not loading
0
Q: Executing a queue of handlers that return a promise

Jonathan PalumboI have a queue of handlers that I need to execute in order of insertion then wait for each one to return a resolved promise before executing the next in line. I have decided to use a recursive function to shift a handler out of the queue then execute it. When the handler resolves its promise the...

!!tell cereal thatsthejoke
@SomeKittensUx2666 Command thatsthejoke does not exist. (note that /tell works on commands, it's not an echo.)
23:32
it's incredible the amount of shit you find on low rank challenge solutions in codewars.com
/me wanders over to codewars to investigate
@SomeKittensUx2666 oh no man flight assist is almost a necessity
haha just wait until you get it
I turn it off to turn sharp in battle
but cant fly without it by any means
m59
m59
@Cereal haha, well, cheap in comparison =D
@Loktar guess I'll have to try it out for myself.
m59
m59
@Cereal do you have a dev job?
23:41
@m59 Co-op job. I get paid well for a student, I guess
m59
m59
Probably as much as me, lol.
17.5/h
m59
m59
make that more than me :)
punk!
depends on location, though.
and weekly hours
m59
m59
@Cereal if money's tight and you can squeeze it in, maybe do a freelance job to get money for the laptop?
23:52
@m59 Not a chance. I got put on academic probation last year. I gotta devote all my time to school this year
I'm working part time over the semester anyway, 20/h week. I'm sure I'll impulse buy something at some point
m59
m59
ah. What are you studying?
Computer Science
m59
m59
Just curious, why not just get a job?
Psh. People who drop out CS programs for a job never do well.
Company I'm working for now requires a bachelor, not negotiable. (I've tried). I have a promised job for something > 65k out of school, so yeah
m59
m59
23:55
Where do you live?
Atlantic Canada
@Cereal eww
Would you relocate to the US for a job?
eww as in a job that requires a BA
Right? I argued for days. I still argue
But it's a huge company, I've got nothing
23:56
I mean w/o experience I understand
m59
m59
Lately, I get offered 45k-60k at least once a week (and that's great money where I am)
I'm gunna have 4 years with them by the time I graduate
m59
m59
and I suck!
and have little experience!
Speaking of sucking... I can't do stylesheets to save my life
@Cereal weird, eh I mean I understand in that situation I suppose
I just hate jobs that don't care about experience and only Degrees
23:57
@m59 Nice! None of the recruiting spam I get comes with price tags.
@SomeKittensUx2666 If it paid well, maybe.
if it was for me I'd probably leave my room just now, and be like this guy:
m59
m59
@SomeKittensUx2666 the last recruiter I talked to was actually an amazing person
@Cereal Send me your resume. rkoutnik (at google's email service)
m59
m59
but yeah, the people around here sound desperate lately.
23:58
@m59 sounds almost like an oxymoron
Oh god, then I'd have to update it
After the last job search, I'm never working with recruiters again.
I always had bad experiences with them.. until my most recent position
offtopic:
can I test someone really quick, what would you guess if you saw this in hangman? ___ ______ __ __ (3, 6, 2, 2)
and then the guy stops being a recruiter lol
so he was an anonmaly

« first day (1406 days earlier)      last day (3764 days later) »