« first day (2527 days earlier)      last day (2426 days later) » 
00:00 - 15:0015:00 - 00:00

3:13 PM
one of the two was good, the other one was... meh
 
@Saitama All those *.SE sites are so fucking idiotic
money, workplace, interpersonal
 
but helps you to kill your time, just going down the rabbit hole of 'featured network questions'
 
I can't handle so much stupid
 
the most idiotic thing I find is worldbuilding
 
worldbuilding is ok though at times
hahahahah
 
3:31 PM
woah :P
 
Good to know where you are on the stupid spectrum :P
 
Hello, I would like to ask you a question about inheritance and scopes.
I've been studying this http://php.net/manual/en/language.oop5.late-static-bindings.php
 
meh, things are so abstract in there :B
 
And there is this example in that doc. https://ideone.com/nVD5tb

I was really good so far but after reading this late static bindings. I literally got lost.

So let's assume a class inherits a parent class. And let's say we are using a function from parent class, like in the example. What is the scope now?
 
Beats questions like: "I broke the kettle on the job what now"
 
3:33 PM
hahahaha
 
People are just retarded and unable to just think for themselves
 
but I found this there, worth it :P
 
That one is pretty badass
Crazy
but badass
 
exactly
 
@PorFavorDama The scope of what?
Scope is the callee I guess is what you are wondering about?
 
3:35 PM
and creating a computer inside of some game, is some next level thing
 
@PeeHaa The scope of the function that we called from parent class in our child class.
 
let alone creating a game inside of a game
 
@PorFavorDama The function itself or the properties within?
 
:39173621 For example, in the example I've shared ideone.com/nVD5tb there is this code

A::foo(); //Outputs C .

Is it the "A" which makes the difference here? from parent , self.
Why wouldn't static keyword point to the class "C" instead ? Since it is "static::who()" like others (parent and self)
 
It's not pointing to C
A::foo();
Execute the method foo from the class A
 
Then, that is something different than "parent::foo() and self::foo()" right?
 
yes
 
I thought it would work the same since it is in another class
 
A::method() is just executing a random method
Any debian users? What package contains ifconfig? :P
nvm :D TIL ip should be used
 
all of the debian os-es I've ever used always pre-packed ifconfig
 
3:46 PM
Yeah. I think ifconfig is just obsolete
I probably have just been working on old version recently
I would prefer centos tbh
I hate having to find thing again
 
:P
I've kinda always like any sort of ubuntu derived os'es
: putting in random * and & until it somehow compiles
 
yeah you would do fine on debian in that case
 
Okay, thank you. Can you also help me to understand how parent::foo() works here?

Here is what I think. The function "test()" works and then when it comes to parent::foo() it goes to the class A since B's parent is A. (If I am not mistaken) and then executes foo() but since the function who()'s keyword is static it goes to the static who() function in which the test() function called from, right?

Hope this is understandable for you. This is all I could explain in English, excuse me :D
 
Yes. Think I understand you correctly and yes you are right in your explanation
 
oh god, I just realised that you can't just do char foo[4] = "bar"; char baz = foo;
its so dumb
 
3:59 PM
evening
 
o/
 
@PeeHaa Thank you, that relieves me. ^^ Because I was so confused. :D
 
\o
 
4:20 PM
php.net/manual/en/function.usort.php - I would have a question about Example #1
 
@Saitama if you just have a string, you don't have to count the numbers: char *foo = "bar";
 
cmp ($a, $b) - this will be 3-2, 2-5, 5-6, and 6-1
 
> PECL Account Request: ayurvedam
I am a ayurveda doctor from kerala.The importance of ayurveda, ayu implies life Veda implies information. It's called information of life. What's more, ayurveda is a standout amongst the most conventional treatment in Kerala .it is accomplishing for profound body unwinding and mind unwinding
 
the cmp function returns either -1, 0, 1
 
seems legit.
 
4:21 PM
so these values are used to sort the $a array?
 
heheheh
 
How does "-1, 0, 1" translate into 1,2,3,5,6 from 3,2,5,6,1 in the $a array?
I have another example from w3resource.com and this is even more advanced
I am not fully getting how this works, yet
 
@AaronSmith I strongly recommend stepping through it with a debugger.
 
ok, thanks - this may be a good thing to know
 
Or just google what a sorting algorithm is.
 
4:23 PM
I will try the debbuger part, maybe this help me with the examples; I was learning the debugging theory already
so this could be used, thanks, this can be good
for the future too
basically there is no way to know how these things work and I need to figure it out one by one :)
the debugger / breakpoints can be good
I have NetBeans and I am somehow accustomed to that, and I've been learning the phpStorm for several days
I am going over all this stuff :)
but the progress is GOOD :)
would I use the debugger on a lot of examples from php.net, in general?
this is what people would / could do?
or rarely?
 
@AaronSmith no, most of the examples are simple enough to read and comprehend. Sorting is a dynamic thing, so is easier to watch it in action.
 
ok, thanks a lot
great that I can get some info from here, it saves me some time
or a lot of time
but this is getting easier with time, so this is good
initially I was thinking that it may be hard like this all the time
the more you learn the easier it becomes, so this is good
I know the websites part, I can help with that, like social media, analytics, all the things like this
 
@bwoebi I've expanded on my RFC to include the change for removing the new line requirement (it will have a separate vote): Flexible Heredoc and Nowdoc Syntaxes. Let me know what you think!
 
ok, thanks again! I have another great angle that I can use down the road
and I will have like 5th or 6th coffee today now :)
 
4:48 PM
@AaronSmith Actually, in case you still didn't find an explanation, it is explained in the very first user note here : php.net/manual/en/function.usort.php#108116
 
thanks, I will check that out, I don't have a solution yet
but this is ok, I will use the debugging part - this is a good thing to do and learn with this
but probably tomorrow, as I am tired of this
I started with reading php.net manual (and I did quite a lot) and learning NetBeans, after this 21 days of break and now I am doing phpStorm and I want to do the Regex
and also, continuously the php examples from w3resource.com (very good, things like this example here)
then probably like 3 weeks of break and coming back to reading the php.net manual
harder - break - easier - break - harder - break - easier - break, I am thinking now
but I want to do a PROPER learning
yes, but based on that comment, somebody was in the same situation as I am now, and he is saying that this is not an obvious thing how this works
but the debugging info is good, because this is something that can help me in situations like this
I read about it, theory, but I would not get to the point of using it for this
when you work for somebody you cant be asking around on the forums and things like this, you need to solve the problems by yourself
Thanks @PovFavorDrama, this is what I needed to know; there is also that -1, 0, 1 aspect built in into this
so I was not aware of this, I was also not sure what is the origin of $a and $b and basically I was not understanding the code
and this was not even explained on the manual page, it is only in the comments
I have not been reading any comments yet
this has taught me another thing today too, check the comments too
so the debugging or comments on the manual can help, this is what I learned today, and this is a big and great knowledge to have!
thanks to this chat, basically
this is literally making me a better php programmer here
for the future
does not matter, I have an answer to this
 
5:19 PM
....
!!dad
 
Why couldn't the bicycle stand up by itself? It was two tired
 
Does that guy really type so fast, or...
 
Someone else had mentioned that before as well :D But don't remember who.
 
I type 1 word in 1 min
 
I will delete that info though
I am learning, but I am not bad, learning wise
good level, school / edu wise
was it going easier for you, when you were learning?
like, lets say the usort(), Example #1 part?
I may not be using some tools like debugger, lets say
I will get to that
so I will be able to get all the answers by myself
I did not do IT in college, this is the first programming language that I am learning too
I was not like the #1 person in math in high school lets say, my main subject was biology
I am a beginner, basically, this is true
 
5:39 PM
@Saitama I just put him in the ignore list
 
5:56 PM
@PeeHaa you got frustrated :P
 
Several people already told him to not do it. So I can either kick him or ignore him
I choose the latter
 
yup
 
Same, I've had him in the ignore list for ages, and just un ignored him so that I could understand what people were replying to, and partly because I was bored.
Time to roll back I guess.
 
need to make a blocktogether.org only for SO
 
:)
@DaveRandom I have a better thing to do for you
Write a postgres libgit2 backend wrapper
:P
Actually looks pretty simple, but I will just first write it in php :)
 
6:04 PM
The mysql one is <500 LoC in C, can't be that hard :-P github.com/libgit2/libgit2-backends/blob/master/mysql/mysql.c
 
Dude
It's C
I am not compatible with c
 
I could do that
Not right now, and I probably won't ever, but I could :-P
so could you tbf
 
:)
Also looking into how to combine libgit, the backend and the php binding
I think I am getting there
Slooooowly
 
Hahahah vengeance!
 
6:12 PM
@PeeHaa lol last commit is 2014 :-P
 
Nope
 
oh it's by that chobie guy who wrote the libuv binding
 
There is another fork
That one works on 7
 
oh nice
/me is RLing, bbiab
 
Yep
Later o/
 
7:07 PM
> Going to war without the French is like going deer hunting without your accordion
I lol'd
/cc @FlorianMargaine
Also I find this disproportionately pleasing
 
@tpunt LGTM, thanks :-)
 
Does delete_site_option('option-name') in WordPress deletes all the option from all the multi site?
 
7:25 PM
nobody here uses wordpress
 
7:42 PM
How do I add the build passing/failing tag to the github readme?
I just integrated with travis ci
Never mind, I got it.
 
9:16 PM
@DaveRandom you're British, you really want to get into this?
 
 
2 hours later…
Anonymous
11:07 PM
hmm... I just made a word avalanche ...
 
00:00 - 15:0015:00 - 00:00

« first day (2527 days earlier)      last day (2426 days later) »