« first day (3440 days earlier)      last day (1494 days later) » 
01:00 - 22:0022:00 - 00:00

10:00 PM
Hi, I already read the documentation ,, but still can't understand the leavenodes and enternodes, and how to go through the nodes inside. Is there any tutorial of using this library, or is there any training I can attend to understand this library
 
lol
 
I need it really, bcz my task is based on go through the nodes and change some of leavenodes and coverage the code
Is there any training I can attend to learn it ,, or youtube tutorial of using it
 
If I can speak for the room: Nobody has any clue what you are talking about
 
I want to be familiar with this library ,, to know how to go through the nodes
and familiar with using leavenodes, enternodes function
 
I would also be worried about your comma key on top of the "library"
 
10:05 PM
it seems I am the only one sticking up for immutable as a keyword…
 
I might go for immutable too
 
(I'm not just being contrarian, though it does amuse me)
tbh the write-once RFC looks fine except for the bit where the property must have a type declaration, wtf
they don't want to copy over the default value (or lack of it, rather) semantics to non-typed properties for this case I guess
 
so what
 
hmm… cloning not allowing modifying the properties would be less problematic if classes could have multiple constructors…
 
final isn't a voting choice? Huh?
 
10:13 PM
I mean 'PHP-Parser'
 
Why wouldn't we literally include the word Java and C# use when it doesn't conflict? (We can't do final properties today, right?)
 
That means something different in PHP
 
I think Java uses it for the same thing for PHP, but it also overloads the meaning? I may be wrong
yeah
final variables do a different thing to final classes and final methods
I suppose it's good that it's not a voting choice insofar as it removes the option of copying what might be considered a bad aspect of Java…
 
I had no trouble with it in Java shrug
 
cmb
Máté explained the naming considerations quite nicely: phpinternals.news/44, Máté Kocsis 4:25
 
10:25 PM
@cmb Is that from old or new testament?
 
cmb
:)
 
Hi. I have a series of questions about ports. Are ports always listened or is it an interrupt-on-signal based mechanism that we use on our devices and servers?
 
10:46 PM
@LeviMorrison If we do property accessors we pretty likely will want to have final properties in the proper sense of the word
And abstract properties for that matter
It makes little sense to reuse the keyword for a completely unrelated purpose, if it may be needed for it's intended purpose yet...
 
Fair enough.
 
hi!
can I talk to another developer
i am becoming mad with a MySQL bug, and i do not know where to ask for help already
please please
 
> Don't ask to ask, just ask.
 
ts go then
mmmm... well, I have this:
delete user_and_privilege, user_and_community, sessions
from sessions
left join user_and_privilege
on user_and_privilege.id_user = sessions.id_user
left join user_and_community
on user_and_community.id_user = sessions.id_user
left join user
on user.id = sessions.id_user
where user.id = 1016;
and this:
delete from user where user.id = 1016;
DELETE USER_AND_PRIVILEGE, USER_AND_COMMUNITY, SESSIONS
FROM SESSIONS
LEFT JOIN USER_AND_PRIVILEGE
ON USER_AND_PRIVILEGE.ID_USER = SESSIONS.ID_USER
LEFT JOIN USER_AND_COMMUNITY
ON USER_AND_COMMUNITY.ID_USER = SESSIONS.ID_USER
LEFT JOIN USER
ON USER.ID = SESSIONS.ID_USER
WHERE USER.ID = 1016;
this works great
(this is the first query)
DELETE FROM USER WHERE USER.ID = 1016;
(this is the second query)
this works great too
the problem is that when i try to delete USER in the first query too, it throws an error
I wanted to combine these two queries in 1:
DELETE USER_AND_PRIVILEGE, USER_AND_COMMUNITY, SESSIONS, user
FROM SESSIONS
LEFT JOIN USER_AND_PRIVILEGE
ON USER_AND_PRIVILEGE.ID_USER = SESSIONS.ID_USER
LEFT JOIN USER_AND_COMMUNITY
ON USER_AND_COMMUNITY.ID_USER = SESSIONS.ID_USER
LEFT JOIN USER
ON USER.ID = SESSIONS.ID_USER
WHERE USER.ID = 1016;
notice the "user" in lowercase
in the first line
it does not allow, it throws:
1451. cannot delete or update a parent row
How to sum up this...
 
Better than the filling of the entire screen I hope :P
 
11:00 PM
Hehe, sorry, forget that code.
Basically, when i try to do a delete with joins that include the parent table, it does not allow me to delete
but when i separate the parent table in a different query, it does allow me to delete the parent row
 
So do it in two queries?
 
is this happening too in sql server?
this is crazy, i am gonna demmand mysql oracle
 
ok
 
it is crazy, and you know it
2 queries are uneeded
i am putting the deletion order in the deletion query
 
I have no idea what the question is :P
 
11:04 PM
hehehe
i am trying to delete at once children tables and parent table
and mysql forces me to do 2 **** queries
one for the children, one for the parent
 
Pretty sure even mysql allows that and you are just doing it wrong
 
exactly!
but i am afraid this is not what is happening
because i set the parent table the very last of all
and it still throws the cannot delete or update, i am afraid mysql is using alphabetical order or something to sort the tables i am deleting
ok, i will try to alias the tables
but this is crazy, you gotta know, it has nosense at all
nothing
 
Have you considered to research a bit more instead of spewing out all your thoughts and how you think it might work?
 
Sharing a link here is not researching it
 
11:08 PM
here it demonstrates that it allows to delete parent and children with one query
 
So if that demonstrates it and it doesn't work for you wouldn't that mean you are doing it wrong?
 
@Andrea do you have a good idea how readonly semantics could be used together with non-typed properties?
 
@MátéKocsis by giving them the same initialisation behaviour as typed properties
i.e. you would have the intialisation behaviour typed properties have right now both for (readonly and non-readonly) typed properties and also for readonly non-typed properties
 
you mean public readony $foo was also uninitailized by default?
 
yeah
 
11:11 PM
PeeHaa yes, it all points to that, but this is not working, and for the query to work, i only need to remove the parent table
unreal
this is unrealistic
absolutly unrealistic
 
@Andrea hmm, in my opinion it's even more inconsistent than what I proposed :D
 
ill do it in 2 queries.........
but absolutely unrealistic
i should have picked up mongo
 
@Andrea another idea we had during the beginning of the discussion period is to somehow treat non-typed properties as mixed
 
why do u prefer php over nodejs?
 
@MátéKocsis that's the same idea? what would the difference be?
@MátéKocsis such are the sacrifices you make for compatibility
 
11:14 PM
@Andrea the first problem is that we don't have mixed yet ^^
 
if you do not set a type, you can go on, isnt it?
 
@CarlGentleman you know there is more than one database you can use? I dunno if postgreSQL supports what you're wanting to do, but mysql isn't your only choice
 
the thing is that i am using and abusing information_schema
thanks Tiffany, maybe the inf_schema script is compatible with postgresql too, but i am afraid it is not, i have not digged into postgre
 
@Andrea of course not having mixed should not be a real blocker... but I don't like the fact that we would treat non-typed properties completely otherwise how we normally do... because of implicitly casting them to mixed. It just doesn't seem to me the right thing to do.
 
@MátéKocsis you're already treating them differently to normal because they're readonly
 
11:19 PM
@CarlGentleman php.net/manual/en/pdo.drivers.php good thing there's more than two
 
sqlite is not... the idea, you know, too lite.i only want it to be free open source
 
@Andrea Maybe I didn't get you: but I don't treat them (non-typed properties) differently since they can't be readonly.
Instead, I'd just wait until we have mixed and then we could use every type together with the readonly modifier.
 
@MátéKocsis well, it's a tradeoff. do you consider it better to have a minor inconsistency here or to have no support for untyped readonly properties
 
the trouble itself is unreal, totally parallel to reality, i tell u
 
@Andrea I agree!
 
11:22 PM
2 queries, we have turned absolutely mad
coronavirus is wining the battle to mental sanity
i can confirm, 2 queries, c'mon
world going nuts
what a madness, 2 queries..
 
my choice (based on the initial discussion) was the former one. It might was the wrong choice, but I don't think I'd ever like the alternative (implicit mixed type)
 
Holy shit. It's still going on
 
its mad
 
@MátéKocsis mixed or any? :-)
 
hehe i was joking
but i am very deceived from mysql, i cannot understand this inconsistency, if i set the parent table the last to be deleted, i do not, i cannot understand why the error of "parent table cannot be deleted" should be thrown
 
11:28 PM
@PeeHaa any :)
* former one => latter one. I should sleep now :) Good night, everyone!
 
Night
 
11:42 PM
nite o/
 
ok
I got it
and it was my fault
luckily
i was repeating the table name in the delete ~, ~2, ~3, ~4 from ~
ok, good night
 
01:00 - 22:0022:00 - 00:00

« first day (3440 days earlier)      last day (1494 days later) »