« first day (4610 days earlier)      last day (345 days later) » 

9:27 AM
.......why does Zoom not respect volume controls on my computer?
@Tiffany auryn is going to get a release in about two weeks. Just giving people an opportunity to review the chunky PR from dev into main.
 
 
3 hours later…
12:32 PM
Can I get some peer review on these quickly scrambled together benchmarks? I'm trying to make a point that Autowiring in DI is OK (I really don't want to use DI without Autowiring). I have two benchmarks setup for this task. One for pure Reflection: 3v4l.org/r5MAZ Another mimicking a DI container with and without Autowiring: 3v4l.org/3K4ar#v8.2.6
There's some commented-out code on the second one to tweak the behavior, such as Singleton/Prototype in the Database and Logger classes
My take from these benchmarks is that autowiring in DI only starts to become a problem if you instantiate literally hundreds of thousands of classes from the Container on a single request, at which point, autowiring becomes the least of your problems
 
@IMSoP RE: function autoloading pinning. The runtime cache is going to be a pain, as under opcache the caches get compacted and thus use the runtime cache of the first call, even if you would "declare" the proper function afterwards
 
@LucasBustamante I'm not going to comment on your benchmarks, as:
Dec 19, 2013 at 18:56, by NikiC
Don't trust benchmarks that you didn't fake yourself
But yes.....autowiring is just really fast compared to almost any I/O operation. If your application is going to touch a database, or any other external resource, then how long autowiring takes will be minuscule compared to the I/O operation.
 
Bro. It's WordPress.
It's exactly the point I made. In the worst case scenario it's like a query to the DB.
Which we do a lot of
 
If you don't have any external I/O e.g. are just talking to Redis in ram then maybe speak to @bwoebi about how he wires those up applications up 'by hand'.
 
I'm trying to defend DI on a codebase made of 90% static methods, properties and singletons.
 
12:38 PM
@LucasBustamante then while the person who is worried about speed is right to do so.....but they should learn to benchmark their apps, to see what is actually taking the time.
 
</rant>
It's a legacy, huge, system, that's been around for many years. I have a proposal to modernize it but folks are afraid of DI due to performance reasons. I'm trying to show them that DI is not a problem, but a solution.

There's not even an autoloader in place, so all the files are eager-loaded. Well, anyway, if I start to rant I'll be here all day, not the point I want to focus on.
 
@LucasBustamante Can you say how much does your hosting cost each month? Even just approximately.
 
I don't know, not even a ballpark - the company has it's own servers, too
I'm using DI52, mostly because it's from my mentor, the guy that taught me everything I know, and I followed up the development of the package closely, we would do rubber duck session on zoom while in development: github.com/lucatume/di52
The benchmarks suggest it's not that bad (raw HTML) pastebin.com/raw/t5t0PnZ0
 
@LucasBustamante If someone has a fear of something, it's hard to argue them away from it, so maybe try and make the discussion be about something else.
Namely, how much developer time can be saved through autowiring. Which might also be a difficult thing to persuade them about, but probably easier to walk them over that gain, than it is to get them past a phobia.
maybe mention that static methods and singletons were appropriate solutions in the past, as they did allow the code to be written faster than wiring everything up by hand, but the maintenance cost is a long term burden, slowing down the team.
 
and it kills GC
I mean, static properties
 
12:52 PM
@Danack well, for a web-application (read: application with quite some endpoints) I definitely can recommend amphp/injector.
For a simple server application which does one task and should do it well, you just manually pass the deps...
 
But good point about the fear thing. People will never want to give a thumbs up and be co-responsible for something if they don't understand it, especially in a critical system. I was hoping that empirical benchmarks would make a good point
The performance of autowiring is something that I wanted to understand myself, too
 
@LucasBustamante Yes, you would have hoped that facts could be used to persuade people....but you know:
 
Hahahaha
 
1:31 PM
@Danack oh heh :D the person who commented is the person who gave the uncon talk
On your PR
 
@Tiffany ah, just as well I wasn't sharp with them then:
 
1:46 PM
Shrug, users testing is good, yes?
 
@Tiffany Yes, it would be. But the person didn't actually even look at what had failed, it was only the benchmarks, and then are offering unasked for "opinions" about decisions that were made deliberately, and took multiple hours of work to get working.
Being told "you're wasting your time there mate", particularly on work that's already been done, is.....not a warm and fuzzy feeling.
 
2:18 PM
Fair though
 
3:17 PM
Jun 17, 2021 at 14:15, by Danack
Je m'accuse!
 
@Danack great documentation work btw
I wonder if I've ever double-shared an instance, but it feels like the type of explicit failure I'd normally be in favor of.
(if I had any opinion to have about a topic, obviously)
 
4:09 PM
docs question... github.com/php/doc-en/blob/master/reference/url/functions/… I was about to change this to &example.outputs; with <para>(word wrapped for readability)</para> but.... I almost feel like it should be statically typed out: <para>The above example will output: (word wrapped for readability)</para> because the label text is intentionally different than what is dynamically generated from &example.outputs; and I'm thinking that it should remain...
but the current wording on the page should be improved
"I'm thinking that it should remain" = I think the behavior that the text is no longer dynamically generated should remain because it contains an addendum to phrasing... but I'm not sure if this is the right idea with php docs
 
4:21 PM
aaa!
I got SSL to work \o/
 
yay :)
 
But no luck with help for LDAP :(
:headdesk:
bang bang bang
 
4:33 PM
@Tiffany can I ask about your ldap.conf ? is it like a XML file with <item></item> in it or did you just have TLS_REQCERT and TLS_CACERT
 
I had the latter
it wasn't an XML file
 
no its a .conf but is is formted like a xml file
 
right
it wasn't formatted as an XML file lol
 
so what did you put for the tag? Anything? <doof>STUFF</doof>
 
but that's my own personal experience from like... over five years ago... I no longer have access to that file
@JukEboX my ldap.conf file was not formatted as an XML file. It had TLS_REQCERT and TLS_CACERT
 
4:34 PM
Yeah I know. I am grasping at straws now.
 
it was [option] ON on one line, and [other option] [some other configuration] on the other line
[option], [other option], [some other configuration] are pseudocode examples
 
ok I will try in. Just not sure where to put it in the XAMPP dir
 
5
Q: PHP how to specify ldap.conf location?

Patkos CsabaI have a PHP compiled with ldap support and it is working as expected. Now, I need to do some configuration for SSL/TLS but I have no ldap.conf file. php -i says it was compiled --with-ldap=/usr so I suppose I should make the ldap.conf file in /usr, but I have no write permission there because ...

 
4:51 PM
At this point I think I am going to have to back date the XAMPP to 8.0.28 because whatever they did for 8.2.4 that changed PHP there isn't enough information anywhere with the change since 8.1.0. I just can't find enough logging or information on the changes and how to fix them
 
 
1 hour later…
6:17 PM
@Tiffany I GOT IT!
1
Q: XAMPP 7.0.4 PHP 7 LDAPS Connection can't bind LDAP works fine

Wes WakemanMy connection to our Domain Controllers via LDAP is fine however when I try to connect via LDAPS it fails to bind. I've added the c:\OpenLDAP\sysconf\ldap.conf path and file and tried adding this "TLS_REQCERT never" to that file as several sites have suggested but no luck. The code I'm using is...

 
6:29 PM
FWIW, I don't think your issue was PHP version specific, but happy that it worked
 
 
2 hours later…
8:32 PM
@JukEboX are you still raging against the machine... er: protocol(LDAP)?
 

« first day (4610 days earlier)      last day (345 days later) »