« first day (1558 days earlier)      last day (3376 days later) » 

9:03 PM
!!> [1,2,3].map(x=>x*x)
 
@Shmiddty [1,4,9]
 
lambdas are going to save so much typing
 
Fev
I can't believe i'm watching spongebob right now
 
crl
!!> ( $ => console.log('test') ) ()
 
@crl "undefined" Logged: "test"
 
9:05 PM
!!> $
 
@rlemon "ReferenceError: $ is not defined"
 
;)
@crl the eval runs inside of a webworker. there is a lot not exposed to it
(if you were trying to make it $(function() { });)
 
crl
k
 
eval all the things
 
eval all the stringified functions stored in json
 
9:12 PM
!!> eval(1)
 
@rlemon 1
 
!!> eval(1000001)
 
@Matt 1000001
 
!!> function foo() { console.log(1) } eval('(' + foo.toString() + ')()')
 
@rlemon "undefined" Logged: 1
 
9:14 PM
!!> eval(new String("1"));
 
@SterlingArcher "1"
 
dats eval as fuck
 
!!> eval((new String("1+1")).toString())
 
@rlemon "1+1"
 
magic
 
9:15 PM
@rlemon 2
 
eval is fun
 
every villian aint lemons
 
!!> console.log('Hello')
 
@Matt "undefined" Logged: "Hello"
 
What the different with eval xD
I never got that.
!!help eval
 
9:17 PM
@Matt eval: Forwards message to javascript code-eval
 
@Matt eval can take code supplied at runtime. Which is why it's a bad idea, because this code usually comes from user input.
 
So it just translate into javascript?
 
Kind of
21
A: How does eval() treat a string object differently from a primitive string value?

Sterling ArcherFrom the MDN: String primitives and String objects also give different results when using eval. Primitives passed to eval are treated as source code; String objects are treated as all other objects are, by returning the object. For example: s1 = "2 + 2"; // creates a string primi...

 
crl
!!> eval("eval('1')")
 
Relevant
 
9:18 PM
@crl 1
 
Shameless self promotion
 
xD Shameless indeed
 
At least it's relevant this time :D
 
One of the 4 times in the lifetime of the universe that eval will be relevant.
 
!!> var foo = { toString: function() { return 1 } }; foo + 1
 
9:21 PM
@rlemon 2
 
fucking with .toString is also fun
 
I see how eval works now.
 
@KendallFrey and the other 3?
 
It will evaluate the var.
 
@SterlingArcher One happened approximately 200 years ago in a seedy bar. The other two are yet to come.
 
Ah, the theoretical, futuristic blue balls. Classic.
 
@KendallFrey only if time is linear
 
@rlemon also fun:
 
!!> 1 + {valueOf:$=>1}
 
9:25 PM
@KendallFrey 2
 
nice
 
> I'll make yo ass sense
Damn girl
 
LOL
> Yo ass smellz now
dem scents.
 
Man I hate support, I want to know what they're attempting to do .-. It just seems like they reply so slow, so I'm not sure if they don't understand what going on, are they trying to gather more information, or just grabbing their rubber ducks .-.
 
/me invents new Yankee candle
"ass"
 
9:27 PM
Try *
 
> Leonard you better back that pumpkin ass up before I make a pie
XDXDXDXD
 
Shirley was hilarious most of the show
 
@rlemon Samuel Jackson lol
 
Oh man, I'm in love tinyurl.com/mwqka7h // more es6 classes learning things and stuff
 
9:32 PM
> Everybody?! I haven't felt any of that chemistry comin' my way! Iunno if it's because you're racist or because I intimidate you sexually but I know it's one of those two
I'm dead
 
super() is an odd name to call the 'parent' constructor, but man, it's awesome
 
This is hilarious
 
lol, yeah, yeah.... I'm slow
but I'm catching up
 
9:33 PM
oh I wasn't being sarcastic
if you look for super you will see why
 
Guys, how to fix... diamond question mark box because spanish accented character ._____.
 
Ohhh
sub vs super
 
Please tell me it's a UFT meta setting and not entities
 
makes sense now
 
@SterlingArcher waout
 
9:34 PM
I was thinking super, as in superhero, and it made me giggle
 
> The superclass establishes a common interface and foundational functionality, which specialized subclasses can inherit, modify, and supplement.
@NickDugger ooh lol
 
THE DAMN QUESTION MARK DIAMONDS
 
oh, I read that as checkbox
 
I've never done another language before I'm scared
 
9:35 PM
Need material to read
 
Hello everyone
 
@Tomek 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.
 
Ever think to yourself, "Man, I'm really glad that [most] programming languages are in english?" Pepperidge Farm does.
 
4
A: Why does question mark show up in web browser?

Ned BatchelderThere is a question mark because the encoding process recognizes that the encoding can't support the character, and substitutes a question mark instead. By "if you're really good," he means, "if you have a newer browser and proper font support," you'll get a fancier substitution character, a box...

 
are there any people that know their way with Ember and Ember-Data?
 
9:37 PM
@NickDugger Do you remember when programmers had to convert machine code to binary? Pepperidge Farm remembers.
 
People fight about functional programming because the fights are completely predictable, parallelize trivially, & also have no side effects.
 
What the hell? babylscript.com
 
what the fuck
 
hey @KendallFrey that 3d transformation library is really cool!
 
9:38 PM
Why isn't this popularized?
 
@SterlingArcher That's what I thought when I saw those question marks on signs at Wonderland, instead of apostrophes
@Loktar damn, you guys are making me turn it into a project :/
 
haha
do it!
 
sigh Next week maybe
 
Would it be bad to make it more concise, say V(x, y, z) instead of Vector3(x, y, z)?
I want it to be easy to write, but not too hard to understand
 
9:42 PM
V3?
 
Well, I could infer that from the number or args
 
Waahhh, babylscript is a dead project :(
 
new V3() should be (0, 0, 0)
 
maybe
But what about new V4()?
0,0,0,0 or 0,0,0,1?
 
9:44 PM
@NickDugger Speaking as native-English speaking scum, but I feel like it makes more sense to just code in English. Sure, you have to learn it if you don't speak English, but it's the defacto standard, and by not using it you're blocking people who might otherwise contribute.
 
0,0,0,0
 
^ Also applies to coffeescript.
 
@phenomnomnominal So, this would never be useful
 
Although really you probably want a quaternion class
 
Japanese programmers speak Japanese and English. Russian programmers speak Russian and English. American programmers sorta speak English. What's in common?
 
9:45 PM
No quaternion support yet
Will probably need some for animations and such
 
Same goes for the opposite, though, I'm sure there are some great chinese programmers that only know the few english words they need to program. I think multilingual support for a language would be cool, especially for javascript
It would be a good educational tool for children
 
I think we should be moving to one official language for the entire world.
not moving away from it
 
@SomeKittens The desire to procreate
 
@KendallFrey I can't see where you're even using Vector4?
Oh yes sorry
 
Sure; but then there are probably teaching-specific programming languages that are localized to, say, Chinese.
 
9:46 PM
@phenomnomnominal True, it probably wouldn't be used much by the consumer
 
Yeah, you're more likely to want a matrix4x4 class that describes a transform
 
@phenomnomnominal I don't think matrices can do the stuff that quaternions can
 
which is also easier to generalise for multiplication
 
the world should just speak HTML
it's pretty fucking universal
 
Quaternions are only useful for rotations
 
9:48 PM
if I want to slide between two rotations, I don't know that matrices could do that.
quaternions could
 
No, but if you want to translate without rotation, a quaternion can't do that
 
Euler angles could, but suffer from gimbaling
 
Or scale
 
@SterlingArcher <body><head></head></body> // pickup line
 
You need both
 
9:49 PM
@phenomnomnominal Right, I obviously wouldn't ditch matrices
They're pretty fundamental
I would just need a way to generate matrices from quaternions
 
Writing this kind of library is a bit of a rabbit hole
 
yeah...
I spent way too much time on the perspective camera alone
Never even made an ortho camera
You may have noticed there are no near and far planes
depth mapping isn't supported here
 
Ortho is easier
But yeah
 
If I wanted to support it, I'd have to do most of the rendering myself
@phenomnomnominal I know, and lamer
 
Way lamer
Still, it's pretty damn cool for ~100 lines
 
9:52 PM
I'm surprised how small it is
eliminating rendering code is huge
 
@KendallFrey a surprise every morning :/
 
I tried writing a software renderer once
gave up
@Loktar not for me
Down, boy, down!
 
lol
 
Heel!
oh, wait, probably a bad idea
 
@KendallFrey yeah, my raytracer is massive and growing.
It's like "ooh let's add path tracing", + 1k LoC
 
9:56 PM
I got as far as rendering 4D lines, I think
I stopped when I realized I'd have to do the unelegant task of clipping polygons
 
haha fun
 
The rest of the math is quite elegant
perhaps the least so was line and polygon fill algorithms
 
Array.prototype.find
undefined
wat chrome
 
fail
 
@SomeKittens sad that you're not gonna be a speaker. I've decided to definitely go, though. Gotta get out of my shell and meet people; and I figure the best people to meet first will be like-minded individuals
I'm a shut-in most days...
that needs to change
 
10:00 PM
@Zirak inorite! You might also be interested in insert (to run in M-:)
what the actual fuck
 
I'm writing a util function to track KEYDOWN states. What in your option is best (onkeydown):
KEYDOWN[e.which] = true;
or use an object
 
you mean an array?
 
yes
 
I use objects
for my personal stuff
 
@SecondRikudo by throwing them back in with iter.throw or by returning an unhandled rejection if the generator is done
 
10:03 PM
pro's cons?
 
11
A: How to handle multiple keypresses with canvas

LoktarThis is how I generally do it. First you need an array to hold the keystates. var keys=[]; Then setup your event listeners. // key events document.body.addEventListener("keydown", function (e) { keys[e.keyCode] = true; }); document.body.addEventListener("keyup", function (e) { keys[e....

thats how I do it, @Shmiddty has a nice answer as well
 
Why are mechanical watches so expensive :( They're so pretty
 
@Jonathan no sparse arrays with objects. idk, not much besides preference
 
Ugh I need a better unix/windows npm workflow
 
10:05 PM
Any downsides on sparse array? Or do they just creep you out?
 
@Jonathan may be inefficient to store
 
Add feature to package on unix, fix on windows...
 
mostly the latter
@SterlingArcher First reaction: That's a fucking big forearm
 
...Second reaction?
 
why does he have a hand in the middle of his arm
 
10:08 PM
Damn, businessinsider.com/… brazil fucked its people over hosting the olympics
 
@SterlingArcher They don't care, it's futbol
They might care about those fucking Nazis though
 
FIFA is serious a non-for-profit organization?
If you sell shit, you're for profit..
How the hell did they get that status?
 
Girl Scouts are for-profit?
 
girl scouts aren't paid
 
They sell cookies
 
10:11 PM
Am I doing something wrong here? Getting no logs.
 
And use the money to go camping and pay for the inevitable bear-death-funeral
rebooting brb
 
$scope.submit = function() {
  Article.save($scope.article, function(success) {
    console.log("successfully submitted");
  }, function(fail) {
    console.log("something went wrong");
  });
}
it updates in the database and shows up, but nothing logs.
 
@SterlingArcher That's not what "for profit" and "not for profit" means.
You can have revenue (i.e. "sell shit") without having profit.
 
Explain?
 
Nice canvas Fiddle @KendallFrey
 
10:19 PM
Thanks reddit, I just saw somebody die :(
 
It upsets me
 
So don't go to Reddit any more
 
I finally convinced my wife to learn how to code after she hasn't touched code since high school.
 
Well, the way I see it
 
10:21 PM
What would be a good first language? I'm thinking Python although I myself am teaching JS as a first language (to kids though)
 
I'm either becoming old and much like my parents and their parents
or the world is getting sicker
 
@BenjaminGruenbaum Python, obviously
 
but since I've just seen footage of WW1, I assume it's just me...
 
@BenjaminGruenbaum at my school they transitioned from Java being the "initial" language to Python because it was easier for the kids to both grasp the concepts and general syntax
So I suggest Python too
 
Any interactive Python stuff?
 
10:24 PM
Mmm, codecademy was pretty good, learnpython.org is also good from what I remember
 
@BenjaminGruenbaum JS (if typeless), Java (if ancient OOP) or C# (if modern OOP) imho
 
learnpython looks good
@RoelvanUden I want her to enjoy coding without a background.
 
JavaScript is good if you provide a small canvas library
 
Then fightcodegame.com obviously :P
 
This looks pretty nice too: tynker.com
 
10:33 PM
@copy this is what Resig did at khanacademy (I teach that) but I think it's a bit too basic
 
hello
 
@computerquest 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.
 
@BenjaminGruenbaum Depends on what she's interested in doing, but games should be a good start (see @SomeKittens brother)
 
She is not a dude, it needs to be useful. I don't think computer games are the right analogy for her.
 
Right
 
10:35 PM
She'll probably just think that the games are silly and move on to watch TV or something.
She didn't play that many computer games when she was young, mostly a book reader.
 
Period Tracker
 
Badger Cat with the Shock and Awe tactics
I giggled.
 
Have any of use used Vagrant with Docker as provider? Can't seem to find CentOS images for a docker box
 
I'm seriously not trying to be sexist here, but maybe something to help when she cooks? @BenjaminGruenbaum
 
10:40 PM
I do most of the cooking
 
Will you marry me instead of her?
 
@NickDugger Given that this was my first application for a talk, I'm not surprised
 
Don't have a sponsoring company either
 
What are her hobbies then?
Couponing? MMA? Extreme Squirrel wrangling?
 
10:41 PM
@NickDugger meetup.com dev meetups are fun
 
@taco sometimes.
I've got about a 1:2 hit:miss ratio
 
How so? What makes them suck
 
I love this
 
well, I'm finally breaking even on bitcoin.It's at $227 right now
bought in again at $221 :s
Hatter is Mad messaged me in here, saying he made it to Thailand on Dec. 31st :)
 
10:57 PM
If I use function loading me JSON, I need v one script calling data.json too?
If I delete script daja.json of my HTML5 my ajax say data is no undefined
http://imgur.com/idB5sTq
 
I see the mzgol guy on Github alot
 
@taco mzgol is fine
Nice guy
I'm really glad they're fixing their promises
 
Let's hope they .... (puts on shades) ... keep their promise
 
@BenjaminGruenbaum Speed in promises rarely matters
 
@copy I agree - it's pointless on the client. It's quite meaningful on the server but not so much since petka wrote bluebird
Q was actually impossible to work with since you couldn't reach real loads since it'd actually slow things down. In the past year libraries like when and RSVP gained performance - they're still slower but they're fast enough.
 
11:00 PM
Even on the server, a promise is usually bound to an IO operation 1:1
 
If I have this and I delete this script calling to my data.json from my HTML5, why say data is  undefined.

function loadJSON() {
	var xmlhttp = new XMLHttpRequest();
	var url = "../public/js/data.json";
	xmlhttp.open("GET",url,true);
	xmlhttp.send();
}

	Without this is undefined --> script(type="text/javascript", src="../public/js/scroll.js")
 
@copy On the client I'd love to be able to use native promises - @PaulIrish did a really cool thing with them on the developer tools - you'll get a "promises" tab with all unresolved promises and rejected ones.
 
I saw that, very nice
 
Code review:
var movement = false;

if (KEYDOWN[LEFT_ARROW]) { move('left'); movement = true; }
if (KEYDOWN[RIGHT_ARROW]) { move('right'); movement = true; }
if (KEYDOWN[UP_ARROW]) { move('up'); movement = true; }
if (KEYDOWN[DOWN_ARROW]) { move('down'); movement = true; }

if (!movement)
FIREFLY.removeClass("moving");
 
@copy yes, now imagine how slow an implementation would have to be in order for promises to be the bounding factor.
In Q you literally couldn't have 10K promises at once.
 
11:01 PM
@Jonathan LESS_YELLING_PLEASE
 
lol
 
I uppercased my globals
 
10 Kelvin is really cold
Bartek really needs to work on his temper
 
lol, where now?
 
7 hours ago, by Mourdos
An informed mindless hater :P Wait a minute.
And up
 
11:12 PM
cool
!!afk goodnight
 
Bartek reminds me of this guy
 
Good night sweet prince
 
Hmmm
!!undo
 
@taco You do not have permission to use the command undo
 
!!youtube Grandma's Boy - The Best of JP
 
11:14 PM
2
 
2 messages moved to Trash can
 
^Bartek
 
@taco BRILLIANT
 
lol
 
Though I too, make sound effects when I move
 
11:16 PM
It totally reminds me of him. He comes off like that guy
 
> You would if you had robot ears
 
11:27 PM
@SomeKittens does your company have an on-call schedule for engineers?
 
@Shmiddty If PagerDuty counts, yes.
 
how many devs?
 
At the company, on call, or on rotation?
 
yes
 
What's your email?
 
11:30 PM
bananas
 
sent
 
everyone can see edits @Shmiddty
not deleted tho
 
hue
 
^ * 2 hangouts
 
hello i have a question
so i have setTimeout(fadeIn(), 100); and it is going to early and then when i change it to setTimeout(fadeIn(), 1000); it totally disregards the change of the time
can you tell me what i am doing wrong
 
11:37 PM
you're calling fadeIn prematurely
 
so put it inside a onload event
 
@computerquest Q) How do you invoke a function in javascript?
 
fadeIn();
 
Q) How do you pass a reference in javascript?
 
You can't
How do you pass a value in javascript
 
11:40 PM
fadeIn(value);
 
Now fadeIn is the value and setTimeout is the function you want to call
 
so what you are getting at is setTimeout(fadeIn, 1000);
correct?
 
Yes
 
thank you i will try that and see if it fixes my problem
 
@copy Why isn't fadeIn a reference to the function?
 
11:42 PM
I feel so stupid... Can't get this api down now since google change their developer console display .-.
 
(I was under the impression that it is a reference)
 
Otherwise you could change fadeIn in place
 
You can though.
I think. I know you can with objects, not sure about function references
!!> var foo = { bar: 'baz' }; (function(funky){funky.banana="puree";})(foo); foo;
 
@Shmiddty {"bar":"baz","banana":"puree"}
 
I am making a slideshow transition and by doing that it eats up all of my computers cpu and takes a massive bite out of my ram and i am forced to shut it down
 
11:45 PM
@Shmiddty Well, it's still the same object, as per ===
 
I assume this is a semantic argument that has something to do with memory allocation
Unrelated, it is snowing buckets
 
> Wardens of the Woven Wigwams
Best name for a hockey goalie ever
 
http://jonathan-ijzerman.nl/Firefly/
Anyone know why I can't use LEFT + UP + SPACE at the same time?
Works for all the other directions...
 
Most likely a keyboard issue
Many keyboards can't handle too many keys pressed at once
 
Works fine for me
I do LEFT UP SPACE in that order
 
11:56 PM
Yes, but all other directiosn work, just not top/left
 
Jonathan, is there anything else you do?
Pressing LEFT + UP + SPACE works for me
 
weird
 
works here as well
got a spare keyboard?
 
So it's my cheap ass keyboard?
Yeah I'll check
 
I am moving North West while pressing space
That is the intended path, right?
 
11:58 PM
Darn, you're right. Works for my wireless keyboard
 
So it's your cheap keyboard?
 
Yeah...
 
Lol :P Glad we were of help.
 
Thanks :)
 
Now does anyone wanna help me with this google API grr .-.
Do I have to run it off a website for it to actually work, or can I run from my computer or localhost?
 

« first day (1558 days earlier)      last day (3376 days later) »