« first day (3926 days earlier)      last day (1246 days later) » 
00:00 - 23:0023:00 - 00:00

23:00
@Crell in the version I watched you must have either skipped or shortened it a lot.
nah, not skipped, "match is an expression" was at least in there.
There's only been 2 versions of that talk; before PHP 8 and with PHP 8.
And match() I think is only in the PHP 8 talk I have?
could be. I found it not particularly focused on PHP 8 (like, only) which I think is good for a talk.
You may be confusing 2 of my recent talks... :-) Exploring PHP 8 talks about match. "Never* use Arrays", I don't think mentions match() at all, but does touch on PHP 8 a little (mainly for how easy it is to use objects now).
Hi guys ! hope you all are doing fine
the array loving talk, "Never* use Arrays", does mention match() IIRC.
23:05
i have question Cannot execute queries while other unbuffered queries are active does this error is related with cloudflare timeout?
@Fiido93 what kind of queries? database?
update statement
single record
that error is common. and if this kills HTTP requests, it should not give timeouts on cloudflare, but cloudflare is usually shitty, so perhaps it's a side-effect.
fix the update issue first.
are you aware of the topic on the stackoverflow site?
well the update statement are pretty simple tho.
UPDATE items SET timing=1 ;
23:10
@Crell I had this version: youtube.com/watch?v=BfqGHTFlVT8&t=1332s - and not bookmarked anything further. did I really mixed it? I thought it was that talk.
@hakre i was wondering does this related issue on cloudflare. cuz this error suddenly occured with no reason
@Fiido93 problem is not the statement in itself but the handling around.
@Fiido93 well there certainly is a reason, but now as you say it, why should this be a non-closed mysql (or mariadb) PDO? cursor issue suddenly.
so meaning that there are queries are still running, so i need kill/free one of the process so i can execute other process
@Fiido93 yes, sort of. but why didn't this happen earlier?
@hakre yes does puzzle im trying to figure out what happen actually.
23:13
yes, first get it working again. time for wondering is later.
@Fiido93 are you using PDO? / Mysqli? or what else?
@hakre I think you're confusing my two most popular talks in the past year. :-)
@Crell Well, certainly not because I remember having only watched one. But if you have another one, please share the link.
@hakre PDO sir
@Fiido93 please call me "Yours serving majesty".
General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.
23:17
I don't think the PHP 8 one has been recorded. :-) But slides are here: https://presentations.garfieldtech.com/slides-php80/seattlephpug2021/

And it includes a link to the book of the same name (that covers 99.4% of all PHP 8 changes).
@hakre lol aight "Yours serving majesty".
@Fiido93 if you have not changed anything else, I would go with the single change suggested in the error message if you're running against a mysql/mariadb server.
@Crell hat talk definitely I never watched. I'll take a read then.
@hakre The book is free, as it was based on a blog series I published at Platform.sh. You can get it from Platform.sh by signing up for their mailing list, or from LeanPub directly for free, or throw a few bucks my way on LeanPub if you're so inclined. :-) It's also one of the books available through Nomad PHP.
@hakre ok keep digging
@Fiido93 isn't the configuration change easy to deploy? I mean, this could give direct results, and if not, revert.
23:27
@Crell I just checked in on your linkedin profile, Staff Engineer, fancy.
They didn't care what I called myself, so I went with the fanciest title I felt comfortable with. :-) Plus, it's reasonably descriptive. "Senior-level person dealing with really complex hard problems to make solutions other people can then build on confidently."
@Crell books sounds cool. I like to watch talks, but clicking through slides is a different thing.
Ah :p
@hakre Yeah, most of my slide decks are only marginally helpful without me talking over them, by design.
@Crell well, isn't this normal?
23:29
@MarkR Like, most of what I've been doing this week has been investigative work to completely replace the entire data storage layer in the next version with something PHP 8-native. So far, I'm really really liking what I've got.
@hakre You'd be surprised.
You're using existing PHP code that has a data storage layer that ... isn't PHP?
No, I mean I'm writing a data storage layer based on an architecture that assumes PHP 8.1.
Whereas their existing data storage layer assumes PHP 5.1, on a good day.
php 5.1 is kind of heavy, even for my taste.
there are really some typo3 installs out there it sounds.
It's very big in central Europe.
21 year old application. Parts of it... show that.
23:32
yes I know, I even know it early, but I always tried to be away from it.
it's one thing to do wordpress, and the other to do typo3 stuff seriously.
Fortunately, "take really old but powerful codebase and rebuild it to be modern and cool, eliminating 500 bugs along the way and using less code" is kinda my jam. That's why they hired me. :-)
you're giving well an impression of a motativated employee. don't do otherwise ;)
:-D
joke aside, push the boundaries.
I'm aiming to be running a team of 4 or 5 people within a few years
23:34
The only boundaries are what the language imposes on me.
I think I could run a team, if management actually wanted me to do so and gave me support in doing so. Sadly, I've never actually gotten that.
I hired my first person a few weeks ago, it's odd moving from working on my own
Also, I just ran into a use for match is. So, there's that. And several for pipes and PFA and/or FCC.
and speaking of php arrays/typo3, they perhaps found a pretty good match.
I thought you were aiming for manager roles though, chief architect or something like that?
@Fiido93: you're still living, or did you brought all your servers down?
23:38
@MarkR I was. But then TYPO3 offered me a Staff Engineer position on a major GPL project with an interest in my expertise at cleaning up old OSS codebases, with a modestly sized team and a good salary. Kind of hard to say no to that, especially as it means I can over time transition into informal leadership/architecture as I feel comfortable.
honestly, this sounds pretty reasonable.
Ah fair enough, and you seem to be enjoying it, so all power to you :-)
Yeah, net result of the messiness of the past few months has landed pretty well for me. I'm good with it. :-)
the only true maintenance and refactoring is in OSS projects.
lol, no
23:41
@hakre i dont get what are u trying to say?
I'm sat here refactoring a closed source enterprise project right now
@Fiido93 could you solve the problem?
maybe i need do some by pass the execution
i just need it update this one query, but seem in global also doing query select statement
@MarkR that's not what I was referring to. you find maintenance and refactoring in many commercial software projects (if not nearly all), but they have very limited scaling requirements.
Explain what you mean by scaling requirements?
23:42
their use is pretty limited.
e.g. normally for one business case only.
this says little of whether this is good or bad, but commonly with more requirements it puts software more under test.
Perfect use case for "match is", in the future...  cc @IluTov

$rType = $this->property->getType();
return match(true) {
    $rType instanceof \ReflectionUnionType => throw UnionTypesNotSupported::create($this->property),
    $rType instanceof \ReflectionIntersectionType => throw IntersectionTypesNotSupported::create($this->property),
    $rType instanceof \ReflectionNamedType => $rType->getName(),
};
@Crell I'm not the only one who suffers hungarian notation?
I abandoned putting *Interface, *Exception, etc. on everything a few years ago. Kevlin Henny convinced me of it.
I mean prefixing names with a single character for type
Assuming "r" means resource
23:52
Oh. I sometimes do that for reflection objects. I don't know that it's good, but I often don't know what else to do with them.
# it would be great if `match()` would support "partial application" like:
return match($this->property->getType()) {
   instanceof \ReflectionUnionType => throw UnionTypesNotSupported::create($this->property),
   ...
but I also like switch(true) or match(true). I only always need to look-up in the manual if this is strict comparison or not.
@Tiffany suffer? in the sense that it drains you down?
00:00 - 23:0023:00 - 00:00

« first day (3926 days earlier)      last day (1246 days later) »