« first day (1723 days earlier)      last day (3228 days later) » 
00:00 - 18:0018:00 - 00:00

6:00 PM
@MadaraUchiha Thanks! But I'm still confused as to why the async function doesn't wait for the callback function to finish since I've called it as an argument.
@MadaraUchiha Say what if I want to use the returned value immediately in the code after calling the async function
 
@anath2 The whole point of asynchronous functions is that they do not block the rest of the execution.
 
user406009
Why would you need to use the value immediately?
 
You call something, you give it a function, and it would call the function you provided sometime in the future
@anath2 In that case, you will need to use a Promise.
 
@Lalaland I want to populate an array in my script with values from an external php script and do something with the result
 
user406009
@anath2 The solution is to use promises. Are you getting each value individually or the array as a whole?
 
user406009
6:09 PM
You can use something like developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/… to turn an array of promises into a promise of an array.
 
@afonsomatos john resig has a post on why you should not do dom manip on scroll
 
@Lalaland Thanks .. I am getting the whole array as json
 
user406009
Then it should be simple. Just use the array in the callback.
 
@MadaraUchiha @Lalaland Thanks a lot guys
 
Do you guys recommend any sublime text 3 plugins?
 
6:15 PM
sftp
it is paid tho.
 
I was looking for tweak-customize-kind-of-plugins.
 
afterglow
sftp is a great plugin. auto syncs my codebases
colorpicker
color highlighter
both great for css
 
@Zirak I'm on mobile so can't chat but I won already, generators are no longer going to be used
 
user2620028
So this happened today. Warning, not politically correct in America facebook.com/…
 
@AwalGarg microsoft broke my 60fps dream
@afonsomatos its slow
btw i throttled scrolls
 
6:39 PM
@BenjaminGruenbaum Hurray!
 
crl
eek ES7 will have interfaces
 
He's an awesome guy though (Jafar), don't get the wrong impression.
 
I've seen those discussions, yeah. That discussion got so...dry though
You should've just punched him on the groin
 
user406009
@crl I am assuming for instanceof checks, no actual typechecking?
 
lol, it was actually very productive at a point.
 
user406009
6:44 PM
Cause it would be nice to have interfaces with appropriate instanceof.
 
user406009
(I know it's trivially implementable via Symbol, but sometimes it is nice when it's right in the language)
 
morning
 
afternoon
 
@HatterisMad ...Hitler was Austrian, not American
 
user2620028
6:53 PM
@SomeKittens why do you think i was implying that Hitler was American?
 
@HatterisMad It's politically incorrect in a lot of places.
(and actually illegal in Germany)
 
user2620028
@SomeKittens indeed however since i am not from those cultures i can not speak on their behalf of the cultural sensitivity to the joke.
 
Chances are that dude has no idea what the shirt even means.
 
@BenjaminGruenbaum Most likely.
 
user2620028
Thats why it is so funny
 
6:55 PM
It's not funny, it's mainly kind of lame.
 
I like to tattoo Hitler's name in Chinese letters on people and tell them it means "hope" or"peace"
 
user2620028
It was funny because of how random it was to me
 
user2620028
I walked behind the guy and went.... what the...
 
@Zirak lol
 
7:09 PM
@SomeKittens No selfies please
 
I can only wish I could grow that mustache
 
Look at his face
 
his face is amazing?
 
It's part sensual, part desolated, part depressed, part hopeful
This is the most intimate he's been in a long while and he's both excited and scared of the concept.
 
0
A: print this multiplication_table

afonsomatosJavascript, ES6 64 for(i=0,r='';++i<10;r+='\n')for(e=0;e++<i;r+=i+'x'+e+'='+i*e+' ') It was pretty fun to make!

 
7:11 PM
Maybe he just got out of several decades of marriage and is finding himself again.
That's why, of course, he entered my tattoo parlour.
 
@SomeGuy ping
 
@afonsomatos that's a syntax error.
 
@BenjaminGruenbaum it works here
 
@afonsomatos no, a for expects a loop body.
If it works here file a bug to whoever wrote the engine, without a semicolon or ending it with r it wouldn't work.
Also, it'd finish the last iteration once too early.
 
> repl: Unexpected token (1:65)
 
7:21 PM
!!> for(i=0,r='';++i<10;r+='\n')for(e=0;e++<i;r+=i+'x'+e+'='+i*e+' ');
 
@BenjaminGruenbaum "ReferenceError: assignment to undeclared variable i"
 
@BenjaminGruenbaum The loop is the other loop.
 
Meh, ignore that that's strict mode.
@afonsomatos you need that semicolon or it's invalid code.
 
Wait, what ES6 is there?
 
No.. realize that the loop body is the inner loop
!!> var i;var r;var e;for(i=0,r='';++i<10;r+='\n')for(e=0;e++<i;r+=i+'x'+e+'='+i*e+' ');
 
7:21 PM
@afonsomatos and what's the body of the inner loop?
 
@afonsomatos "undefined"
 
@SomeKittens no.
 
!!> var i;var r;var e;for(i=0,r='';++i<10;r+='\n')for(e=0;e++<i;r+=i+'x'+e+'='+i*e+' '); r
 
@afonsomatos right, what's the inner loop's body?
 
@afonsomatos "1x1=1 \n2x1=2 2x2=4 \n3x1=3 3x2=6 3x3=9 \n4x1=4 4x2=8 4x3=12 4x4=16 \n5x1=5 5x2=10 5x3=15 5x4=20 5x5=25 \n6x1=6 6x2=12 6x3=18 6x4=24 6x5=30 6x6=36 \n7x1=7 7x2=14 7x3=21 7x4=28 7x5=35 7x6=42 7x7=49 \n8x1=8 8x2=16 8x3=24 8x4=32 8x5=40 8x6=48 8x7=56 8x8=64 \n9x1=9 9x2=18 9x3=27 9x4=36 9x5=45 9x6=54 9x7=63 9x8=72 9x9=81 \n"
 
7:22 PM
@BenjaminGruenbaum It's the null statement ;
 
@afonsomatos that's more characters, you added a ; and a r (the ; isn't needed if you add a ;)
 
The r was to print the actual result.
 
@afonsomatos Right, but your code in the answer is missing the ;, so it's invalid... that's what I said all along.
 
Why u so picky?
Let me edit.
 
@afonsomatos We hang out with compilers all day, what'd you expect?
In other news, my blog engine has received some much-needed upgrades. What else should I work on?
 
@afonsomatos if you don't want criticism - don't post an answer.
Or at least not one that doesn't compile.
 
@BenjaminGruenbaum I was kidding, your criticism is very welcome. I had accidentally removed the null statement when trying to reduce the number of characters.
 
npm WARN optional dep failed, continuing fsevents@0.3.6
npm WARN optional dep failed, continuing fsevents@0.2.1
npm WARN optional dep failed, continuing fsevents@0.2.1
npm WARN optional dep failed, continuing fsevents@0.2.1
npm WARN optional dep failed, continuing fsevents@0.3.6
npm WARN optional dep failed, continuing fsevents@0.2.1
...thanks, npm
 
fsevents optionally failing is the story of my life.
 
eventemitter
 
7:43 PM
?
 
@BenjaminGruenbaum how's the math degree going?
 
@SomeKittens fine, have a test on Wednesday, busy week :)
On this: moodle.cs.huji.ac.il/cs14/course/view.php?id=67663
Anyway, I'm heading out - talk to you soon we have lots to catch up on :)
!!afk
 
8:21 PM
@SomeKittens It's amazing how fast npm ended up being basically maven but with nicer syntax
 
(I haven't used Maven...)
also, got a PR open to fix your Batarang issue
 
With the module name warning stuff?
 
maven is like npm + a scaffolding tool
 
@Luggage I'd say maven is npm and grunt merged together
the archetypes (I assume that's what you mean with scaffolding) is just another plugin IIRC
 
8:35 PM
@Loktar jsfiddle.net/nu5emw74 Is this a proper way to write a custom circumference? Is this similar to what .arc does? I'd of course use .arc, but just wondering.
I had previously looped through 360 deegres and converted to radians in the body of the loop.
 
Hi all, do you think Aptana for eclipse helps you with javascript? im installing it atm but wondering if it will help.
 
@jams 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.
 
@jams I have used Aptana, but I mean, writing javascript in eclipse is so frustrating. 1) There are too much things you don't need 2) The interface is horribly huge. Get sublime
 
sublime? thanks!
Sublime specifically for javascript, or sublime is just good to replace?
 
Sublime is a text editor.
It supports every well known programming language, and if not there are probably plugins.
 
8:40 PM
Ah, I use Notepad++ so it's like sublime.. ic.
 
> Would you consider a career move if the opportunity turned out to be a better for you than your current situation?
...er, yes?
by definition?
 
It's a trap
 
> [experience in] bootstrapper JS
what
 
 
1 hour later…
9:59 PM
before ^
after ^
one friken return missed
 
 
1 hour later…
11:40 PM
what is this pattern called ?
 
00:00 - 18:0018:00 - 00:00

« first day (1723 days earlier)      last day (3228 days later) »