« first day (1348 days earlier)      last day (3615 days later) » 

6:00 PM
Heck, even Andreas Rossberg doesn't like it :D It's full of silent rejections, it's slower, it takes more memory and it will never (and I repeat never) promisify as fast as good promise libraries because it simply lacks the ability to create raw promises without internals or creating a closure.
 
@RUJordan it's far easier to use, and it stops your code in real time so you can make sure everything is proper where you know the state the program is in. You can probably do the same stuff with logging to console but it's so much more tedious
 
I think. I can't find the setting anywhere, though.
 
The only engine with passable a promise implementation at a moment is SpiderMonkey, and that's still a lot worse.
 
@RUJordan Try updating. I have v35
 
The promises that will lend in Node 0.12 will not be realistically usable. The 'pump' is not even an issue here. Creating your own thing that just 'pumps' promises is 12 lines of code. I've written it in this room several times.
 
6:03 PM
imagine there is a place where you want to debug, you can put in a console.log, but what if you want to check on something else in the same place? you have to add shit to the log, where if you have a breakpoint you can just add watchers while you are stopped at the breakpoint and it will give you their values
 
@JanDvorak the update worked, thanks
 
and you can step back to the current function's caller with a click
 
@Mosho interesting
 
user1596138
!!s/cl/d/
 
ok that time im positive I didn't hit the enter key
 
6:04 PM
@RUJordan did you just confuse me with your mom
 
You can also run console commands in the current function's scope
 
typo lol
 
flattered
 
                    $q.all([
                        $q.when(getEvidencesFromTransaction()),
                        $q.when(getPagelogsFromSignerData())
                    ])
                    .then(makeTimelineDateStrings)
                    .then($scope.showEvidence)
                    .then(function () {
                        $scope.$emit('timelineLoaded');
                    });
Does that make sense?
 
@Mosho is short for Mom 4 sho, right?
 
6:04 PM
function pump(gen){ // @RoelvanUden ymmv, also wrote here so haven't tested
    var p = Promise.resolve(), arr = [];
    p = p.then(function cont(a){
            var n = gen.next(a);
            if(n.done) return n.value; // a `return`
            if(n.value.then){ // thenable
                return n.value.then(function(val){
                    arr.push(val);
                    return val;
                },gen.throw.bind(gen)).then(cont);
            }
            arr.push(n.value);
            return cont(n.value);
 
@BenjaminGruenbaum Things can change considerable once the spec is hardened down.
 
Ugh I can't reproduce it lol my pinky finger may be location retarded though
 
@RoelvanUden the spec will only be hardened up.
 
@rlemon I went to lunch missed all of that
 
0
Q: JavaScript New Date from a 12 hour format date and time string

PentagearExample string: 2014-12-31 11:59 pm As it stands, JavaScript isn't even parsing the time as the resulting time code returns 12:00 am regardless of what time I provide. Output after new Date("2014-12-31 11:59 pm") results in: 2014-12-31 12:00 am

 
6:05 PM
Read esdiscuss
 
damn
 
@Martin no, why those $q.when calls? You don't need them from what I can see.
 
This seems like it should be simple
 
not too sure I get the point of angular...
 
@BenjaminGruenbaum Only 1 of those returns a promise, I thought I was supposed to wrap it in $q.when() to "promisify" it for $q?
I really am not sure though
 
6:06 PM
@Crow it forces you to code in an MVC format
 
@Martin you don't.
 
user1596138
@RUJordan Ooh you're learning it finally
 
@RUJordan can multiple controllers exist on a page at the same time? This block of code is throwing me off
 
@BenjaminGruenbaum Ok so I removed the $q.when() calls
 
@Crow Yup, I use multiple controllers on my zombie app
 
6:07 PM
@Crow yes, a controller can exist for each element
 
@Jhawins kinda lol
 
@Martin I guess it makes some sense.
 
@BenjaminGruenbaum It's not doing the stuff in the right order though
How would I better organize that :\
 
user1596138
@RUJordan lol the whole reason it's so great is that you can see all the variables in that scope. And you can interact with them from the console
 
user1596138
And live edit
 
6:09 PM
I heard dev tools can be linked to SFTP and you can now develop via the console
Can anybody confirm or deny this?
 
@Martin do all these functions in the thens return promises?
 
@Mosho so what is the point of this code here? github.com/rxl/angular-flask/blob/master/angular_flask/static/… it looks to me as if he is saying "use this controller for the page you are on"
 
@BenjaminGruenbaum Nope
 
some guy in the audience is screaming some shit right now
 
@Martin then they should. then waits for the promise returned from it to resolve.
 
6:10 PM
@rlemon Yeah lol you're watching that too eh
Someone sitting next to me just pointed that out too
 
I have no idea what he's saying. but looks like people in the audience are looking / moving towards him
 
@Crow the div with ng-view gets the controller
 
@BenjaminGruenbaum Okay
 
@Crow docs
 
I can speak!!!
 
6:13 PM
HOLY SHIT
 
NO WAY
 
user1596138
@RUJordan Idk doesn't sound too great lol
 
wow, that debug mode (if it works) is badass
@Martin you seeing this
 
 
I mean, his demo is failing but the premise is awesome
 
6:13 PM
... oh god D:
 
@rlemon Truth be told I'm not really paying much attention
 
wtf was that omfg that was so fucking awesome
 
HAHAHA
 
i am behind :D had to take a conference call
 
esp when u have 1100 queries together.
u will die with breakpoints xD
 
6:14 PM
@Martin cloud debugging in the browser for apps
 
I havn't been in here in forever and thenthe other day I saw that the chat room got all fancy with requesting permission to speak
FANCY FANCY
 
user1596138
@Mosho This is something else
 
user1596138
@stewbydoo Sometimes we have to mute stupid people
 
true
alright so a best practice/is this the right approach question
 
user1596138
So then it asks for permission.
 
6:16 PM
fuck that cloud tracing looks sexy as fuck too
 
@rlemon Yeah I'm paying attention now... it's fuckin cool
 
!!s/stu.*le/nonconformists/
 
@Mosho That didn't make much sense. Use the !!/help command to learn more.
@Mosho @stewbydoo Sometimes we have to mute nonconformists (source)
 
Cloud Debugger looks SO POWERFUL
 
how does everyone handle responsive js? where when its in at 1200px great a div does this then below that it does something else and the js adjusts in real time if you were to resize your browser
 
6:18 PM
holy shit
 
I am using jquery resizing and binding and unbinding different functionality
this is really buggy
it works sometimes and doesn't work others
its pretty annoying
 
drop jQuery, google CSS
 
@stewbydoo ideally you would control behavior with javascript and display with CSS
 
I'm also piggy backing Modernizr on top of that(more like in it) to check for media queries in js
 
I've been gone for an hours... what did I miss on google io?
 
6:20 PM
right but lets say behavior changes
 
0
Q: Js Promise.all not returning properly

Nathaniel WendtI have several functions that I would like to execute in parallel via Promises (loadA, loadB, loadC). Promise.all([ new Promise(loadA), new Promise(loadB), new Promise(loadC) ]) .then(checkFunction) .catch(errorHandler); The functions look like: function loadA(){ return load("A"); } ...

 
you click one time
then swipe on mobile
 
why not support clicking on touch devices?
 
@Loktar see my going hairs ? i.stack.imgur.com/msdmB.jpg
 
#SELFIE
That's so ratchet
 
6:21 PM
I check my code for touch functionality using Modernizr
 
@stewbydoo support both swiping and clicking at all times
 
so ghey
 
yea but thats a specific case.
 
@AbhishekHingnikar Wicked curtains.
 
@stewbydoo do you mean my mouse won't work because I have my browser can support a touch screen?
 
6:22 PM
lol no
 
I love how you left room for @rlemon to photoshop things on your head
 
nobody noticed the amount of hairs i lost ?
 
Stress?
 
@stewbydoo or, do you mean I have to use a touch screen because my resolution is below 1200px?
 
@AbhishekHingnikar shitty man
 
6:23 PM
I think I see a difference, not sure
 
mine is just as bad, I just have it longer currently
 
LOL
 
@Loktar you are only like 10 year elder then me and already married ?
 
hair sux
 
yeah true
 
6:24 PM
// i am really sad about being bald in marraige photos
 
I have great hair
 
@KendallFrey @Mosho Thanks for the help. In the end I came up with this:
JISON Google Like Parser: http://pastebin.com/BJFZRCug
 
already got mah womenz
so it doesn't matter now
 
@RUJordan touch wood you basterd
 
LOL
 
6:25 PM
@AbhishekHingnikar lol I've shaved my head before. I look good with and without hair
 
knock on wood is the phrase :P
 
and btw, PHRASING.
 
oh my god no hahahahaha
 
@Loktar me to kinda got my girl .. i mean our families are finding astrologers to find date for marriage :P
maybe next year ... and you all are already invited.
 
6:25 PM
I would love to come honestly
but I bet its really expensive to go to India
like a 2 day flight too I think
 
@Loktar phrasing!
 
The flight is horrible
Agony
 
@SomeGuy yeah a coworker just got back from India... he is insane
he got back on Monday morning.. and still came into work and worked a full day
 
Oh, wow
That's impressive
 
yeah he is nuts, really cool guy, but has an insane work ethic
 
6:27 PM
who is marrying in india ?
AM I INSANE ?
 
pastie.org/9323599 --> Is this clean JavaScript ?
 
FAST FORWARD!!!
 
@Loktar If I was an asshole, I would say "I bet your wife would love to come honestly too"
 
most of my friends are from USA / UK / Canada
 
@AbhishekHingnikar no you aren't insane
 
6:27 PM
but I'm a decent guy
 
@AbhishekHingnikar you aren't spelling come right for that though
 
@WalleCyril the first thing I've noticed is a ton of comments
 
LOL
 
Penis
 
6:28 PM
@rlemon :'(
 
@rlemon That was quick
 
TWSS
 
I WILL not let that happen :-/
i am running almost around 16 km / day [what did i just mistyped ... i must sleep]
 
there's that medicine that has a 5% chance to make you barren
but it does make the hair grow
 
you can just cut it off your palms and glue it to your head
win/win
disclaimer: chance of blindness
 
6:29 PM
@Mosho yeah screw that man
I thought of taking that
but I saw it can Permanently kill your sex drive
 
@Loktar so it is like Wedding Cake, but for men ?
 
it's different in your case
 
even if you stop taking it, its still gone which is too high of a risk
 
there are more than enough indians
 
Oh, I was gonna say, if all it does is sterilize you, you're all set.
 
6:30 PM
@rlemon Hahaha that's a godo one
 
hah yeah sterilization id be fine with
but loss of sex drive screw that
 
yeah... screw it
 
I dont want that much trouble when I'm 80 hanging out with 20 year olds
 
Not his seed!
 
@JanDvorak is ther anything else
 
6:32 PM
wow. The google cloud stuff looks awesome.
 
user1596138
Has kittens been here today?
 
@Jhawins no
probably spent from his interviews
 
phrasing!
 
lol I was just given a rape whistle with a flashlight on it..
#ThePerksOfWork
 
user1596138
I want to bitch to him about how Hired wants me to do a 60-90 minute assessment just to try their job searching service
 
@RUJordan Before today, I didn't know there was such a thing
 
@WalleCyril window.location.hash.split("#")[1] - ?
 
user1596138
@RUJordan Hell yeah use it for those hobos
 
for once i am liking android
@Loktar i am going to build something parkour but fully free
 
@JanDvorak it works
 
6:33 PM
@AbhishekHingnikar do ittt
the hard part would be the art
 
@AbhishekHingnikar "Something parkour"?
 
using code i did 2-3 years ago.. so maybe emscripten.
 
Like a game about parkour?
 
like.. good luck getting the art lol
 
@SomeGuy something like vector
 
user1596138
6:33 PM
I'm going to see how hard the assessment is now lol
 
@Loktar stickfigures
 
Right
Should be fun
 
its just gonna be a 2 day project lol
 
app.post('/foo', function(req, res) {
  db.store(req.body);
  proxy.web( ??? , res, { target: 'http://localhost': + req.user.port }, proxyError.bind(req));
});
 
using loads of pre-done code :P // that is in C++ .. but oh well
 
6:34 PM
how do I "create" a fake req to pass into websockets
anyone ever done this?>
 
can I make an app that interacts with window's API with winJS @AbhishekHingnikar
I want to make something that enhances copy pasting
 
@WalleCyril duplication of code at 73-75/80-82
 
by pressing [alt]+[F4] huehuehuehue
 
@Mosho yes.
 
6:35 PM
you can access clipboard data without winjs btw... chrome can do that for you
 
thanks
 
aha... hahaha... my new whistle xD
 
nice
 
@RUJordan dont whistle that at a girl
 
user1596138
First question was to write a function that returns the sum of a and b
 
6:36 PM
@AbhishekHingnikar I thought it would be my new opening line
 
does a rape whistle work like a rape drug?
 
> "Wanna hear my rape whistle?"
 
user1596138
Now it wants me to find anagrams
 
> It's better than my normal whistle!
 
window.onkeydown = function(e){
if(e.keyCode == 40){
       //run code until key is released
    }
}
 
6:37 PM
Wait... what the... Google is making up html attributes in their polymer library... polymer-project.org/components/paper-elements/… click on the icon on the right side of the page to view source
 
@Loktar oh game jesus that vector thingy was hell
 
How do continuously run a function until a key is released?
 
@WalleCyril L96 - check out RegExp#test. Also, the whole concept of matching classes for prefixes is kinda bad.
 
@RUJordan is using the repeated keydown event an option?
If not, how fast should it run?
 
I honestly don't know
 
6:38 PM
a timeout should work
 
@AbhishekHingnikar hell like bad?
or good?
I didn't love the controls
but the animations are nice
 
So the DOM doesn't have a keyheld event?
 
@WalleCyril use === and !== (type-safe comparisons) for general comparisons.
 
man I wanna go to a google io just to get all of that fucking swag
 
@RUJordan you can do that with keydown and keyup
 
6:39 PM
@RUJordan No, what would that consist of?
 
@Loktar like hell bad
also the payment model is a huge turnoff
 
hah yea
 
so like...
 
but all games are like that now its garbage
 
There is a largely unsupported property on the event data for keydown that tells you whether it's repeating
keydown can fire more than once
 
6:40 PM
window.onkeydown = function(e){
if(e.keyCode == 40){
       moveDown();
    }
}
window.onkeyup = function(e){
if(e.keyCode == 40){
       stopMovingDown();
    }
}
Like that?
 
@WalleCyril upon rereading the L96 regex - check .classList
 
Oh wait... polymer is kind of supposed to replace/overtake HTML? First Dart, and now Polymer? What a bunch of monopolists
 
@RUJordan prob your best bet
 
@NickDugger lol
they are always trying that crap
same shit MS has done, its so annoying
 
I don't like Dart, but I have to admit -- I'm actually kind of a fan of TypeScript.
 
6:42 PM
LYNCH THE BASTARD!
 
yeah I've heard good things about TypeScript
when it first was announced there wasn't as much hate as there was for Dart
 
@Loktar because (correct me if i'm wrong) it's foremost goal was to bring us ES6 now
 
i.stack.imgur.com/h6mkG.jpg @Loktar the hairfall is hidable though ... the only hide side shot.
 
not to re-invent a wheel
 
@rlemon yeah
@AbhishekHingnikar yeah I cant focus on anything but the sunglasses
nice distraction
 
6:43 PM
0
Q: Is it an good idea of Using password itself as an salt

SubhankerHopefully this question is not to bored. I have read in many articles that we should combine an unique salt to each passwords before hashing and store the salt in database for verification but How about using the password itself as an salt ? Doing this will benefit as the salt will be unique fo...

 
DART is like, "hrmm. that is a nice wheel. but I Think if we turn it inside out without overlapping any surfaces it will be better!"
 
Actually, it seems polymer uses an "emerging custom tag standard"... so it's not as bad as I thought
 
people say "emerging custom tag standard", I hear "XML"
 
!!wiki polymer
 
@JanDvorak No result found
 
6:46 PM
AHH
 
A polymer () (', "many" + ', "parts") is a large molecule, or macromolecule, composed of many repeated subunits, known as monomers. Because of their broad range of properties, both synthetic and natural polymers play an essential and ubiquitous role in everyday life. Polymers range from familiar synthetic plastics such as polystyrene to natural biopolymers such as DNA and proteins that are fundamental to biological structure and function. Polymers, both natural and synthetic, are created via polymerization of many monomers. Their consequently large molecular mass relative to small molecul...
 
I never felt like I was missing stronk typing in JS
 
fuck, had my headphones turned way up to hear the google io, forgot to turn them down when I put my music back on
@Mosho you don't miss what you never had
 
Did you freak out?
 
@rlemon had it in other languages
 
6:47 PM
@RUJordan it was a bit of a shock.
@Mosho yea, but you are used to writing JS as is
so you wouldn't miss it in JS
you never had it
 
@JanDvorak .classList is only in html5 ?
 
Son of a bitch
 
yeah, but coming from C++, one might expect to miss it in development in general
 
my fly has been down the whole day
 
@WalleCyril not true
 
6:48 PM
@Mosho god, why can't you just let me be a pedantic asshole. fuck man.
 
@RUJordan and why you were given the rape whistle.
 
AS a solo developer, I don't miss strong typing (much).
 
@Loktar suddenly it all makes sense
 
However, as part of a team, dang nabit it I want to lock down my objects and interfaces and say 'my way or the high way!'
 
@rlemon Stop trying to take Anal Gregs job.
 
6:49 PM
anal lemon does have a nice ring to it
 
sorry @AnalGreg, my bad.
 
Anal Sour sounds better
like a fine candy or drink.
 
Sour Anal?
 
Oh god what
no
fuck you guys
 
Ill take two Sour Anals please
 
don't ruin drinking for me
D:
 
hello
 
@Loktar funny, I was officially named Ryan for a full three weeks before anyone noticed
 
@WalleCyril well, do you support IE8?
 
I try
 
6:51 PM
> However, both Polymer and x-tags build on the emerging Custom Elements standard
Never heard of it
 
@WalleCyril without jQuery?
 
Custom Elements standard < - XML
 
so the polymer replaces angular ?
 
I hate jQuery
 
jQuery is aids
 
6:52 PM
development is like fashion, it always comes full circle given enough time
 
@WalleCyril why?
 
I respect the gap jQuery filled, I personally dislike using it due to the API
but I still use it if I'm given a short timeline
 
I dont mind jquery for what it is
I hate all the hipster JS devs
 
We can all agree the jQuery docs are very well written
 
who think they are the shit because they know jquery
when really they are just shit.
 
6:53 PM
shit
 
I'm looking directly at you.
 
@Loktar exactly. I respect it, but I still think a lot of decisions made on its API were a mistake
 
@rlemon namely?
 
@JanDvorak their decision to have 5 aliases for every function, and method overloading, and swallowing errors, etc.
 
@Loktar jist stop it
 
6:55 PM
well they screwed the pooch with .live .delegate .on
@JanDvorak no.
 
.click does three different things depending on what you pass it,
and it's main purpose (generally) is to alias .on('click'
 
@rlemon do you mean the bind+delegate => on merge?
!!jquery click
 
a friend of mine was given this programming test
 
@JanDvorak I hate jQuery Because it doesn't allow me to learn JS, because I am not in control anymore and because I don't know what crazy hacks it uses
 
6:56 PM
what do you guys think of that
I think its total shit and insane to expect that
> please do not spend more than 10 hours
thats what they told him lol
 
@WalleCyril that's the more oxymoronic statement I've ever heard
 
@WalleCyril oh. Learning experience. Go ahead.
 
jQuery doesn't stop people from learning JS, people not learning JS stops them from learning JS.
 
eh, jQ is very compat with JS lol
 
@WalleCyril best way to understand jQuery is to look into the source code
 
6:57 PM
its easy as hell to mix it all together and end up with some amazing js soup.
 
@RUJordan jQuery hides the gory details of DOM manipulation
 
the "overhead" argument lost a bunch of ground as devices stopped being POS
 
@rlemon Zepto's that is :D
 
@JanDvorak DOM manipulation isn't THAT bad
:P
 
@BenjaminGruenbaum :P
honestly, never looked into Zepto
 
6:57 PM
@RUJordan unless you need to prepend an element
 
I know what it is, just never cared to look at the code
 
Zepto's source is unholy and filled iwth hacks. jQuery's source code is pretty damn horrible.
Nested ternaries and long lines everywhere in jQuery.
 
@Loktar it doesn't look so bad?
 
My aliases hide the gory detail of dom manipulation >.>
 
yea jQuery's source code does some shit I wouldn't ever dream of.
 
6:58 PM
@Mosho idk man..
 
every time I dig into a function my wtf/min rate increases
 
that seems like a complex pre interview programming test
 
@JanDvorak you mean like appending an <li> to the top of the <ul> list instead of at the bottom?
 
@RUJordan yep
 
ul.insertBefore(li, ul.firstChild); <- BECAUSE THAT IS SO INTUITIVE!
 
6:59 PM
if a job is ok giving me a test that takes 8-10 hours of my time and I dont even work for them yet.. imagine how they will value my time after
 
@Loktar oh, you mean it's crazy to have someone work for 10 hours for an interview?
 
yea
 
ah, perhaps
 
yeah I think its a ridiculous pre interview test
like giving a person a ludum dare before youll even interview them lol
 
@rlemon you need to know that you can pass null as the second argument, though
 

« first day (1348 days earlier)      last day (3615 days later) »