« first day (1525 days earlier)      last day (3422 days later) » 

12:00 PM
He who burns himself on milk, blows at yogurt too ;-P
Rebecca Black: Friday, awesome.
 
I... cannot even begin to imagine what you actually mean by that. The mental image of blowing yoghurt is interesting though.
 
To cool it, whatchamacallit.
@DaveRandom You don't need to "nail it", it's just (bool) $DaveRandom... to be honest I think I haven't answered those correctly at all. I would "Just do it".
 
I would, except that the voucher was expensive enough that I don't want to have to pay it again
It's pretty annoying that you don't get at least a bit of practice material by buying the voucher
 
Samir and Lejla, those are my friends (m/f), I used CSRF to fake poll and got their names in music video.
So I kind of nailed security questions.
@DaveRandom IMHO the ZCE title is losing or lost its value...
 
Probably true
 
12:04 PM
I took it because I already bought it years ago (it didn't expire after a year which is odd).
Also, going to ask for a raise in 55mins, on the account of it.
 
So is the test taken online or is specific places you go and take it?
 
You have to go to a test centre
Otherwise you could cheat pretty easily
 
I would probably have to go to Germany then
I want a zend cert also..
 
There are a lot of questions you could answer with the manual in 3 seconds
 
yea, I like that it is not online..
=]
 
12:06 PM
Heh, test centres.
My University has online tests.
 
Why the hell github is trying to launch flash plugin..
 
You need to get rid of devices and you're being recorded while taking the test, google Pearson VUE test centers thingy. @RonniSkansing
 
@AlmaDo copy to clipboard on click
 
@TheodoreBrown Yes, that's a problem with usual type hints in the spec too.
 
@PeeHaa and for that.. flash. Really?
 
12:10 PM
Yes AFAIK just for that
 
I'll be sure to fix that up.
 
stupid..
 
@webarto closest one I found is in Dortmund, Germany.. Around same distance as to Amsterdam from where I am.. Maybe I could plan a nice roundtrip next year
 
@RonniSkansing Really, you sure about that?
In my small city there's 3-4 of them. Bosnia, dude.
 
Hmm.. Let me double check that, was looking on Zend's site
 
12:14 PM
@RonniSkansing here :-)
 
yay thanks @webarto
Lots of them in Denmark
 
The discount code of 50% @DaveRandom once sent me still works, also you would need to proxy so it looks like you're in USA, to pay in $ instead of € :-)
 
sol
anybody here?
 
Nope.
 
12:27 PM
What do you guys typically use for caching on your sites?
 
Caching what?
 
Well I'm definitely not here.
 
mysql queries and also general page static content
 
Redis and reverse proxy I would say (though reverse proxy not always makes sense)
 
@webarto congrats! :) How long have you been learning before taking the exam?
 
sol
12:29 PM
Does this chat use nod.js?
node.js*
 
Or did you just pass without learning?
 
@ThomasDavidPlat Zero dedicated time for exam, but from since PHP 5.3 got out, in total :-)
If you "prepare" for exam specifically, that's false image of your knowledge then, IMHO.
 
But certs in general is a false image)
 
alright :) Thanks.
 
@nikita2206 Yes. No. Maybe.
 
12:34 PM
What's the point of the ZCE
 
Raise, perhaps, but when you're noob.
 
making employers prefer you over other applicants imo :<
 
Wrong kind of employers then.
 
It helps with the first stage: HR
 
If company has HR I'm not there, then.
 
12:37 PM
I quite like the idea ... the only thing I don't like is that you have to pay for it ...
 
A lot of good ones have. There's too few good companies out there to filter them out like this
At least in where I am :P
 
I think there are a lot of companies in Germany that put much emphasis on that kind of documents
 
quite a few companies have certification programs. ms, oracle, apple and whatever ... it would be good if it were free and more people done it ...
 
@JoeWatkins I'm not sure if much goes to Zend, but Pearson VUE test centers cost.
 
Whoever is bored and wants to create something I put "DDEX Generator" in the list of suggested things. It's needed and unavailable
 
12:44 PM
The problem with exams like the ZCE's is that it's mostly irrelevant details AFAIK
It doesn't matter if you know PHP's horrible argument order off-by-heart
 
sol
Does this chat use socket.io / node.js??
 
@sol no
 
sol
@PeeHaa how do you know?
 
@sol Because SE is a MS company
 
@sol the whole SO stack is .net based
afaik
 
sol
12:53 PM
got you
 
Is there some configuration that needs to be done in phpunit in order to connect to a database?
 
sol
can anybody help me out with something about socket.io and php
 
@PedroPinheiro You mean besides connecting to the database?
 
=] @PedroPinheiro why does a database have to do with phpunit?
 
sol
@PedroPinheiro lol isn't there always config to be done when connecting to a db
 
12:55 PM
@PeeHaa no, I just need to connect to it and do queries later
For example, I'm trying to connect and assert that the connection went succesfully
 
56 secs ago, by Ronni Skansing
=] @PedroPinheiro why does a database have to do with phpunit?
 
But the connection is being rejected
 
Why would whatever it is you are doing be different than what you would normally do?
 
@PedroPinheiro unit testing does not involve the database unless you are saving the result of a unit test to the database, testing if a connection to the db works, is not part of unit testing
 
Are you trying to test your configs?
 
12:56 PM
@PedroPinheiro Google "XY problem"
 
sol
522
Q: What is the XY problem?

GnomeWhat is the XY problem? When asking questions, how do I recognize when I'm falling into it? How do I avoid it? Return to FAQ index

 
well I'll keep searching the problem then. I just consulted you guys to check if there were some special configuration that needed to be done
 
@PedroPinheiro did you understand the part about database connection is not part of unit testsing?
and no, there is no special configuration needed if you want to save the results of the tests afterwards
 
@RonniSkansing yep, but in my case it seems to be part of it
 
sol
anybody here ever used php/mysql with node.js/socket.io ? to have php/mysql real time mesaging system?
 
1:00 PM
@PedroPinheiro which case might that be?
Sounds like your are doing integration testing (which are not part of the unit testing)
 
I need to use a framework, a part of this framework involves a connection to a database. So to test the usage of this I need to connect to the database
 
@PedroPinheiro Depending on what you are trying to test you don't need an actual database
 
@PeeHaa In this case I do need it
 
@PedroPinheiro you should learn to do unit testing from clean vanilla code, with test first, code later (red, green, refactor style) before applying it to a framework
Because you are doing it wrong and it is not unit test that you are creating
 
@RonniSkansing I see. Good to know this.
 
1:04 PM
@PedroPinheiro =] It is a Need to know
not nice to know
 
@RonniSkansing but if I do need to connect to a database, or do an integration test (as mentioned), what would be a good strategy to do that?
 
@PedroPinheiro What do you want to test? That your code is working properly? Or that the db connection works?
 
@Patrick That the db connection works
 
Guys.
Does it make sense
To create an interface
For every class we create
and list every method in it?
 
1:08 PM
Can you tell me, what is the best use of interfaces?
 
defining a contract
 
@HassanAlthaf Dependency injection
 
@RonniSkansing thanks, I will read it immediately.
 
1:12 PM
Hi every one. I have a noob question. I would like to use PHP-DI (dependency injection container) but the documentation says that I need composer to use it. Actually I don't use composer. Then, is there in possibility to install it without it? Sorry if my question is stupid but as I sais I'm little lost in this world :S
 
Oh, so you use interfaces to segregate different tasks in a class?
 
Dec 16 at 9:01, by PeeHaa
@JediDula Yes. Just download it and include it just like we have done for several decades
Or just install composer
 
@korima do you mean you dont want composer?
 
2
A: PHP Constants Containing Arrays?

Andrea FauldsSince PHP 5.6, you can just do this: <?php const DEFAULT_ROLES = array('guy', 'development team'); Or even: <?php const DEFAULT_ROLES = ['guy', 'development team'];

upvotes pls
 
Done.
 
1:13 PM
@AndreaFaulds srsly?
that's awsum
 
@PeeHaa I supposed that but the library hasn't any autoloader class and there are a lot folders with subfolders. Then I don't know if I need to require all that files
 
@HassanAlthaf you use interfaces where you have multiple concrete classes of a family that all need to share a common public API
 
@korima That sucks
 
@FlorianMargaine it seems to have been an accidental addition, but it's pretty cool :)
@FlorianMargaine it seems to have been an accidental addition, but it's pretty cool :)
 
I see, thanks @ThomasDavidPlat
 
1:15 PM
@AndreaFaulds lol, I see
 
In that case just install composer @korima
 
Can you use the const keyword outside a class?
Just in a normal procedural file?
 
@PeeHaa Ok, thanks. And to face of install composer on any web hosting server, like iPage, would be there any problem?
 
why would you use OO language features in a procedural context?
 
@ThomasDavidPlat like lets say you have a bootstrap file?
 
1:19 PM
@korima I have no idea what iPage is (sounds pretty horrible though :P), but you can always run composer locally and deploy
 
@HassanAlthaf Yes, you've been able to do that for ages. The manual isn't clear enough.
 
Good Morning!
 
Oh, that's nice. Is there any difference between, const keyword and the define() method?
 
@this.Tony hello
 
1:21 PM
@AndreaFaulds stupid me! Didn't know that was possible. bah.
 
@HassanAlthaf I think const is nicer syntactically... The main difference is really you can't use arbitrary expressions with const like with define(), because it's not evaluated at runtime. Also define() doesn't work with arrays, I am trying to fix that.
 
can someone please help me understand why the first !preg_match returns true and why the second one doesnt
var_dump((bool)!preg_match('/[^a-z\s-]/i', "Going to the - mall")); //true
var_dump((bool)preg_match('/[^a-z\s-]/i', "Going to the - mall")); // false
 
@ThomasDavidPlat I don't blame you, the manual used to be less clear about it I think. Also if you learned PHP a while ago you might not have known.
 
@PeeHaa It's a web hosting enterprise. Many times, in the admin control panels, they disable options and like I have never done this before, I have basic knowledge of PHP, I don't know if I could do it
 
Actually I learned it a while ago :D
 
1:23 PM
@this.Tony ! inverts a boolean
If the value is true, ! makes it false, and vice-versa.
 
@korima You don't need composer to run the thing, just to download it
 
ok makes sense i would always interpret ! as "does not"
 
@this.Tony It's more like "not".
 
@PeeHaa Ok, thanks for all. I'll see what will do.
 
@AndreaFaulds one other thing when using preg_match() does it just do a check with out returning a boolean?
the reason i say this is because i tried if (preg_match('/[^a-z\s-]/i', "Going to the - mall")) { echo "this"; } and it didnt echo anything
 
1:33 PM
@this.Tony What do you think ^ does?
 
@PeeHaa to be honest i dont know regular expressions at all
 
Sounds like you have something to do this weekend :)
 
yes launch my website lol but anyways what does it do?
 
You are the one using it so why don't you tell us?
 
it means everything except lowercase a-z?
 
1:37 PM
Close
 
@PeeHaa can you help me fix my preg_match so it can only be letters spaces and a hyphen?
 
I am not planning on giving you teh codez nope
However what you want to do is pretty trivial and shouldn't take you too long to figure it out
 
please?
 
Nope not even if you ask nicely :)
But I am sure if you ask google nicely she will provide the answer
Yeah it's the brother of this one
 
@this.Tony regexone.com spend some time on learning
 
1:47 PM
Goodbye o/
 
@this.Tony well that was uncalled for
 
@RonniSkansing thanks
 
totally was ...
 
that was directed at @PeeHaa ... a joke
 
bad joke.. lol
 
1:48 PM
:)
 
dv ftw =]
 
didn't take me long to go on my other account bahahahahaa
 
lol ^
 
hahahahaha
 
1:53 PM
Stop flagging unoffensive comments. You're causing noise right across the network. Thanks in advance.
 
I just saw the best thing in my life: pastebin.com/Ne3PHJdT (not a friday post)
 
@LightnessRacesinOrbit Oh shut it
 
@LightnessRacesinOrbit dude is mocking the room because he's circumventing a chat ban
 
@PeeHaa Excuse me?
@rlemon So simply ignore him like grown-ups rather than bothering the rest of us over it.
 
or you know, mod flag and move on
 
1:54 PM
Yeah or that
 
@LightnessRacesinOrbit The c++ room is shit more annoying regarding flags every single day...
 
@PeeHaa And? So? Therefore?
 
Do we come in there bitching about flags? nope
 
o/ i do
 
1:55 PM
Some other people in some other room do it and get told off for it but therefore it's okay for you to do so also?
@PeeHaa Yes.
 
@rlemon is not part of this room :)_
 
You seem to be under the impression that there is some sort of "balance" that needs to be maintained between the PHP room and "the C++ room" (what is that?). You are mistaken.
Just stop flagging and generally being a douche. Thanks.
@PeeHaa Yes, presently, he clearly is.
 
LightnessRacesinOrbit go away, everyone already heard what you had to say
 
@LightnessRacesinOrbit I don't. I just don't care about your whining
 
anyone who uses OS X here? xD
 
1:55 PM
@PeeHaa Gees. Grow up, man.
 
Is multiprocessing possible in PHP?
 
trolls gone, how about we stop being argumentative
 
?
 
I kicked it already
 
kick again
1 minute isn't long enough
@cspray I'm jealous of your glorious beard
 
1:58 PM
We all are
 
totally
 
@rlemon :D
It comes in really handy on days like today when it is so cold outside.
 
I haven't shaved since March... I think I'm starting to see stubble
 
such drama. Where did the christmas feeling go ..
 

« first day (1525 days earlier)      last day (3422 days later) »