JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Nov 16, 2016 20:07
It kind of cuts the line been the instance variable and object reference. I've still got so much to learn. Maybe one day I'll be able to visualize it better.
Nov 16, 2016 20:05
Thank you for your help everyone!
Nov 16, 2016 20:05
I thought there was some special term for var foo = this.foo; I learned in school for it but then forgot about it. Good to know it is just assignment. :)
Nov 16, 2016 20:04
this.foo = null; ? The garbage collector will collect the object it was pointing to if no more references are pointing to it assuming the garbage collector is running, correct?
Nov 16, 2016 20:02
I thought it was called dereferencing but then I found out dereferencing is assigning null to a reference.
Nov 16, 2016 20:01
That is what I was thinking @Ken
Nov 16, 2016 20:01
I know but you have to type this.foo everywhere haha. :D
Nov 16, 2016 20:00
i.e. var foo = this.foo; // assuming this line is in a method somewhere and this is an object.
Nov 16, 2016 19:59
Does anyone happen to know what the "term" is for when you assign the value of a instance variable to local variable?
Sep 5, 2014 19:00
lol
Sep 5, 2014 18:59
loooool @Jhawins I'm at work! :p
Sep 5, 2014 18:57
You can't force somebody to help haha
Sep 5, 2014 18:55
Firefox also has support for for each statements too.
Sep 5, 2014 18:53
Saved me a Google.
Sep 5, 2014 18:53
Or thanks for the link :D
Sep 5, 2014 18:53
Let me look that up and research about it.
Sep 5, 2014 18:53
@Zirak thanks
Sep 5, 2014 18:53
then it'll print 0, 1, 2
Sep 5, 2014 18:52
[e for each(e in [0, 1, 2, 3, 4]) if( e < 3 )].join(", ");
Sep 5, 2014 18:52
And you can stick a if statement in there as well.
Sep 5, 2014 18:52
So does IE and Safari.
Sep 5, 2014 18:51
Chrome throws a syntax error.
Sep 5, 2014 18:51
But why does that only work with the Rhino engine?
Sep 5, 2014 18:51
Yeah and joins them.
Sep 5, 2014 18:51
I know it loops through the literal array of 0,1,2,3,4 but that's about it.
Sep 5, 2014 18:49
It only works in Firefox.
Sep 5, 2014 18:49
[e for each(e in [0, 1, 2, 3, 4])].join(", ");
Sep 5, 2014 18:49
What kind of syntax is this???
Jan 7, 2014 04:29
Thank you guys for the ideas. I want to go about this in a fair way. Fair to the company and fair to the employees.
Jan 7, 2014 04:28
You can't really tell via live Skype call whether someone is doing good or bad cause we all learn differently. @SomeKittens I'll sketch that down and see what the higher ups think about it tomorrow.
Jan 7, 2014 04:25
@monners That sounds more idea.
Jan 7, 2014 04:25
Higher up says its possible but I'm like telling them no, it isn't. Skype sessions are not recorded onto the hard drive and therefore no real way to record these sessions unless you do it in real time and it's unfair to the employees.
Jan 7, 2014 04:22
I don't even think it is possible. Maybe I'm wrong... @monners Yup! Said it right down to a t.
Jan 7, 2014 04:21
I've look everywhere. I don't want to do it but I don't want to get fired either for not coming up with a viable solution. I know conversations are recorded over call centers but I'm not working for a call center.
Jan 7, 2014 04:18
Doesn't even sound feasible and it should be illegal. :\
Jan 7, 2014 04:18
Yeah I agree. It sounds like there would be a lot of red tape behind it.
Jan 7, 2014 04:17
I didn't hire them. I'm only assigned to watch them through our VPN.
Jan 7, 2014 04:17
That sounds like a whole lotta fun! =p Hmm... Skype sessions aren't recorded on the hard drive at all?... Or are they?... I'm not being paranoid, I just have to monitor them for customer satisifaction. Sounds like the NSA to me though.
Jan 7, 2014 04:14
I have a couple of employees under me doing tutoring sessions away from the office and I want to make sure that's what they're doing.
 

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Aug 14, 2014 18:53
Never ever trust a user or what he / she might do.
Aug 14, 2014 18:50
It seems like PHP can be exploited worse than a sex doll.
Aug 14, 2014 18:49
PHP was a easy language to learn but digging into more advanced concepts such as security is not that easy.
Aug 14, 2014 18:49
@GordonM Yeah it ends up being insecure and inefficient.
Aug 14, 2014 18:47
Hahaha I know! :D @Charles Damn I wish I could come across this function I once looked at that did all of this manually. Sure it was quite long but I don't know if there was something similar or not. I guess going over it input-by-input would be the only.
Aug 14, 2014 18:46
@Charles I'm aware filter_foo would be the easiest.
Aug 14, 2014 18:45
@Charles just user data that has is contained in the superglobals. I want to filter through it, validate it, and make sure it is safe.
Aug 14, 2014 18:44
I found something once where somebody was using a foreach loop to cycle throughout the superglobals.
Aug 14, 2014 18:43
@Charles it isn't a manual way of filtering throughout superglobals.
Aug 14, 2014 18:42
I truly appreciate any help I get on this.
Aug 14, 2014 18:42
Does anyone know of a custom function for manually filtering and sanitizing superglobals (eg $_GET $_POST $_COOKIE) in PHP? I've seen one before but have forgetten about it and now I cannot seem to find one... I'm aware of the filter_ functions but I'd like to do this manually.