« first day (1745 days earlier)      last day (3204 days later) » 

1:00 PM
@OliverSalzburg bro. 1.5% averaged
noice.
 
@OliverSalzburg lol
 
storing files contents..
 
@cswl wat why
 
i'm storing a directory as json @uselesschien
 
1:07 PM
youtube.com/… this is cool
 
@Sippy no stache
 
ok finally got zune to get shit done. can reboot into linux. sigh
 
zune still exists?
 
No.
 
@BenFortune you are ugly too :c
 
1:17 PM
@Neil apparently some windows-users are still using it
 
They're bashing us in lounge<c++> room
 
@rlemon narrator's voice is awesome xD
 
somebody needs to standup for javascript, and by somebody I mean not me
 
So I'm loading HTML and Javascript in a ajax call and the Javascript doesn't execute when it's loaded. stackoverflow.com/questions/889967/…
 
Imagine
 
1:18 PM
I already do what that answer suggests so I'm confused
Wait I think I figured it out.
 
@Griffin gratz!
 
@Polyducks We'll see. It's an abnormal problem
 
how can I add an extra click event listener to a button?
 
stackoverflow.com/questions/31654208/… Does anyone want to explain how the back button works? I dont have the energy...
 
I need to do this as I want to add additional functionality to a page via a 3rd party script
 
1:21 PM
@SuperUberDuper On a site you're visiting in the browser?
 
If so => tampermonkey plugin for chrome
 
I can't depend on a plugin
 
Or greasemonkey or whatever it is for firefox
 
in Lounge<C++>, 8 mins ago, by buttiful buttefly
ACNEScript 6
in Lounge<C++>, 6 mins ago, by milleniumbug
PHLEGMAScript
in Lounge<C++>, 6 mins ago, by buttiful buttefly
ECZEMAScript 6
 
1:24 PM
SMEGMAScript 69
 
I just want to append to the existing handlers @ivarni
 
^ We have a winner
 
@SuperUberDuper I understand that, but to my knowledge you're SOL without a plugin unless you want to manually paste code into the console or click a javascript-bookmark every time you visist the page
 
Out of Luck
 
1:26 PM
sheesh
 
!!urban sol
 
@Neoares SOL Shit Outta Luck
 
lol
 
can't I just store the existing function and then append to that?
 
@SuperUberDuper From what? You would need a script running to do what you're asking
 
1:28 PM
yes a script is running
 
So you want this functionality only on 1 website?
 
basically I want to attach extra code to the document to pick up all click events
 
document.addEventListener("click", onClick);
 
but when I add a listener to the doc, then all the click events of the buttons don't do there original thing
 
Sol means sun in portuguese
 
1:30 PM
@catgocat And norwegian
 
!!urban ILI
 
@SuperUberDuper ili I love it. Ili is an emphatic abbreviation used mostly on the [Internets]. The world needed another filler for conversations and "[lol]" gets old fast, so ili was created. Lots of friendly conversations involve liking or loving what the other person is talking about, so "ili" serves a greater purpose (snip)
 
@SuperUberDuper what
 
i dare you to !!urban truffle butter :p
 
1:31 PM
thats gross
 
!!undo
!!tell kiddies sandbox
 
@kiddies Please go and play in the Sandbox
 
!!urban internet
 
@Neoares That didn't make much sense. Use the !!/help command to learn more.
@Neoares internet A vast array of [word]pornography[/word]‌​ and advertisements.
 
!!thanks
 
1:33 PM
@Neoares You kiss-ass
 
unexpected
 
!!>typeof "thanks"
 
@corvid "string"
 
Having learned angular, I would much rather use react
 
angular2 looks kinda close to react but... better...
 
1:37 PM
Browser support, mang
We still need to support IE8 until February
then we still need to support 9, 10, and 11
 
if you didn't have to, what frameworks would you choose?
 
Angular 2
React + ES6 could be weird, since React has createClass
 
Why would it work in IE9?
React + ES6 is sweet
 
Why would what work in IE9? Angular 2? It won't
 
@NickDugger Ah, I meant to write "why wouldn't"
What are they using that isn't in IE9? Anything that can be shimmed?
 
1:41 PM
@uselesschien miaou
 
I don't know; all I know is that they support IE11 and modern browsers
Ohg, with ES6, you wouldn't use React.createClass, you would create a class that extends React.Component -- makes much more sense
 
Yup
 
@NickDugger Minus the methods will not be binded
 
JSON.parse( JSON.stringify(...) ) will do deep copy, no?
 
but then with es 6 thou shall have arrow function sexyness
or optionally with babel use ::
 
1:51 PM
Wait, so if you define a method in your class, it won't work unless you explicitly bind it in the constructor? That's odd
 
@NickDugger no
something like
 
@NickDugger like u
 
I like you too -- badum-tsch
 
class Nick extends React.Component{
   respondToMessage(m){
         return Troll.nonSense.getRandom(m);
   }
   render(){
         return <Troll onMessage={ m => this.respondToMessage(m) } />
   }
}
 
unformatt... oh wait
that was unexpected :)
> class Nick extends React.Component
bad news @nuck
 
1:54 PM
@Abhishrek Not sure what you're trying to explain with that
 
@NickDugger see the callback pattern ?
onMessage={ m => this.respondToMessage(m) }
 
You'd do this::respondToMessage instead right?
 
with react.createClass you can just do onMessage={respondToMessage}
 
I'm still learning this stuff
 
Oh, I see; yeah, that doesn't bother me
 
1:55 PM
@ivarni thats optional in es7 not in spec yet.
 
I am back
 
@SomeKittens o/
@Purag why not use emscripten and re-use gcc code instead ?
 
@Abhishrek morning
 
Hows the day ?
 
just started. EST
 
1:58 PM
Ah !
 
@Abhishrek Ah, I see I've used ::this.doStuff but I guess that's Babel making it into something useful in ES5 then.
 
@ivarni yep
(ES5, ES6, ES7) => sanitize(JavaScript, arguments); // now if only i could pass all arguments
 
I should probably pay more attention to if the stuff I'm doing is ES6 or ES7... or just not care and keep Babeling all the things
 
@ivarni pay more attention
have you checked out the sexy new async way of doing things ?
 
I was playing with generators and bluebird coroutines a while ago if that counts
 
2:02 PM
It does
now you can simply do
let results = await fetch('/path/to/resource');
 
^_^
 
Did await land in iojs yet?
 
If anyone is doing anything using node, then get iron-node!!
13
it is the fucking greatest.
 
@phenomnomnominal that looks awesome
 
@CallumBarclay nope, it's a debugger
 
2:04 PM
@phenomnomnominal oooh, debugger
that isn't fucking commandline
ty
 
kicks the shit out of node-inspector too
 
The real question is, does it debug jQuery?
 
why would you debug jQuery? It just works
 
"works"
 
that's the reason why it's great
 
2:06 PM
s/debug/use/
 
@BenFortune !!
 
Include a double bang to give Caprica a command
 
I know, I didn't intend to invoke her.
 
hm... maybe he didn't want
 
!!s/eb.?(?=r)//
 
2:08 PM
@NickDugger s/dug/use/ (source)
 
dammit
 
@NickDugger We still need to support IE8 until Fruary (source)
 
I fail
 
You fail.
 
@NickDugger I was playing with generators and blurd coroutines a while ago if that counts (source)
 
2:09 PM
It's not Failuary yet
 
I'm done
 
hi done c;
 
Your jokes are bad, and you're not funny
 
I disagree.
 
clearly
 
2:10 PM
!!s/not//
 
@Neoares Your jokes are bad, and you're funny (source)
 
Caprica likes me.
 
no
 
!!do you like me?
 
2:12 PM
@uselesschien Nuh-uh
 
!!do you like dugger?
 
@uselesschien Yes!
 
rekt
 
!!do you like callum?
 
@uselesschien No way
@uselesschien Indeed
 
2:12 PM
Ya danca.
 
oh, so.. I get it.
!!do you love me? :P
 
@uselesschien Indubitably
 
God, buy him dinner first Caprica.
 
Is there a way to "mutate" the results of getting something at an index? Eg:
 
user1596138
Hmm what does it mean if git says your branch is '$BranchName|AM 2/2' lol // very javascript specific question
 
2:15 PM
I have a load of javascript functions in my header reference of my website, I have moved them into a .js file and then referenced that .js file in the header where the script block used to be, however they are no longer getting called on page load now, I have tried moving the reference down to the bottom of the page howver this still doesnt work, what else can I try>?
 
Commands = {
  Testers: {
    start: [
      'DM cmd[30]',
      'MG "loaded"',
      'END'
    ]
  }
}

> Commands.Testers.start
// the result of getting it should be similar to Commands.Testers.start.join('\r');
'DM cmd[30]\rMG "loaded"\rEND\r'
 
@Jhawins It means I ain't got time to answer your million dollar questions.
 
How do you pass extra parameter to .then chain without addding an anonymus function
 
pass an array or object
maybe
 
2:29 PM
@cswl don't pass, use closure
 
  let bar,baz;
  foo(bar)
  .then(goo)
  .then(poo)
  .then(function () { return moo(data,baz) })
   .then(hoo)...
 
if you have let, you should have arrow functions, so .then(() => moo(data, baz))
 
@ssube Or .then(moo.bind(null, data, baz)) :P
 
user1596138
@uselesschien UselessChien is useless
 
wait that should be function (data)
 
2:38 PM
@cswl yeah, or (data => moo(data, baz))
-2
Q: How to track down bad performance on an api-server

Sandeep SinghIf my api-server shows bad performance, such as high cpu - can this be blamed on the service or on the server? If a regular app-server shows bad performance, all I can do is track down the methods and the lines of code consuming the resources and tune them. But how does it work with an api-serv...

 
@ivarni babel
 
@Jhawins ikr
 
does delete run safely and not raise key errors?
 
no
 
@corvid depends, what are you doing with it?
 
2:47 PM
var net = Npm.require('net');
class Cylon {
  constructor(host, port) {
    this._sockets = {};
    this.connect('messages', host, port);
  }
  connect(name, host, port) {
    var self = this;
    var socket = new net.Socket();
    socket.connect({ host: host, port: port }, function () {
      self._sockets[name] = socket;
    });
    socket.on('error', function (e) {
      console.warn("Socket error :: " + e.code);
      delete self._sockets[name];
    });
  }
}
 
How are you using class but not let and arrow functions?
this._sockets should almost certainly be another class, if it has stuff to do
 
Why the fuck isn't import {RouteHandler} from 'react-router'; working, but import Router from 'react-router'; let {RouteHandler} = Router; is
 
Because it's called Router and not RouteHandler?
import Router as RouteHandler from 'react-router'?
 
@RoelvanUden they got changed
now there is a Router, Route in react-router
 
No, {RouteHandler} imports the prop
 
2:49 PM
@ssube just connects, then you can use the sockets to send and receive data. Probably better as a separate class, now that you mention it. It's all using Cylon.js
 
and the docs reflect the latest version
 
@Abhishrek I know nothing of React, just commenting on what Ben posted.
 
ah
@RoelvanUden ever played with RFCommConnectionTrigger
 
It's not even really related to React as to why it's not working. More ES6 import syntax.
 
@Abhishrek no
 
2:51 PM
I still dont get nested arrow functions .. :\
 
@BenFortune which version of react-router ?
 
@cswl Just read them as functions with this bound.
And an implicit return :P
 
@Abhishrek Doesn't matter
 
@cswl this is always the same as the surrounding real function or method
 
@BenFortune in the latest one there is no RouteHandler
 
2:52 PM
@Abhishrek It still doesn't matter, read my question again
 
so am assuming you are checking the older one
@BenFortune i k, i just wanted to read the export from react-router
 
user1596138
 
that does matter :P
@Jhawins ?
 
It doesn't...
 
arrow functions only seem convenient for small lodash functions, like _.map([1,2,3], (x) => x ** 2)
 
2:53 PM
let x = x=> (x) => x(x);
 
@corvid they're most convenient for event handlers
 
why's that?
 
foo.on('click', e => this.$(e.target).hide())
 
$(foo).click()
 
true, haven't used arrow functions much, they just seem mildly more readable
 
2:55 PM
P:
 
or foo.on('click', e => (e.target.hide(), this.hidden = true))
 
import Router from 'react-router';
let {RouteHandler} = Router;
//works

import {RouteHandler} from 'react-router';
//doesn't work
They're both importing Router.RouteHandler.
 
Arrow functions are lambdas, so for filtering, sorting, queries, event handlers, etc, there is nothing better or easier.
 
@Zirak sweet jesus ._____.
 
let x = x=> (x) => x(x);
I cannot understand this ^
 
2:57 PM
var x = function x(_x) {
  return function (x) {
    return x(x);
  };
};
 
@cswl that's because it's written very unusually
and also would break
 
One thing I don't understand about arrow functions: what does it do to this?
 
I never realized tea tastes so good.
 
@corvid binds it
to the nearest surrounding non-arrow function or method
 
Oooh, that's actually incredibly useful
 
2:59 PM
@corvid i recommend you read a book on es6
there are many more marvels in the new spec
 
So in my example, using arrow methods, I wouldn't need let self = this because this will remain the same as the outer scope?
 
@corvid exactly
arrow functions exist to get rid of the var self hack
 
clear
 
user1596138
The neighbor girl gave me lasagna last night.
 
user1596138
That would be my first real food in ~2.5 months haha
 
3:00 PM
ES6 keeps seeming better and better the more I learn about it
 
Just do it
@Jhawins I know how that goes... I eventually bit the bullet and learned how to cook
 
@Jhawins a) why don't you cook? and b) I hope you had some sauce for her pasta, ifyouknowwhatImean
 
It took a long time to even want to cook, but you feel a lot better
 
@Jhawins is she the one with the V8 tacoma
 
cooking is a lot of fun
plus it's a great way to impress folks
 
3:04 PM
!!s/folk/girl/
 
@uselesschien plus it's a great way to impress girls (source)
 
!!afk
 
@uselesschien I'm impressed if a girl cooks for me, so that's not true.
 
if someone cooks for me id marry them
too fucking lazy
 
when my gf cooks for me I order takeout
 
3:05 PM
ahahahaha
 
With promises, is there a good way to indicate that an error has been handled without just swallowing the error?
 
harsh
 
My smoke detector works overtime for my cooking
 
I'm slowly trying to improve the lady friend's cooking technique. We've gotten to the point where she washes vegetables now.
 
Example:
foo = () => {
    a().then(() => {
        if(badThing) {
            throw;
        }
    });
}

return Promise.all(foo, bar)
.then(() => {
    //Only want to execute this logic if badThing didn't happen
})
.catch(err) {
    //Don't want to execute this logic if badThing happened; already been handled
}
 
3:06 PM
I just cook everything
 
lol
 
She knows a bunch of the complicated stuff, but not how to wash or chop or sear things.
 
I burn myself every time I make kraft dinner
I leave cooking to my girlfriend
 
@phenomnomnominal works with iojs?
 
I got a third degree burn the last time I made kraft dinner
 
3:06 PM
@JoshLeBlanc Become Canadian.
 
Anyone know why this works?
import Router from 'react-router';
let {Route, DefaultRoute} = Router;
but this doesn't?
import Router, {Route, DefaultRoute} from 'react-router';
 
I bought a Canadian guitar, and I live in Minnesota -- does this make me an honourary Canadian?
 
@BenFortune Because the former is valid syntax and the latter is not
 
@NickDugger yes
 
3:08 PM
@MadaraUchiha Babel doesn't complain
Also seems to transpile fine
 
@BenFortune Well, what does it transpile to?
 
@MadaraUchiha looks valid to me
 
Apparently it completely ignores the {...} part in the latter case.
 
@MadaraUchiha that's because you can't import in the REPL
the syntax is completely legal
 
3:09 PM
@ssube sure I can import in the REPL, it works just fine...
 
@MadaraUchiha If you use the variables though, Babel changes it
 
@MadaraUchiha no, the repl won't let you (with that require error)
 
@ssube Eh?
 
15.2.2 explicitly allows a list of import specifiers, including destructuring ones
 
3:10 PM
10/10 gonna follow this account on twitter
 
@SterlingArcher Awful Fantasy is one of my favorite twitter accounts.
 
@MadaraUchiha look down.
> require is not supported in the browser, you need a commonjs environment such as node.js/io.js, browserify/webpack etc
 
@AwalGarg Yeah, I get it, but it does the transpilation just fine...
 
Yep. Because both the syntaxes Ben posted are valid.
 
3:12 PM
^
 
They're both valid, but not quite identical.
 
Just noticed it's not referring to default, should it be?
 
import foo, {bar, baz} from 'foo'; will import the default export and the bar and baz exports
 
So with es6 getters and setters, are you supposed to use the setters to do some sort of validation before setting?
 
3:13 PM
import foo from 'foo'; let {bar, baz} = foo; will try to pull bar and baz off of default, not the module itself
 
@corvid yes. just like es5 getters and setters. they are the same
 
@ssube Is it a bug? Or just syntax that I'm going to have to live with.
 
^ what ssube said
 
@BenFortune neither, it's what you're asking for
you are specifically asking it to take the bar and baz from foo's default by splitting the two lines
the single-line destructuring import takes the default, bar, and baz from the module
 
Is there no way to do it in a one-liner then?
Meaning referring to default
 
user1596138
3:16 PM
@NickDugger Me too but it takes too long for how fast I eat the food so I don't
 
@BenFortune yeah, the import foo, {bar, baz} from 'foo'; syntax
 
user1596138
@ssube ^. Also she is my buddy's wife lol
 
that assumes that the module exports multiple things, though
 
user1596138
@nick Nope
 
if it doesn't (only exports default and you need static properties of that), then no, there's no one-liner
 
3:17 PM
@ssube Well the syntax is like
var Router = require('react-router');
var Route = Router.Route;
 
What if you're setting an object? I think I am doing it wrong.
 
So I'm guessing I need the latter from your examples
 
@BenFortune you can't do that in a single line. simply stated.
 
Righto, thanks for the help :p
 
Just stumbled across a facebook page that does needlework (embroidery, etc). The name is "Happily Hooking"
 
3:20 PM
Hm, looks like the latest (beta) router exports each prop
 
@Jhawins would have been too perfect
 
Hi! I am trying to match all td elements, in jQuery, that have either valign="center" or valign=top. How would I do this?
 
user1596138
@nick that girl made me cupcakes
 
$("td[valign=top],td[valign=center]")
selectors are simple, read up on them it's just a list you memorize once.
 
@phenomnomnominal Does it work with babel and require hooks?
 
3:29 PM
@Jhawins k im moving to NE
nobody ever makes me cupcakes here
 
@BenjaminGruenbaum thanks! will do
 
I'd make you cupcakes, @nick
 
@NickDugger <3
 
and cofee cake
 
3:40 PM
pls
don't tempt me bb
 
such troll very dolan
 
what troll
 
Your conception
 
much offend
 
3:45 PM
very cry
 
So which one of you is the really dick nugger?
 
neither
 
can't even spell right
 
I could ask skill testing question, but, you know
 
we're both equally skilled
 
@nick trolls
 
pls
5 hours ago, by Mathematics
Anyone here ever worked with JavaScript ?
 
what is javascript?
babel don't hurt me...
 
javaQuery
 
@Abhishrek @SomeGuy @argentum47 @uselesschien Dr. Kalam is no more :( </3
 
3:52 PM
@Neoares It's like Java but for running in Netscape
 
@ivarni that's not not true
 
JavaScript compiles to Java, which then Scripts to the kernel to create computer ram download capacity.
9
true story
 
Ah so you can get it from downloadmoreram.com ?
 
@SterlingArcher no it runs on the Stack Heap
 
Now that's just being silly and you need to stop. >=|
 
3:57 PM
Seeking Java developer who is capable of handling java scripting for new social network in php
 
we call it JavaScript, Java for short
 

« first day (1745 days earlier)      last day (3204 days later) »