purr changed the topic of #elliottcable to: a
_better_ cult || topics << 'gamedev'
eligrey has quit [Read error: Connection reset by peer]
eligrey has joined #elliottcable
Rusky has quit [Quit: Leaving.]
Rusky has joined #elliottcable
Temur has quit [Ping timeout: 246 seconds]
Rusky has quit [Quit: Leaving.]
Rusky has joined #elliottcable
eligrey has quit [Read error: Connection reset by peer]
gozala has quit [Quit: Connection closed for inactivity]
Nuck has quit [Ping timeout: 246 seconds]
Temur has joined #elliottcable
Temur is now known as Guest90600
Guest90600 is now known as kaplan
kaplan has quit [Quit: Leaving]
Temur has joined #elliottcable
Temur is now known as Guest103
Guest103 has quit [Changing host]
Guest103 has joined #elliottcable
Guest103 is now known as kaplan
kaplan is now known as Temur
sharkbot has quit [Remote host closed the connection]
sharkbot has joined #elliottcable
eligrey has joined #elliottcable
Temur has quit [Quit: Leaving]
Temur has joined #elliottcable
Temur is now known as kaplan
Guest94221 is now known as ELLIOTTCABLE
ELLIOTTCABLE is now known as Guest92206
Guest92206 is now known as \ELLIOTTCABLE
eligrey has quit [Read error: Connection reset by peer]
eligrey has joined #elliottcable
<
kaplan>
hello eligrey
<
kaplan>
I have a question
<
kaplan>
a very dumb one
* eligrey
prepares a smart answer
<
kaplan>
eligrey, In http.createServer(function(req, res){...}) where does the function(req, res) come from
<
eligrey>
our technicians are on the line
<
eligrey>
http.createServer is a function that takes a function as an argument
<
eligrey>
it calls the function you pass to it somewhere, and passes those 2 args to your function
<
eligrey>
req and res
<
eligrey>
in javascript functions are first class citizens, so you can pass them around anywhere
<
kaplan>
so req and res come from somewhere else?
<
eligrey>
http.createServer calls arguments[1](whatever_req_is, whatever_res_is) somewhere
<
eligrey>
and it probably has the first argument named 'callback'
<
eligrey>
so it would be callback(...) instead of arguments[1](...) i'm guessing
<
eligrey>
http.createServer sounds like something from node.js
<
eligrey>
node.js is open source so you can look up what exactly that function does
<
kaplan>
yeah, it is
kaplan has quit [Quit: Leaving]
Nuck has joined #elliottcable
alexgordon has joined #elliottcable