« first day (1467 days earlier)      last day (3472 days later) » 

12:00 PM
why?
 
the engine doesnt support that
You have to use the string ?, ?, ?, ?
 
yeah
but why it doesnot bind params
 
@Julo0sS You are not working with php, but with your dbms cc @argentum47
 
@PeeHaa ?? what do you mean? in the example here i set a string ($idsList) which looks like this '1,2,3'
 
i think rails introduced this feature
 
12:01 PM
@argentum47 If that is the case they are idiots
 
@Julo0sS Look at example #5 in the manual for PDOStatement::execute us2.php.net/pdostatement.execute#example-997 I wrote it specifically to demonstrate that need
 
@Sherif Nice one
 
no i don't know how they implemented it
 
@Sherif thanxx, i'll test it
 
The trick is not to use named parameters in this case.
The fact that you generate the place holders dynamically is unimportant.
 
12:05 PM
@Sherif you're just awesome :P
 
buy him a beer
 
^this is something we should code.
A "Buy me a beer" app. Where people can somehow use this beer token at pubs
No, not paypal
 
BeerPayPal?
 
ApplePay?
 
BeerPal
 
12:07 PM
@Sherif Cider is fine too.
 
I just take every opportunity I can get to knock on Apple :)
play.google.com/store/apps/… this guy apparently wrote an app specifically so you can buy him a beer
 
what are the arguments against this ?
 
@Sherif Yes, that's like selling an overpriced brick to someone.
 
heh
@JoeWatkins what happens when you have __toString I wonder?
 
i am not going to pay Rs. 72 for an app when i can buy a beer with it
 
12:11 PM
nothing
 
Like array((string) $foo => 'bar')
 
So it's snowing here, South-East Europe...
They've said it will be a mild winter and it's snowing in Autumn.
 
that's a cast, doesn't change that ... doesn't need too does it ?
 
Probably because of that.
 
if you can already use __toString then you don't need __hashKey ... right ?
 
12:13 PM
I'm just asking if it will override the behavior.
 
not of casting no ...
 
Like which would take precedence
ok
Yay, more magic ++
 
because __hashKey does a different job, you can reduce to anything suitable for a hash key, that's string, integer or double ... so they do different things ...
 
@Sherif and now, if i have a complicated query with some ...AND (id IN (...)) AND (type IN (...)).... and so on... how do i manage multiple "$place_handlers" in a query? i guess i have to send only 1 parameter ($params in your example) to fill ALL $place_holders in the query?
 
12:16 PM
@Julo0sS same concept.

$place_holders = implode(',', array_fill(0, count($params1) + count($params2), '?'));
Adding more place holders doesn't change much.
You just have to remember that order matters with unnamed placeholders
This is how it's done folks :p
 
Does anyone use any sort of RSS reader that not only syncs with Safari's reading list, but also can be accessed via chrome?
I'm looking for a solution I can use on my mac at home and on my iPhone (so safari reading list is a necessity for me), but also on my windows desktop at work (maybe via Chrome?)
 
well, here i'll have something like :
$db->prepare("SELECT * FROM table WHERE ((id IN ($place_holder_ids))AND(type IN ($place_holder_type))AND(col IN ($place_holder_col)))
how do i manage the execute($params)? what should be $params...
guess it's ($id,$id,$id,$id,$type,$type,$col,$col,$col) is it?
 
@crypticツ are you still using Arya?
 
@Julo0sS you can have on $place_holders string for each clause and just merge the $params array. Like $params = array_merge($params1, $params2, $params3);
 
12:30 PM
@webarto well, why isn't it a DateTime at all? Sounds like a valid question, so the comment looks fair.
It's unexpected that it's not an instance of DateTime.
 
You have to keep in mind that PDOStatement::execute expects 1 argument as an array.
@hakre Why would it be an instance of DateTime? They're disparate types.
 
@Sherif That much disparate they share the most letters of both names combined in their common name?
 
@hakre Maybe, but Immutable is pretty much different concept... it's DateTime after all so f* logic :)
 
@webarto yes, but you ask how can the comment be helpful.
 
@hakre Well it's better to state the comment in manual, then.
if someone is in doubt
 
12:35 PM
@hakre Names have nothing to do with the Lyskov Substitution principle.
 
@Sherif I like the typo in the name :P
 
In that subtypes must be interchangeable. DateTimeImmutable isn't interchangeable with DateTime. So therefore it can't be a subtype.
@PeeHaa It's early :)
 
;-)
 
@PeeHaa guess who's coming to Rotterdam? :D
 
No shit
 
12:37 PM
It's way too early for me, noon.
 
When? Why? For how long?
 
@webarto Oops, I accidentally that user note.
 
Yeah, maybe, buddy that I posted days ago recommended me for some junior devops job or something, just to get in.
@salathe I too
:P
 
@webarto Awesome. Getting drunk balkan style! Can't wait! :)
 
12:39 PM
@Sherif /me flicks the mug, making a "ping" sound >:)
 
Yes, I literally dip my head in the coffee like the cat :)
 
@PeeHaa Bosnia Slivovitz ... You feel no pain!
 
@Sherif that not, but with getting the impression there could have be the same baseclass while the manual says the same.
 
@hakre Where does the manual ever say that?
 
12:42 PM
@Sherif see the comment.
but first get your coffee
 
@SecondRikudo F* LOL
 
@hakre Comments aren't documentation.
 
@Sherif In PHP they are :D
 
Besides, where in the comments does it ever say that DateTimeImmutable is a subtype of DateTime?
 
@Sherif fetch it from docs you own. as you're doing the arguing already with yourself.
 
12:43 PM
huh?
 
DateTimeImmutable is on the same list of shit that has to die as goto and global
 
Comments are docs in PHP :-)
As we can't define return types, you'll see @returns in PHPDoc comments
 
We're talking about two different comments.
And two different kinds of documentation :)
 
> This class behaves the same as DateTime
^ that is from PHP docs.
And the list of exceptions to that is small:
> except it never modifies itself but returns a new object instead.
and that's then the whole sentence
 
"Behaves the same is" isn't saying it's a subtype though.
s/is/as
 
12:46 PM
That's pretty much the definition of a subtype.
 
Not at all.
The definition of a subtype is DateTimeImmutable extends DateTime, but the manual explicitly gives you the class definition DateTime implements DateTimeInterface {
DateTimeImmutable implements DateTimeInterface {
They implement a common interface. They aren't subtypes though.
 
It should be worded more "correctly".
 
MOOOOOARE correctness!
 
Yes, the interface should be named DateTime first of all.
But that's probably the mistake which has been made when this immuntable was introduced.
 
@hakre Fatal error: Cannot redeclare class DateTime
 
12:49 PM
@Sherif use a namespace :P
 
Namespace all the things! PSR-4
 
@hakre Great, now what do we do about the millions of lines of PHP code out there that already use DateTime?
Who changes a class name to an interface like that without any upside?
;)
 
@Sherif that code should always have layered access to that library in any case.
should be no problem to change that.
:)
but now something really sad:
-4
Q: Urgent - Saving '&' to XML Dom Document in PHP

SMKSMy form post has a title value set as: $title = "Company & Sons"; $xmlDoc = new DomDocument('1.0', 'utf-8'); $node = $xmlDoc->createAttribute('title'); $node->value = $title; ... $completed = $xmlDoc ->saveXML(); When I check the saved XML it saves as: Company (& amp; excluding space) Son...

 
Well, I have no idea what that means, but it appears to me that you have found a problem I can't identify and have the perfect solution to it.
 
^ what is the best close reason for this?
 
12:53 PM
I think that's a good question?
 
It's not a good question, read it again.
 
@webarto lol
 
If you don't want that, then don't use XML at all.
 
Initially there were only DateTime. Then DateTimeImmutable was introduced because having mutable DateTime is a really bad idea and it have bit a lot of people already. Of course in order to make it as drop-in-replaceable as possible we must've made it compatible with signature of the DateTime and because it can't just extend DateTime, DateTimeInterface was introduced.
 
You've just explained what we all know :)
Thanks.
 
12:56 PM
it seemed like some people here needed this explanation
 
@webarto I read it again, I genuinely don't know the answer (and perhaps I should, but I don't, so shush)
Not hugely familiar with 100% valid xml syntax (symbol-wise)
 
@Jimbo Well he wants to make invalid XML because he doesn't want to do it properly.
Or doesn't know...
And it's Urgent
 
Note to commenters: He doesnt have trouble setting the &. He was wondering why it will be auto-encoded by DomDocument! So using & is not his solution! — ToBe yesterday
Urgent was removed, and this ^
He's asking why, and the answer is that he's not 100% familiar with what is valid xml
 
People just generally do a horrible job of both asking and understanding questions.
 
Well that's the basic thing you need to know about anything you use, syntax.
 
1:01 PM
Sure, looks like a RTFM question - still, a really good answer could be made from this (and not from myself :P)
 
The question should really be changed to "What is HTML encoding?" for any answer to be reasonably useful in the future.
The answering being along the lines of "Characters like &, >, <, have special meaning in X/HTML and as such they must be encoded properly in order to avoid breaking your X/HTML. However, they are displayed correct in your browser so that &amp; looks like &, but is coded as &amp;, etc..."
 
Yes, but I'm sure it's been said before somewhere in deep tier of SO.
 
Perhaps, I'm just suggesting what the basis of quality canonical Q/A would be :)
 
What does everyone think about object composition based on a config file? You state the name of the object you're going to be instantiating and to be injected in place of an interface, in a config file, so you can create a new object any time and change this one string and it's injected instead
 
1:08 PM
That's not what composition is.
 
@Sherif :)
 
@Sherif I'm composing an object graph
 
Question: is that a documentation problem or just intentionally not defined behavior: bugs.php.net/bug.php?id=68282 (that array_diff copies the next key to use from the first passed array)
 
What you're referring to there is called reverse dependency injection, which is an anti-pattern.
 
Dependency Injection, in reverse? How so?
 
1:10 PM
Well, the idea that something is doing the injecting for you is basically the opposite of dependency injection. Like DI containers, for example.
 
LOL
 
You depend on a dependency to do your dependency handling
 
DiC's are an anti pattern
?
 
Yes, they are.
 
Hahaha
We're talking true DiC's here, btw
 
1:11 PM
I'm not sure that qualifying it with /true/ or /false/ makes it any less of an antipattern, but whatever.
 
Not something crappy like Pimple or anything like that. Something that recursively instantiates dependencies for me, based on object signatures, with mappings between interfaces and concrete objects...
 
.. oh , joy
another wannabe
 
?
 
you obviously have no idea what is the difference between DI Container and a Service Locator
 
Me personally?
 
1:13 PM
I'm just saying that dependency injection is about giving the object only what it needs to do its job at the time it needs to do it and nothing more. The idea that you have one massive object that holds all of your dependencies and works them out for you is actually contradictory to demeters law, which is what DI tries to impose.
 
who cares about creating objects?
 
@Jimbo it was not directed at you .. I know quite well what you know and don't know =P
 
Oh good :-)
@Sherif Yes, that's a service locator. Lol.
 
^ what he said
 
It's only a service locator if it doesn't do any of the actual injecting for you.
 
1:14 PM
Oh wow, @Sherif is using a real life name
 
When it tries to figure out what your object depends on, then it becomes an antipattern.
 
@Sherif Why?
 
You should be the one to make that call, not another object.
 
@DaveRandom Nowt wrong with that. So long as your real life name is unlikely enough.
 
@Jimbo Does your printer tell you what documents it requires or do you tell it which documents to print?
Which one makes more sense?
 
1:15 PM
So I state what objects I'm going to compose, is what you're saying, right
 
@Sherif I am making that "call", when I define he classes/interfaces that the constructore requires and/or configure the requirements in a file
 
@Sherif So, the difference between me going manually through all my objects and writing "this object relies on this on and this one etc" for my DI in the bootstrap, and having something automatically read these in via reflection, is what, exactly?
 
Are you though?
DI is explicit, not implicit.
 
You just know that you've stumbled upon something awesome when the method signature goes like - (BOOL)splitViewController:(UISplitViewController *)splitViewController collapseSecondaryViewController:(UIViewController *)secondaryViewController ontoPrimaryViewController:(UIViewController *)primaryViewController
 
DI Container is not deciding anything. It is just a "smart factory"
 
1:17 PM
@Ja͢ck you just accidentally the internet
 
also, in case you are not aware of it @Sherif , DI Container is not a class or an object but a library
 
@FlorianMargaine Luckily this is not for work :)
 
@tereško "smart"
 
@Sherif Well, you first of all need to go into the store, unpack it, place it and then plug it. Then eventually after driver installation goes through and network provision works out well, you can eventually print.
 
You say "smart factory" I say antipattern :)
 
1:18 PM
@SecondRikudo well .. "obedient"
 
You still haven't explained any downside of doing this, if we're even talking about the same thing @Sherif
 
@Sherif and I say, that you are a noob who should spend a year or two learning things, before making bold declarations
 
@tereško you're getting personal
 
@Jimbo The downside is that you're painting yourself into a corner. If your dependencies are being discovered by reflection and introspecting your method signatures, you fall into the traps of the language. For example, what happens when you want an array of DateTime objects?
 
@FlorianMargaine I am easily annoyed. Especially by combination of ignorance and arrogance
 
1:20 PM
@Sherif What if I want an array of DateTime objects?
 
@tereško yeah but that's your issue, you have good arguments, and when someone starts to refute them you're just like "yeah you suck"
 
\Illuminate\Support\Collection is my new favourite toy
 
@Jimbo Well, think about it. How does Reflection help you here?
 
@Sherif please, tell us in your own words, what is the difference between DI container and a Service Locator ?
you you cannot, you should just stop
 
@Sherif You're saying that I have a method signature requiring an array of DateTime objects, yes?
 
1:21 PM
@Ja͢ck can I see that method?
 
@Amelia It's a protocol method; link
 
@Jimbo Yes, I'm saying your dependency is an array of DateTime objects.
 
It sounds like someone is being very naughty with their controllers :<
 
@Sherif we have typed arrays in php? :D
 
No, that's my point.
YOu're depending on the language do things that should be a part of your design planning.
That's backwards.
 
1:22 PM
you could have a DateTimeCollection class if that fancies you
 
You decide what dependencies you need. The language can't always be as articulate as you.
 
@FlorianMargaine it's my slight ADD rearing it's head .. also, he somehow has failed to answer any of my questions
 
Well, C# for example would just have DateTime[]. But we have PHP, and the rfc didn't go through for typed arrays. So I would have a DateTimeSet, which you would addDateTime(DateTime $dateTime)
 
If you ever have to rely on the computer to do your thinking for you then you want to atleast consider, is the computer actually any good at doing this kind of thing?
 
I would then type hint for my object representing DateTime objects
 
1:23 PM
@Sherif is PHP actually good at having untyped arrays?
I don't understand your point there, sorry
 
@FlorianMargaine PHP is great at having untyped arrays. You can stick anything you want in a PHP array and it won't ever complain :)
 
although you're getting more in a typed/untyped discussion than DiC there
 
My point is you're asking the language do something that it's not very good at doing (figuring out dependencies at runtime).
The human is much better at that kind of thing.
 
@Sherif So... I still don't get how using a DiC is what you call an "anti-pattern" if I have a grouping of objects?
 
So let the human do what they do best and let the language do what it does best.
Because you don't have a grouping of objects. What you have is actually a plan to fail.
 
1:25 PM
 
@Sherif A plan to fail? Would you please be more specific, I'm trying to understand here and coming out with things like skirt around what you're really trying to say is not helping at all
 
You only realize this when your code grows over the years and one day you look at what was once a genius idea that is now holding you back from all of the things you're trying to add/improve/fix
@Jimbo What does a DI container do for you that you can't do better yourself?
Look at it this way. The real answer is nothing.
 
Not nothing...
 
lol
 
The real world use case is to justify some simplicity of design, right?
 
1:27 PM
less code to write
 
@Sherif what is the difference between DI containers and a Service Locator ?
 
@Sherif Save me a huge amount of time having to type out which objects should be provided to which objects, and which object should be provided in place of which interface
 
s/code/boilerplate
 
You believe this is making your code more modular, but when you think about it, it's actually pushing you into a corner.
@Jimbo Is it though? It's really just saving you time from having to think about those things. Which is actually very important that you do.
 
@Sherif Not at all, I can write my code as SOLID as I like, and not worry about how I'm going to wire the things together when I actually want to use them. The DiC does that for me
@Sherif No, it's genuinely saving me a serious amount of time
 
1:28 PM
Because if you don't do this in the planning/design/architecture phase you miss the boat on a lot of edge cases. You also don't get to learn from your failures.
You only try to learn from the failures of the DIC, which takes longer.
 
16 mins ago, by tereško
you obviously have no idea what is the difference between DI Container and a Service Locator
 
Let's be real. The hard part is not writing the code. The hard part is thinking about how to best write the code.
 
yeah
@Sherif you still haven't answered that
2 mins ago, by tereško
@Sherif what is the difference between DI containers and a Service Locator ?
it seems you're avoiding the question :/
 
@Sherif Answer @tereško's question, and I still am not seeing anything about why this is an anti-pattern. So far I've gotten "put into a corner" and "holding you back" and "anti pattern".
 
rhetoric
 
1:30 PM
While you're coming out with that, with no tangible benefits either way... I'm writing good code that's flexible and easy to maintain
 
Until your DIC fails you and you have to spend time not just debugging your own code, but the DIC itself.
 
Answer his question, please :-)
(Also, DiC can be fully unit tested)
 
yeah, he's ignoring the question, because hae has no clue
 
What you've missed is the part where you think about the problem rather than the solution, because the solution is less important than the problem.
 
@Sherif Answer teresko's question
 
1:32 PM
@Jimbo I willingly ignore people that enjoy turning technical discussion into personal attacks :)
 
@Sherif we're not sure we have the same definition for words. This discussion would have a better shape if we made sure we have.
 
@Sherif Okay, I haven't personally attacked you. What is the difference between a DiC and a Service Locator
 
If you answer this (non personal, it's asking for a definition) question, we'll know for sure we're on the same track (or not)
And you know... It's ok to not know.
 
@FlorianMargaine I think that's a life lesson that can only be learned by yourself or not at all, I've learned some people just aren't like that :-)
 
@teresko in a sentence, what's the difference? I, personally, am not sure I know it
 
1:35 PM
@Jimbo The ServiceLocator knows about and cares where the dependcies come from, the di container typically does not.
Also, please don't make unfounded assumptions about what I do or do not know as I do not claim to make any about your knowledge. I'm perfectly happy answering your questions.
 
@Sherif It took a long, long time to make sure we were on similar pages
Usually something people try and ascertain at the beginning of a conversation
 
I have no problem if you disagree with my argument. I do have a problem with people that want to turn that disagreement into something personal, however :)
 
@Sherif No, I'm not disagreeing with your argument, because you haven't provided an argument. I still fail to see what the problem with DiC's is apart from "you just don't like them"
 
@FlorianMargaine in a single sentence, it's kinda hard (because one is a class and other is a library). SL is an injected dependency which masks the real requirements, while DIC is external system which assembles a complete object graph. Basically, a SL will act as localized global state.
 
When I spoke at a conf in Europe on DI and best practice, everyone loved it apart from one person. When I asked him why he didn't like DiC's, all he could say was "I just don't"
I'm going to need something more, tbh
 
1:39 PM
@tereško "if you can't explain something in a sentence, you don't understand it" is my motto :P
 
@FlorianMargaine If you use symfony, or some other framework, that uses the following code $app->get('DependencyName'); within a controller, that's a service locator, because you can't tell from the method signature exactly what is required by that class / method.
 
@tereško that explains it
 
There are plenty of objective reasons not to use DI containers. Take the God Module as an example. Loading a lot of things you scarcely need with every request is not always efficient or sane.
 
@Sherif But not all DiC's have to load everything for every request...? In fact, that's terrible. You load the things you need for that specific request
 
@FlorianMargaine I can explain it, but it probably would require a 3-page article.
 
1:40 PM
@Sherif And what about caching these object graphs, the reflections can be cached, and then the benefits far outweigh an argument you can say about reflection being "slow"
 
@tereško if I make a question on programmers.se, will you answer it?
 
@FlorianMargaine not likely. I have not answered a question in months
 
@tereško I'm asking you :P
 
@rdlowrey Just to confirm I'm not using those extensions...I only need the concurrency, not the omgwtfbbq of performance. Do you still need more info...I don't think giving you a list of urls would be that useful, as the requests are Oauth'd so wouldn't help much. I can set up a key/config file for you to be able to test inside my application.
 
@Jimbo you do what you think is sensible for you needs. I'm just speaking from experience. In my experience all of the hacks you can come up with are just about making you and your code happy :)
 
1:41 PM
@Sherif I think there is a word for that analysis paralysis
 
@FlorianMargaine you probably could figure it out on your own from that nugget. The best way to understand it would be to attempt implementing a DI Container. It is kinda tricky.
 
@Sherif I'm speaking from experience also. I'm trying to understand yours.. I'm not going to just say, "let's agree to disagree" like you just did. I'm trying to understand your point of view, which you say is from your own experience.
 
@Jimbo I said no such thing.
 
@tereško I'd like to have a resource to which I can redirect people later on
 
@Sherif Then be more specific would you? The only thing we can do in this chat room is explain our reasons behind a choice. You say you don't want to use a DiC, still waiting for an objective reason...
 
1:45 PM
@hakre Hah... Analysis Paralysis Specialist
 
I've given you an example of one. Sorry, I'd love to give you more specific examples, but 1) I have a feeling you are waiting for me to convince of you something and 2) I have a meeting to get to.
 
@Sherif You are right, I want you to convince me :-) That's how people exchange opinions...
I'm trying to convince you, and I want you to convince me. Because I'm here to learn... and so you should be too... and if one of us convinces the other, with objective reasoning and knowledge, then that's good!
 
@FlorianMargaine there is a lot of words in the readme for the Auryn DIC - github.com/rdlowrey/auryn
 
@Jimbo here would be my reasons: 99% of DI Containers are SL's, I have failed twice to make my own and I don't like the restrictions of rdlowrey's
3 reasons should be enough
 
Good morning
 
1:49 PM
mornin'
 
@JoeWatkins pong
 
@tereško Hmm, so the restrictions one seems valid.. What restrictions specifically? I mean, you build your objects forgetting about any framework and DiC, and then if you have Auryn set up then you plug and play. And if you don't, you use a few more new keywords, right ;-)
 
@Jimbo it all goes to shit when you do not have concrete classes as dependencies
 
@tereško You don't like the mapping of interface -> concrete?
 
yes, there is a workaround, but it is clumzy
 
1:51 PM
@ircmaxell morning, wondered if you had time to chat about one or two rfc's today ?
 
@Jimbo you are forgetting about abstract classes too =)
 
I just gotta do school run, back in 20 ...
 
@tereško Same thing, map abstract -> concrete
 
@JoeWatkins sure, what's on your mind... Ok, ping me when you're back
 
So a couple of my colleagues just ran into a bit of legacy code which calls date(), and passes a value for the $timestamp. This value is not always provided and was being initialised to null and conditionally set with a value, resulting in some 1970-01-01s being produced. It seems to me that null here should result in the default time() value. Does anyone have any thoughts/care about this if I suggested it for 7?
 
1:51 PM
https://wiki.php.net/rfc/hashkey
https://wiki.php.net/rfc/anonymous_classes_v2
 
See, Java Spring does that mapping but with one massive xml file (I believe). Ninject for C# you put the mapping in a single method in-code. I don't even know if there's another way apart from annotations, you still need to somehow state this interface must use this object
 
Yeah....@tereško I also don't get what you mean and would appreciate seeing an example, so that we can improve the documentation if nothing else.
 
those, but really have to run, she's all like "gotta go Joe, now Joe, let's go Joe" ...
 
@Jimbo yeah, but as I said, I don't like how the workaround is implemented. I know there must be a better way. And. no, massive XML files are not the answer. I want something that can do both: reflection + configuration
 
@DaveRandom You mean null as opposed to a literal 0?
 
user895378
1:53 PM
morning
 
good moanings.
 
@Ja͢ck Yes, specifically null, since there is a semi-convention that this can be used to skip params
Obvious 0 and '0' and 0.0 and even false are still valid values that are converted to int
Not a fan of false but consistency
 
@tereško So right now it uses reflection to read that an object requires an interface. To get it to inject a concrete object you have to call $injector->alias('InterfaceOrAbstractClass', 'ConcreteObject');. And all I do is loop around a config file which reads interface => concrete and calls that method on the injector with them
 
Not sure what it would solve though @DaveRandom
 
@rdlowrey you forgot to greet in the other room :-P
 
user895378
1:55 PM
@Danack I think I've narrowed the problem down to the amp dependency. But if you have a simple URI (or set of URIs) that demonstrate what you're seeing that would be helpful too.
 
That does reflection and configuration :-)
 
46 mins ago, by bwoebi
Question: is that a documentation problem or just intentionally not defined behavior: https://bugs.php.net/bug.php?id=68282 (that array_diff copies the next key to use from the first passed array)
 
@Ja͢ck It would solve very specifically the problem I outlined. It's not really a problem as such, just a PoLA violation (IMO)
 
PoLA ?
 
Something of least astonishment?
 
1:56 PM
Principle of Least Astonishment
 
@Leri pong?
 
@rdlowrey No...I don't have a simple set....it's all a bit recursive and generating requests from the results of previous requests.
 
Oh that :)
 
Lol, had to google that ;-)
 
user895378
@Danack Okay, don't worry about it for now. I've discovered a massive memory leak that grows very quickly so I think you'd see it even if you just requested google.com over and over.
 
1:57 PM
@DaveRandom So then the signature would be changed to int $timestamp = null in the docs?
 
@JoeWatkins not sure what to think about hashkey RFC. I'm expecting to just see function __hashKey() { return (string) $this; }
 
heh, just discovered our office ceiling has a ceiling. They literally just plastered under the older ceiling and added new lights.
 
@Ja͢ck That is a question. tbh I think probably no.
 
user895378
@Fabien If your OS has a proxy server setup artax will use that automatically with no work from you. If you want to set the proxy address manually:
 
user895378
$client->setOption(Client::OP_PROXY_HTTP, $proxyAddress);
 
1:58 PM
So that guy came in, trolled everyone about why DiC's suck, and then left... I genuinely thought he would involve us with intelligent conversation, being an engineer at tumblr.
 
I've really come around to Stas' default proposal from a while back, although it would be a huge change, literally every function everywhere would be touched by it
 
@rdlowrey Danka
 
@Jimbo I wouldn't call it trolling, more experience-driven bias.
 
ProxyAddress just an IP or ip:port ?
We have a few servers with proxies
 
@DanLugg I don't get it. It was so mentally freeing to accept that I will always have other people to learn off.
 

« first day (1467 days earlier)      last day (3472 days later) »