« first day (726 days earlier)      last day (4216 days later) » 

1:00 PM
PHP6 nonsense cleanup: stackoverflow.com/questions/tagged/php6 -- Looking good!
 
@Nitin You can use the get_magic_quotes_gpc() function, it is still available in the current stable PHP version.
@Leigh Yes this has been constantly cleaned lately ;)
 
@hakre Ah, it is? I assumed they'd have taken out all references to magic quotes.
 
@hakre I know, I was part of the initiation
 
M$ seriously know how to make things difficult.
45 minutes to create an Exchange public folder
 
11
Q: Is APC compatible with PHP 5.4?

GreywireIt doesnt seem like APC has been updated to coincide with the php 5.4 release (wish they would have included APC like they had originally planned). But now I can't seem to find any definitive answer to weather current APC works with php 5.4. I managed to find Ubuntu packages for php 5.4 but php...

I hope this little bounty drives some attention.
 
1:06 PM
You mean some bugfixes?
 
That probably even, too.
 
Because I'm appalled I got so many upvotes for a non-question :P
Even if I do keep it up to date
 
Which is nice for the site. Also I just wanted to place you a bounty for the PHP6 initiative as a little thank you.
 
Really not necessary. But hmm, maybe we could use the bounty system to get people to submit bugfixes for APC
I'm sure the meta-dwellers would shoot it down pretty quickly
 
@hakre Not sure, but just what kind of answer is expected there?
 
1:16 PM
blah
 
I would prefer to run PHP without any caching at all, but apparently it has the server begging on its knees
 
STOP TALKING ABOUT PERFORMANCE IN CSS, IT'S FREAKING MEANINGLESS
 
@Nitin Why would you not want caching?
 
@Nitin There's only one reason you should ever not want to cache
If the content of the page changes on every visit
 
@NikiC Do you know what (if anything) needs to be done to APC to add generator support?
 
1:18 PM
@Leigh On a dev box, it helps avoid having to flush the cache
 
And even that only if there are few enough users so your server won't crash
 
@MadaraUchiha and APC-style bytecode caching, will still stay the same
 
Or that :D
 
@MadaraUchiha The development cycle feels quicker when we don't have to manage caching
 
@Nitin If you have to manually flush your cache, you've done caching wrong. I've never seen APC need to be flushed - You do realise APC is bytecode caching, not content/dataset caching right?
 
1:19 PM
@MadaraUchiha BTW, plain vanilla PHP works fine without caching
It's the frameworks and CMSes that make it a CPU hog
 
It all depends on what you're trying to do
A very heaving "vanilla" php application would still take a mounsterous amount of CPU
heavy*
 
@Leigh Don't know, but I'd guess that little to no change is necessary.
The major issue with PHP 5.4 was the addition of interned strings
 
@NikiC That's good to hear
 
@MadaraUchiha that's not entirely true
 
@tereško I'm not talking about major improvements
 
1:21 PM
And traits too. Traits are a big can of worms from an internals perspective. They are one big dirty hack with lots and lots of bugs coming up over time
 
Most questions are about silly micoroptimizations
For rules, that would match 1 element anyway
And even if they are heavy, in a production site, you'd have to mess up real bad to make the browser clog on your CSS
 
@MadaraUchiha i'm actually referring to large scale applications with heavy JS animation
 
@tereško My point still stands
Even if you need to code efficiently, don't think about coding efficiently
 
@MadaraUchiha True, but most apps in their vanilla form are quicker than ones that use frameworks.
 
think about semantically correct class names and IDs.
If you do that part right, the CSS will be natural, and efficient by default.
@Nitin Agreed
And an application made with C++ will be much quicker and more efficient
But I don't see you whipping up your good 'ol TurboC++ and start coding
 
1:25 PM
@MadaraUchiha There are a few things in CSS that are really slow and it's rather easy to avoid them right from the start.
Keep reflow times down
 
@Nitin It's obvious that the more overhead noise and higher level the language gets, the less efficient it gets.
@NikiC Well, I wouldn't be surprised if html * * * { position: relative; } would clog your browser
And that without animations or filters
 
In particular one should know that CSS selectors are evaluated from right to left, so if you the last selector is something like * it really sucks performance wise
 
But what can go wrong if you write semantically?
You mean what you code
And that's the biggest difference
 
@NikiC I just picked one answer to place a bounty. It's more the bounty than the question.
 
1:30 PM
Why can't i authenticate myslef with this script?
$url = 'https://****.onjira.com/rest/api/latest/issue/COU-1432?expand=changelog';
$auth_header = "Authorization: Basic " . base64_encode("****:****");

//get the file (e.g. image) and output it to the browser
$ch = curl_init(); //open curl handle
curl_setopt($ch, CURLOPT_HEADER, $auth_header);
curl_setopt($ch, CURLOPT_URL, $url); //set an url
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //do not output directly, use variable
curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1); //do a binary transfer
it always return me an error 401
and i have the good username:password
 
@MikeBoutin When posting code, please press the Fixed font button.
 
ok sorry
do you want i re-post it?
 
Press the up arrow on the keyboard, it allows you to edit previously posted comments for a short time.
 
someone know how can i rpocess a curl string like this :
`curl -u username:password https://jira.atlassian.com/rest/api/latest/issue/JRA-9.json`;
with a php script
to get the json string
 
@hakre Ah, you're pushing @Leigh?
 
1:40 PM
Seems to be, makes me feel a bit uncomfortable to be honest. I don't want to be hakres bitch (yo!)
 
He just wants another recruit in the delv army :-P
 
1:56 PM
@Leigh will need a few bounties though :D
 
a few? Something like 30
 
Good afternoon
 
@NikiC If you go over a certain rep, then dip below it, do you lose the privileges associated with it?
 
there's only one way to find out
massive spree on @Leigh! Loose those 1975 points and find out!!!
 
Voting irregularities inbound!
2
A: Securing database connection information

NikiCThe main issue is that the web server might break down later on. E.g. after a software update php might not work properly anymore and the server falls back to delivering the files directly. Or again after a software update the configuration might be reset, so PHP is no longer registered for the f...

@NikiC not just outside of the webroot
You can set constants via webserver config in most cases
and make that file readable only by root
 
2:11 PM
@ircmaxell I know but he's already a partial member of that, just not enough for delvs. ?
 
lol
 
@Leigh And I hate how they just locked that question
 
user50049
@NikiC It was that or close / delete it. The question is not .. practical .. for a Q&A format.
 
@TimPost Then please delete it.
There is no point to a question listing security relevant functions if it's not possible to update it over time
Just seems pointless to me, or would you disagree?
 
user50049
2:26 PM
@NikiC I don't disagree with you. But I don't disagree with the lock, either. I think this demonstrates that we're simply in a state of .. metacognition if you will?
 
@TimPost I'd say that it's similar to the C++ book list (stackoverflow.com/questions/388242/…). That's also a question that definitely should be locked for historical significance, but probably wasn't because a book list doesn't make sense if you can't keep it updated
 
metacognition... I like it
 
user50049
@NikiC Well, right now, the question contains a lot of useful and accurate information. I'm not going to delete it on some kind of hard line principle based on it not containing everything it could.
 
user50049
That would be silly.
 
@TimPost It's certainly silly. Just as silly as locking it
The locking is just such an enforcement of hard line principles that just don't make sense in this case ;)
 
2:31 PM
Well, we've identified a broken portion of SO
now it's up to us to come up with a fix
 
user50049
@NikiC Locking it prevented deletion. And our guidelines, such as they are ... yeah, we have a broken tile on the floor.
 
@ircmaxell Not sure, but wouldn't a rather simple fix be to have the ability to add the "bad question but historical significance bla bla bla" notice without actually locking the question?
 
user50049
PHP is a rather exceptional case because SO is probably the only good place to get information about PHP. All books mostly suck, most blogs are outdated, most forums contain hideous suggestions
 
@ircmaxell We start our own PHP Q&A site, with blackjack, and hookers!
 
@Leigh Eih, leave out the blackjack...
 
user50049
2:32 PM
That makes PHP rather unique, at least as far as SO is concerned.
 
@TimPost documentation?
And as far as most books sucking, those times are a changing...
 
user50049
@ircmaxell Umm, I assume you have watched the PHP tag ... given that, WHO READS THE GODDAMN DOCUMENTATION? :)
 
Shameless self-promotion ... coming soon? ;)
 
@TimPost Well, don't other tags which tend to serve the bottom ranks of people (new people with little to no dev experience) have that same problem?
 
user50049
@ircmaxell Yes, Android specifically.
 
user50049
2:34 PM
And IOS to a degree
 
user50049
I'm working with them too
 
I'm learning android dev, I've posted exactly 0 questions on the subject.
 
user50049
Brad was a Godsend to the mod team
 
Well, that indicates it's not a PHP problem, but a beginner problem...
and to be honest, SO was never ment to cater to beginners...
Neither are blogs or documentation
 
user50049
@ircmaxell More like logical or (beginner / php)
 
user50049
2:35 PM
Or (beginner | android)
 
I disagree with that assertion...
 
It's not even a beginner problem, it's a general lazy-person problem. I have been able to find almost everything I need, about any subject, with between 2 and 20 minutes searching ;)
 
I think it's (beginner & (android | php | ios | blah... )
 
user50049
@ircmaxell I'm not 100% vested in it yet. But I do have a very high bird's eye view
 
well, those who have lasted a while tend to realize how to solve problems for themselves...
 
user50049
2:36 PM
Yeah, that's closer to what I mean to say (I'm a tad tired, I fought against Enom's API all day. Enom won)
 
Is that like Omnom?
 
And that's a mindset we need to propagate, by crushing all those who oppose us.. it
 
$om->nom($food)
 
user50049
@ircmaxell The domain registrar
 
:-P
 
2:37 PM
enom is when you eat food in an online rpg..
 
user50049
$enom->nomnom()['fries']
 
@TimPost Sorry for getting angry once again. I'm just so fed up with some of SOs moderation policies.
 
wait nomnom() returns an array of food???
 
@ircmaxell offsetGet($index) { return checkBeardFor($index) }
 
user50049
@ircmaxell What would you expect nomnom() to do?
 
2:40 PM
ROTFL
@Leigh Ah, so enom is a Unix guy. Got ya
 
user50049
@Leigh You could probably use fries for testing there, reliably.
 
Unit testing nomnom could get expensive..
@ircmaxell Hows your abstract class vs interface blog coming along? ;)
 
hrm, it's coming
 
user50049
I spent several days trying to explain the difference to someone. It didn't work.
 
Yeah, I've got part of it written, but not all...
 
user50049
2:49 PM
Looking forward to anything that explains the difference between extends and implements beyond the obvious meaning of the words. I don't understand why the difference is so hard to understand.
 
well, it depends on perspective
 
user50049
If all you want is a contract, use an interface.
 
user50049
else
 
user50049
use an abstract class
 
well, it depends on if you treat classes as types or as containers
 
user50049
2:51 PM
I'm eager to read it once you finish it.
 
A main difference between abstract classes and interface is probably the fact that you can only extend one abstract class, but can implement multiple interfaces. That's why languages which support multiple inheritance often don't need that distinction (e.g. in C++ interfaces are just abstract base classes)
 
Sure they do...
they just don't realize they need it
 
Why?
 
Well, I've always used interfaces to define the minimum requirements of a class, and abstract classes to provide the common implementation between descendants
Of course the abstract class implements the interface...
 
implementation != specification
 
3:03 PM
@Leigh Yup, that's what I do too
@ircmaxell Sure. So what?
 
Well I consider the important bit, the fact that the abstract class implements the interface, it doesn't have to complete it
So a partial implementation of the specification, and deferring the remainder of the contract to the non-abstract (is there a better word?) classes
 
@NikiC different tools for different requirements
 
@ircmaxell Still don't quite understand. If there is one tool that can take both roles (abstract classes with multiple inheritance) then why would one need different tools?
 
@NikiC How can you solve specification with multiple inheritance? Unless you use the notion of an abstract class...
 
@ircmaxell Why the "unless"? I mean using multiple inheritance and abstract classes to solve specification.
 
3:12 PM
Well, then you have to use convention for the abstract classes... Never have any code at all
 
user50049
wat?
 
^ by the way, is it beneficial to close old questions? ('coz of dupes, etc)
 
@ircmaxell Why? There will be abstract classes that only serve as an interface and other abstract classes that provide additional implementation.
 
@Christian That's TL, not a dupe. it is only relevant to [...] a specific moment in time
 
True, but hinting against implementation isn't good. So it'd need to be a convention...
 
user50049
3:15 PM
That's my understanding, interfaces provide no implementation. Why would you want an abstract class that provides no implementation?
 
@DaveRandom TL?
 
@Christian Too Locali[sz]ed
 
@DaveRandom Why's it too localized? He's asking for a list of URLs, same question loads of other people asked.
 
@TimPost instead of interfaces
 
Every question on SO is "too localized" by that standard. Except those asking about which (framework|language) is best.
 
3:18 PM
@Christian A list of URLs that may or may not be valid next week/month/year.
 
@DaveRandom Wut? OpenID urls must exist indefinitely, or the provider fails his job.
 
@TimPost I was referring to languages that don't have explicit interfaces. In PHP there obviously is no reason to define a class with abstract methods only
 
user50049
@NikiC Ah, thank you :) I was starting to scratch my head.
 
@Christian What if the provider goes bust?
@TimPost When questions get closed do they lose their Google ranking, or do they need to get deleted as well?
 
@DaveRandom What if PHP suddenly ceases to exist? Should we go removing all PHP-tagged questions out there? :D
 
user50049
3:22 PM
@DaveRandom No, I see many show up as [closed] when searching for stuff.
 
user50049
When deleted, a question actually throws a 404
 
user50049
If you're logged in and are over 10k, you can see it (just like you would any other 404 page)
 
@TimPost So deleted posts are kept indefinitely on SO servers? OR are they eventually purged permanently?
 
@TimPost :-( should hide closed q's from the Google crawler with a 404, or at least remove them from the sitemap, says I
 
user50049
@Christian There has only been one 'hard' delete in SO history, the boat programming question
 
3:25 PM
@Christian Touché... I still say TL though - it may be a dupe many times over but even if you close them all to a canonical, it would still be TL. IMHO. YMMV.
 
@TimPost The what?!
 
and other acronyms as well
 
user50049
All questions that are deleted live in the DB, we just 404 them. If you have sufficient rep to see deleted questions, we display it.
 
user50049
@Christian One day, in a galaxy far far away, someone asked a wildly off topic question in the context of being a programmer that was going to live on a boat (it was a hardware question).
 
How come it deserved a hard delete?
 
user50049
3:26 PM
It was closed / opened / closed / opened about a gazillion times
 
user50049
I'm getting to that
 
user50049
When the OP finally let out that it was a joke, Jeff ran a query and .. obliterated it was
 
@Christian Case in point, PHP6 tag cleanup
 
user50049
That is the one and only hard delete, every other question in the system that has been deleted can be easily undeleted. That goes for answers too
 
:D
 
user50049
3:29 PM
10k + users can see every deleted post (question or answer) we have, and vote to undelete.
 
user50049
Jeff, to this day suffers from the Streisand effect .. once people hear about it, they immediately want to see it. Internet archive has a copy for the morbidly curious.
 
@TimPost That was probably before the locking system?
 
user50049
@NikiC WAY before, this was just a few days out of private beta, IIRC.
 
Or does locking not work for deleted questions?
@TimPost Ah, I see :)
how old is SO anyway?
 
user50049
@NikiC If I delete something, it is locked. The community can not undelete it. My vote is final and binding. But it still exists, and another mod can (if they see fit) restore it. You can't lock a deleted post, locks are in place to prevent deletion (and more noise)
 
3:32 PM
 
@TimPost Ah, right, I forgot that moderators had those cool magic delete votes
 
user50049
@NikiC Locks basically embalm a question for the period of time the lock lasts.
 
user50049
Quite handy when policy changes are on the horizon.
 
user50049
If a mod locks something, it's because the content is just too awesome to 404, or .. perhaps .. the mod just wants to prevent deletion pending a discussion, or series of discussions.
 
user50049
(along with drive by crap answers)
 
user50049
3:36 PM
We don't have a 'reason' field to append to a lock message. What you see is what the system prints. We see a drop down menu.
 
@TimPost If you type what do i need to do to be a programmer into Google, auto suggest gives you the out at sea
 
@DaveRandom Mine doesn't :( I am dissapoint
 
user50049
@DaveRandom There's actually a programmer 'survivor' that will be filmed on an island in The Philippines soon.
 
@Leigh I did it in the Chrome bar
 
user50049
Not the IOS one , a different one.
 
3:39 PM
@TimPost
 
user50049
@DaveRandom Yep, 10 programmers, 10 minutes a day of Internet. Or something like that.
 
> I like phpass for being small & simple, and agree with the author of wiki.php.net/rfc/password_hash (oh look - it's the same guy again, he's all over the place!) that a simple core API would be really useful to have.
 
@TimPost 10 weeks in the making, 10 minutes of watchable television would probably be a better tagline, I'm guessing.
 
user50049
3:58 PM
@DaveRandom Probably.
 
Be sure to come to my cryptography talk at #TrueNorthPHP. I just ordered a surprise for a few lucky attendees...
 
free beer ?
 
It's in Canada, it better be european beer, even if it is free...
 
posted on October 11, 2012 by Internet Super Hero

Is mysqlnd stable, is mysqlnd ready for wider consumption? Judging from the latest set of tests: yes! During the development of mysqlnd, the MySQL native driver for PHP - an alternative to libmysql, a good number of new tests have been written. Let’s see how ext/mysql and ext/mysqli perform when ...

posted on October 11, 2012 by Internet Super Hero

Dear Developers, we are proud to announce the beta version of the MySQL native driver for PHP: mysqlnd 5.0.1-beta. The software is available for download on http://dev.mysql.com/downloads/connector/php-mysqlnd. The MySQL native driver for PHP is an additional, alternative way to connect from PHP 5 and PHP 6 to the MySQL Server 4.1 or ...

posted on October 11, 2012 by Internet Super Hero

Q: Will future versions of mysqlnd support PHP 5? A: Yes, future versions of mysqlnd will support PHP 5. However, currently we focus all our development efforts on implementing core functionality like Unicode support and support for Prepared Statements. The reason is that we do not want to be distracted by ...

posted on October 11, 2012 by Internet Super Hero

I have written a long, long blog entry How fast is mysqlnd-5.0.0-alpha?.I do not want to spam the Planets with all of it. It’s aimed at PHP and MySQL users that want to hear in detail what we know about the performance of the first alpha release of the MySQL ...

posted on October 11, 2012 by Internet Super Hero

Dear Developers, we are proud to announce the first alpha version of the MySQL native driver for PHP: mysqlnd 5.0.0-alpha. The software is available for download on http://dev.mysql.com/downloads/connector/php-mysqlnd. The MySQL native driver for PHP is an additional, alternative way to connect from PHP 6 to the MySQL Server 4.1 or newer. It ...

posted on October 11, 2012 by Internet Super Hero

Not long ago, Kaj announced the plan to develop a native driver for PHP. As Kaj explained, the new development will be licensed under the terms of the PHP license and donated to the PHP Group to solve any license issues. Don’t get us wrong here. We will not break ...

posted on October 11, 2012 by Internet Super Hero

Recently mysqlnd, the MySQL native driver for PHP, has been checked in to the PHP 6 (HEAD) development tree on cvs.php.net. This blog posting gives a quick overview how you can build PHP 5 and PHP 6 with mysqlnd support. What mysqlnd is and what not If you do not know what ...

posted on October 11, 2012 by Internet Super Hero

A blog comment from Ian makes me wonder if I failed to state clearly what mysqlnd is. See below for his comment. Ian, I am thankful for your blog comment and question! Probably you are not the only reader who needs a little more background knowledge about mysqlnd. Please allow ...

posted on October 11, 2012 by Internet Super Hero

Have you ever been annoyed about the input and output binding that is part of Prepared Statements? Prepared Statements have their room in PHP and MySQL[i] for some good reasons. Though, I recall that I didn’t like the output binding when I tried them for the first time. I wanted ...

posted on October 11, 2012 by Internet Super Hero

Lastly, I’ve been blogging about positive performance related feedback on mysqlnd. Whenever I did so, I got some positive feedback - for obvious reasons: I was posting good marketing news. On the one hand I like to get that feedback, on the other hand I do not feed comfortable ...

 
user895378
4:15 PM
Woah, @Feeds ... nice monologue.
 
user1125394
make me a sandwich - what? make it yourself
sudo make me a sandwich - ok
 
Someone just made the list.
And why is feeds spewing stuff by Ulf from 2007..
... because someone submitted his articles from 2007 to planet php
 
Woah
 
My favourite Planet PHP: PHP: mysqlnd checked in to PHP 6 (HEAD)
Just wait, the PHP6 rumour mill is winding up, I can hear it
 
how to show default selected values in choosen plugin?
?
 
4:25 PM
can you please elaborate?
 
@ircmaxell i think he mean.. how to get the selected tag in choosen plugin already ... @jhonraymos am i right ?
 
again, that doesn't really explain the problem
 
@ircmaxell I am storing the tags posted in database By user.But when user again edit the question than how to show back theese tags again?
 
Seems like someone once again making the case for crystalball.SE
 
again, that's not really a question. Start off general: what platform, what you're trying to do, etc. Then get specific: what you tried, etc
 
4:31 PM
@ircmaxell iam trying to design a qustion system like SO .User create a question and define some tags (i am using the choosen plugin to show the tag and to store i am using serialize())..When user again wants to edit the question than how to show the previous tags in <select > field or plugin field..?I am using php
 
Other then Artax, are their any favourite Http Clients ?
 
you mention plugin, yet PHP doesn't have plugins, so you must be using something else...
@Nick file_get_contents or curl
 
@ircmaxell really, I wanted to avoid curl_*
 
why?
 
I don't know why
 
4:32 PM
@ircmaxell i am using jquery choosen plugin ? to show the tag like SO?
 
Ahhh, now we're getting somewhere. As far as how to populate the fields, I'm not sure, you'd have to look at the docs of the plugin
 
@jhonraymos This is the PHP room, not the jQuery/javascript room. And @NullPointer either you are a second account from the same person or you are psychic /cc @TimPost
 
@ircmaxell I'll use curl, great talk on Password hashing, looking forward to your crypt talk
 
thanks!
 
4:35 PM
Quick question, anyone knows what's the best model of Galaxy S2 out there?
 
@cyril Yeah, I'd pwn that guy...
 
Should I just get the i9100 or is there a newer, better model?
 
user50049
@jhonraymos This is the PHP room, please keep questions on topic.
 
personally, I will only get Nexus devices again...
@TimPost I'm not worried about the offtopic part. I think he pinged you because nullpointer...
 
@ircmaxell and @DaveRandom what do you mean ?
 
4:38 PM
Don't ask me...
 
@TimPost I don't want to go complaining to mummy and daddy or add to your ample workload, but it just seems a bit suspicious that another account randomly seemed to understand some detail with no prior context.
 
user50049
@DaveRandom Man, I'm watching Elmo deteriorate into an alcoholic on Twitter .. is this really more urgent than that?
3
 
@DaveRandom how do you think that .... with my only one replay ? either you are pretend to be a psychic or an idiot
 
@NullPointer Well, it's true, I am an idiot.
@TimPost No no, you carry on. :-D
 
user50049
@NullPointer How, precisely does one pretend to be an idiot? One does not simply pretend to be an idiot.
 
4:42 PM
@DaveRandom Who are you talking about?
 
user50049
IOW, Be nice.
 
@DaveRandom okkk... than pardon me
 
@MadaraUchiha That.
 
user50049
Much better. Back to twitter.
 
I have no desire to stir the pot/tread on peoples toes/other metaphors as well, and it's home time for me
laterz
 
user50049
4:47 PM
TC @DaveRandom
 
user1125394
4:57 PM
@rdlowrey did you see comment's answer to your comment ralphschindler.com/2012/10/10/di-dic-service-locator-redux
 
5:08 PM
morning
 
user1125394
@PeeHaa +12h
 
@cyril I just got back from the job so it's morning :)
 
user1125394
I failed to boot from any version of chromeOS
 
user1125394
5:15 PM
probably this laptop don't like it
 
user895378
@cyril I have now:
 
user895378
> @Ralph, I can appreciate your statement. Please elaborate on when you feel it's appropriate to obscure your class API with a potentially infinite number of dependencies via a Service Locator instead of providing the class exactly what it needs.
 
user895378
Service Locator is lazy. You might as well say, "I didn't spend enough time on my class architecture and now the only way I can solve this problem is to share the entire application with this class."
 
user895378
There's just no (good) excuse for not directly injecting class dependencies.
 
user1125394
spaguetti locator
 
5:39 PM
I'm getting T_VARIABLE error on this line $responseBody = $this->httpClient->retrieveResponse(UriInterface $uri, $curlOpts);??
 
user895378
@Nick Why are you type-hinting your variable with UriInterface in runtime code?
 
user895378
$responseBody = $this->httpClient->retrieveResponse($uri, $curlOpts);
 
Lack of sleep lol ? Man I'm stupid, thanks @rdlowrey
 
mmm ... dark beer and cambozola cheese
 
@rdlowrey Agree with you... I'm trying to unsdestand this paragraph until nowadays:
"Inversion of control is a common feature of frameworks, but it's something that comes at a price. It tends to be hard to understand and leads to problems when you are trying to debug. So on the whole I prefer to avoid it unless I need it. This isn't to say it's a bad thing, just that I think it needs to justify itself over the more straightforward alternative."
http://www.martinfowler.com/articles/injection.html#ServiceLocatorVsDependencyInjection
 
user895378
5:47 PM
@KeyneON Personally, I don't see how passing your entire application to a class could be called more straight-forward than passing the exact dependencies.
 
@rdlowrey Me too... I can't see where is the hard part (debug)
 
user895378
Not to mention, if you're going to use classes but not observe OOP principles, why are you using classes at all? Just use functions.
 
user895378
Even with functions, though, it still makes way more sense to give the functions exactly what they need in their signatures than giving them a grab bag of everything.
 
damn chinese
trying to access my google account
forcing me to change password
 
Hi
 
5:51 PM
@rdlowrey Yeah, to me seems harder to debug with a ServiceLocator than DI. I really can't understand that paragraph.
 
user895378
@PeeHaa lol has there ever been a question that was more "Too Localized" than that one?
 
Just created a "easy-php-unit-testing" class.
https://github.com/s4wny/easy-php-unit-testing#installing
What do you guys think about it? Does it look good?
 
Sure. The other questions of people with a joomla / wordpress / cpanel / ... site :D @rdlowrey
 

« first day (726 days earlier)      last day (4216 days later) »