« first day (223 days earlier)      last day (2911 days later) » 

8:56 AM
@Andras penpals
 
9:48 AM
Aaand finished reading
 
10:01 AM
woo!:)
 
10:17 AM
user image
3
 
@Kyll totally worth it, I presume:D
 
For someone it was yes
 
yeah I know you don't have the attention span for this
 
Sam
@Kyll rofl
 
10:47 AM
@Kyll my main point is that because ChrisF (and maybe one or two other mods, who knows) occasionally gets his panties tied in a knot due to some flags, that doesn't mean that you should be unreasonably wary of flagging
of course, this applies too:
"I believe that a custom moderator flag would be appropriate in this situation, even if it does get declined." And people wonder why we have 200+ custom flags in the queue at any given time, why their custom flags seem to take days or weeks to process... — BoltClock ♦ May 18 at 14:46
as long as you're flagging stuff that needs mod intervention, you shouldn't worry
you should expect your flag to be declined even if you're right, then just let it go
 
 
1 hour later…
12:16 PM
Plop
 
Plop Rizier =D
 
 
1 hour later…
1:21 PM
!!> const names = ['Kyll', 'Madara', 'Kevin']; delete names[1]; names[2] = undefined; console.log(names[1] === names[2]);
 
@KevinGuan "undefined" Logged: true
 
!!> const names = ['Kyll', 'Madara', 'Kevin']; delete names[1]; names[2] = undefined; console.log(1 in names === 2 in names);
 
@KevinGuan "undefined" Logged: false
 
@Kyll Doesn't delete just change something's value to undefined? Why in this case, 1 in names return false?
 
1:33 PM
@KevinGuan Always the docs :P https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete#Deleting_array_elements In the first example you access an undefined array element, which gives you undefined back and compared with the array value undefined of the second element you get TRUE back.

But the element is not in the array anymore, so in the second example you get FALSE back.
 
1:51 PM
@KevinGuan It simply deletes the key from the object
 
2:06 PM
2
Q: How to decrypt sha1 in php?

Mani KandanBelow i had encrypted a string varible using sha1. And now i would wish to decrypt data using sha1 function, but am going some where. Would some one come forward and guide me in proper way please. Below is my code <?php $variable = "tiger"; echo $variable; $encrypt = sha1($variable); ...

"How many billion years do you have ahead of you?"
 
 
1 hour later…
3:11 PM
@Madara Is this book a good learning resource for Common LISP? Do you maybe have one to advise?
 
@Kyll That's the one I'm using
It's excellent
 
4:26 PM
(Need to get back to my JS tutorials :)
 
 
2 hours later…
6:03 PM
@MadaraUchiha Great!
 
6:16 PM
function A(){this.xy = function(){};}
A.prototype.xy = function(){};
AFAIK the second example needs less memory than the first one. But is there any other differences to those two code lines? And which one is preferred in which case?
 
@Rizier123 Generally, this should be used for things that are per instance.
prototype should be used for things shared for all instances.
 
@Rizier123 Why do you care about memory?
 
@Kyll Because memory isn't free. But this particular case is so badly abused, that most JS VMs will optimize it away behind the scenes.
 
@Kyll That is just the only difference I know about those two examples :P
@MadaraUchiha How can a method share something about multiple instances? Is there like static properties which are the same for each instance of a constructor?
 
@Rizier123 You can attach properties onto the constructor.
i.e. A.prop = 42
 
6:22 PM
So methods added to the prototype are the same for each instance. And if you change it you change it for all instances?
 
@Rizier123 Yes
 
Okay got it :)
 
You may change a prototype function in runtime, and it'll be updated to all instances and all inheriting instances as well.
 

« first day (223 days earlier)      last day (2911 days later) »