« first day (2167 days earlier)      last day (3006 days later) » 

18:00
i wrote this 6 days back
$(sourceTextArea)
for stuff like this I'd cache the returned value, not the string and keep fetching
it's wasteful DOM lookups
or use delegation for the entire thing
This isn't gihub
$(document).on('keyup', idVariable, handler);
18:01
ditch JQ
overkill
+1 isn't liked on github, either.
@DiljitPR ahh okay ^^
@relemon what if the user pastes text
i think i have listen for paste event?
*have to
listen to a google event
18:04
listen for google io
when using the new class syntax, is there a way to somehow define all class-scope variable in the same general area?
listen for nintendo nx google edition
LOL @ndugger
man I wonder if those rumors are real at all
you see they are releasing a game on the IPad?
Hi everybody, just a question about score. I have an example here : https://jsfiddle.net/oLdwhxpa/

I know that I don't have access inside of the anonymous function, but I wonder how I can get access to it... since I want the code to be strict and I need it inside of jQuery scope... (I know the example don't use jQuery, real life script does.

Thank you all.
You want access to test?
18:07
you, can't get access to it. within it though you can make it accessible
Gr, super frustrated by this one thing
@Meredith yes, @KevinB within it I can make it accessible ? How ?
Access it from inside the anonymous function
In React, is it possible to create a canvas easily that matches a certain image's aspect ratio?
const test = (function ($) {return function test () {...};})(jQuery);
18:09
@corvid why would it be different in react?
You're talking about the canvas element right?
Usually the point of declaring a function inside of an anonymous function is so that it can only be used inside
@Loktar I've been following all of the rumours for about a month now. I'm completely clueless.
If you're trying to create a module, return test
@Meredith i think he can return something like return func : func() {}
I think I'm going to pass on the next Nintendo system
18:10
@JonathanLafleur whatever you want to be accessible outside of the function must be returned out of it.
I own every single one.. but the wiiu was a huge disapointment
This is referred to as the Revealing Module Pattern
Look it up :)
Yeah... i'm working on some code that been made in india... the client realise how poor they are, but now i'm strugglin with all that code...
(even 3 virtual boys)
Is that can be considered ? jsfiddle.net/oLdwhxpa/1
18:10
@JonathanLafleur How large is the project?
I use classes now instead of the revealing module pattern
It's working, but is it "good practice"
@JonathanLafleur No.
@Loktar I think this one will be different enough to be worth looking into. I sold my WiiU soon after I bought it, because it was definitely a disappointment, but I'm willing to give them another chance
It's not good practice.
18:11
@ndugger yeah this time I'll wait a while I mean
@MadaraUchiha really large... but I need to make it work fast, then we will redo the code on a second phasis
@JonathanLafleur do you need access to test?
@rlemon that's sad :(
@Loktar Yes, basically, I need to take an image and "draw" things on it and serialize it to data
if it ends up being good I'll grab it
but not going to grab it right away
18:11
if it's making global variables, no. not good. We can't tell without knowing where that code is.
The data management is relatively easy, but it's hard to make it work on a plain image correctly
@DiljitPR yes..
@corvid can't you just get the width/height of the image, make your canvas the same dimensions, then do .drawImage to the canvas?
@MadaraUchiha exactly what I was searching ! FANTASTIC !
Thank you :)
18:12
@Loktar Yeah, I can get it to work manually but it really doesn't play too well with react
@Loktar even all of the handhelds?
@rlemon of course
because a lot of those seemed like the same shit tweaked slightly.
I think it will help for clarity too ;D
@JonathanLafleur you can return test
18:13
> check out this new 3ds, but it is flat now
@DiljitPR ?
gb fat/pocket/color/advance/advance sp/DS/Micro/DS lite/3ds/3ds xl/new 3ds...
only one I dont have is the 2ds
I need to grab one still
I had a ds xl
not 3ds xl
I haven't owned a handheld gaming device since the Gameboy Pocket edition
gave it to a kid that lived in my apt complex before I left
18:14
shit I have a ps vita even :p
I try to get all the things
but do you have the DS XL :P
(it's the DS with pixels stretched)
@rlemon DSi XL
yea w/e
I don't have one you're right
but the 3dsxl is backwards compat
Holly found it
18:15
so good enough
@Loktar I have the 2DS...xl I think?
there is no 2ds xl :P
Okay, so it's just a 2ds
I've got the 3ds (not the new one)
18:15
No, not that
And it's OK, I guess
Thank you @MadaraUchiha :) gtg
@JonathanLafleur You're welcome
wtf is that? a nintendo ATM machine?
I much prefer the vita
18:16
But the 3d effect causes framerate to drop
@Luggage haha you haven't seen that?
And it's not that good
@JonathanLafleur Could you please explain what do you need exactly?
they go for $70
In college I won a PSVita from taco bell
18:16
@MadaraUchiha Yea, I have the regular 3ds, it's not awful.
So I usually play with it off.
wtf really @SterlingArcher?!
that's badass
You can only see 12 FPS with the human eye anyways
everyone knows it
@ndugger yeah on a console ;P
Holly found the dsi in the store she worked in
18:16
@ndugger Go away
kept it for like 3 months
no one claimed it
so I got it
The only console I've experience framedrop in was the 360
@ndugger you can only think in 12fps.
@Loktar right? I told my brother to enter the code on a whim, and he was like "dude you won" and I didn't believe him lol
@ndugger lol really?
18:17
Yeah
Shit man I see frame drops on the PS4 even
I must not play enough games to notice the difference
I've never not seen the framerate drop, even on the atari and NES it happens
I see frame drops irl.
my eyes brain are is broken :(
I'm really sensitive to framedrops, so I notice them all the time
18:17
I don't even have eyes
@MadaraUchiha yeah same here
I see frame drops on the Rift all the time
75FPS is terrible when you're used to 90
I dont think I have sensitive eyes, just attuned to looking at screens
guys, do you have any idea while uploading a file why does my memory usage spike up? Isn't it supposed to use DMA?
@KendallFrey but dat ATW
18:18
I don't know if it is the screen, or just my brain playing tricks on me
because I see 'tearing' in real life
@Loktar ATW?
Asynchronous Time Warp
one of the coolest things the Rift has over the Vive
@MadaraUchiha i know what you mean, but that sentence sounds so pretentious lol
18:19
dude you havent read about that? Was made by John Carmack
@SterlingArcher I know :(
oh yeah i noticed that
Fun fact: my office just bought a Vive for VR development :D
Vive doesn't have that?
it only works with rotation though
that was classified
18:20
so at 200mph it doesn't help much
> The user experiences much smoother virtual reality with ATW. Early measurements of Rift launch titles running without ATW showed apps missing ~5% of their frames. ATW is able to fill in for the majority of these misses, resulting in judder reduction of 20-100x. This functionality comes at no performance cost to the application and requires no code changes. And, this is only the beginning — we are working with partners to improve the effectiveness of ATW going forward.
Touch is out soon @KendallFrey
in the UK it was announced it was 200 pounds
I need an excuse to get it
so thinking/hoping it's only 200 in the US
18:22
What does this hoisting mean
put your variables above calls to it
common sense
@Loktar if its only $200 I'll be super happy
same here man
Seriously, give me a good reason to get Touch
alert(foo); // error
foo = 1;
@KendallFrey idk like 40 games are going to be announced
18:23
its cool
oh nice
more spending
Is that all they are saying
Maybe they can pull an iRacing and announce them after they're released.
@ChrisOkyen It means that variable declarations are hoisted to the top of the scope
Hello erryone I am new here
18:24
foo is not defined
@Boyz Welcome to the JavaScript chat! Please review the room 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.
@Boyz Welcome!
alert(foo); // undefined
var foo = 1;
Because that's equivalent to
cancer
oh so it declared but not defined
18:24
var foo;
alert(foo); // undefined
foo = 1;
Ndugger's milkshake really did bring the Boyz.
got ya
if (foo) alert(foo)
Do u guys like fish sticks btw
@DiljitPR Still errors
!!> if (foo) console.log(foo)
18:25
I'm a heterosexual fish
My jQuery-shake brings the boyz to the chatroom
do u like to put them in your mouth
@MadaraUchiha "ReferenceError: foo is not defined"
@ChrisOkyen john-dugan.com/hoisting-in-javascript (cc @MadaraUchiha)
@ChrisOkyen no kanye
I prefer lightly fried fish fillets
18:25
TY madara ty @ca
@KendallFrey how you not da hobbit?
fish dicks is my favorite type of sushi.
@caprica ty
you can tell they're lightly fried because of the way they are
@rlemon ?
18:26
@MadaraUchiha doesn't that if take care of undefind , null and falsy values?
What are you @KendallFrey a gay fish
@ndugger !
You're lightly fried, Harry
meme overload
Kim isn't bilbo baggins
18:26
@DiljitPR Not if it was never declared.
sure she has a pipe and looks like him
Does chatting here affects reputation points?
no, thank god
ok
18:27
@ChrisOkyen how ain't you a hobbit?
I can't afford to lose any.
Im not kim kardashian
that's good now I can ask all question without worrying of downvotes
prove it
lol
18:28
Yesterday was the worst of my life
BOOOOOOM all yall just got lit up cuz
-2 in code reviews
@Boyz That's not entirely accurate.
@Boyz if you go too far we will kick you, but that takes intent.
Wait a second
18:28
You have to be racist/sexist/ignore every answer you're given and keep asking the same question for days.
[ yeah hey, bitch am i a hobbit. oh ok]
well, minutes.
@ssube or Neal
don't be Neal
recently i have acquired interest in javascript, watched a few talks by douglas and completed the definitive guide to JS
@DiljitPR Nice
18:30
+1
I hope this doesn't become a thing.
@rlemon unless he takes a hiatus, then someone else can fill in.
Congratulations, you're probably better than about 75% of the JS devs out there.
but only one Neal at a time
@DiljitPR you completed the definitive guide? I have, but it was painfully tedious so it took like 3 months
@ssube Neils are okay
18:31
@MadaraUchiha i have just started off, i have asked my manager to assign me more UI work
I'm not sure where the sarcasm is hiding in that sentence, @rlemon
so this is a declaration var foo; but this isn't var foo = 2;
the second is a definitnon
@Luggage which one?
definition
18:32
@ChrisOkyen the second is both
I'm considering whether or not I want this
0
Q: SignatureDoesNotMatch $cordovaFileTransfer

DevStarlightI'm trying to upload a video to Amazon s3 previously recorded with $cordovaCapture. The capture process works correctly, and as a response I get the object: [MediaFile] 0: MediaFileend: 0 fullPath: "file:/storage/sdcard/DCIM/Camera/VID_20160919_144041.mp4" lastModified: null ...

1 min ago, by rlemon
@DiljitPR you completed the definitive guide? I have, but it was painfully tedious so it took like 3 months
@Luggage no sarcasm
oh, ok. carry on, then.
18:32
it's a huge book with lots of super basic information
was painful to read
meaning @ssube?
1096 pages
@rlemon talks by douglas gave me thrills
I don't like DC talks
18:33
ew
he's boring to listen too
ohhh that was a link
LOL
Douglass Cockford is brilliant but deluded
I don't mind reading his articles. Just can't stand listening to him
Crockford's advice doesn't match how things work anymore
18:34
nicholas zakas is a good talker
he's the Neal of the TC39 committee
so does hoistering relate to var foo = 3;
@ssube false, he can read
hoisting*
@rlemon but he has no idea what's going on outside of what he just said
he may be able to read, but he chooses not to
18:35
true
AnyOne using angular 2 here?
Who introduced Jaden Smith to programming — Sterling Archer 8 secs ago
@SterlingArcher ohh you.jpg
18:41
das a baby moosling
@ster
@Trasiva shit those are pricey
@SterlingArcher what is that phantasyrpg?
18:42
@Loktar right? a good moose isnt' cheap
It's a MUD I sort-of-help develop
ok
@Loktar Right? And it wrecked it with a single stomp.
Don't fuck with moose.
s/with//
18:46
@rlemon ah the ol' reddit switcheroo
hold my beer, im going in?
i suck
clearly
life is hard today
can't even format a link
I think its the first time Ive tried
18:49
why don't you just run for congress, Noob Gingrich?
good, because if you ralph in your spacesuit that probably wouldn't be very good for visibility
didn't somebody do that?
They wear anti-nausea medicated patches while on EVA, I've heard.
see, another example of government overreach and the dangers of western medicine
18:52
How does hoistering work when the inner function returns a value? and then you return that value
spacesuits are essentially a giant bong, so they could just smoke a bit and not ralph
@KendallFrey space sneezes are a real problem
> you need good aim
lol i guess they would be
I can't quite grasp how it works
@ChrisOkyen same way it always works. Goes down that checklist like anything else.
18:53
checklist?
it's quite simple, and only concerns a single function context at a time. I think you're way over complicating it.
meaning the call stack
function context meaning?
18:53
@Trasiva ohh god, how after this many years do I enjoy no doubt
I think the radio influences me
can't tell if trolling or serious
which, if you look up hosting, is typically on the first few pages
@rlemon I happen to enjoy them quite a bit.
@KevinB serious, listening to a 'best of the 90's' station
no doubt came on, I've been grooving
18:55
oh, wasn't referring to that
ohh Chris
@ChrisOkyen Example?
nvm then
Of what?
@Trasiva shit nvm that sub is wrong
18:55
@ChrisOkyen the statement you made in the message he linked
I am serously confused now
confuzzled
it's one of those things that would be really easy to explain on a whiteboard
@ChrisOkyen can you provide some sample code to show your confusion?
@Trasiva ohh god that took WAY too long
considering I have a list of my subs
@rlemon Lol, that cart's at the top.
hoisting doesn't really become any different when an inner function returns something... it doesn't have anything to do with the inner function other than how it is declared.
18:58
yea that's what made me think of the sub
saw it this morning whilst poopin
I am right now asking about closure not hoisting
7 mins ago, by Chris Okyen
How does hoistering work when the inner function returns a value? and then you return that value
Hope you dont like little boys and fake noses
function showName (firstName, lastName) {
​var nameIntro = "Your name is ";
    // this inner function has access to the outer function's variables, including the parameter​
​function makeFullName () {
​return nameIntro + firstName + " " + lastName;
}
​
​return makeFullName ();
}
​
showName ("Michael", "Jackson"); // Your name is Michael Jackson
what?

« first day (2167 days earlier)      last day (3006 days later) »