« first day (1647 days earlier)      last day (3298 days later) » 

Anonymous
9:01 PM
@LeviMorrison Can you review a small update I made to the manual? I made my first contribution, but I do know whats next. It does not say it is accepted/rejected.
 
@samaYo Did you submit a patch for review?
 
Anonymous
@LeviMorrison Yes, I guess. I edited the how to read functions page.
 
Anonymous
Still nothing. @Worf tried to help, but could not bare the pain of the xml editor.
 
I don't think you submitted one for review.
I don't see one from samayo
 
Anonymous
It's under Samayo.
 
9:05 PM
Right-click on your changes. Tell me what options you have.
 
Anonymous
But, I modified and did xmlint check and saved the changes.
 
y u no merged my PR yet @LeviMorrison :P
 
@Worf I actually don't know how. I think I have access but bjori always does these :)
 
:D ahah no problem
 
@samaYo You are looking for something like "submit patch for review"
 
Anonymous
9:08 PM
ok. Just checking now
 
I <3 0 cost assertions!
 
@samaYo Have you created a patch for your changes?
 
Anonymous
@LeviMorrison yeah, found it. just finishing the description.
 
Anonymous
@LeviMorrison done.
 
Anonymous
It is a trivial example, but I used it anyway to get used to the system/process of contributing.
 
9:16 PM
@JoeWatkins Any reason why there are zend.assertions = 0/1 ? (-1 makes sense) … But why are there 0/1 when there already exists assert.active?
 
@samaYo You said 'we'
You need to remove personal pronouns.
> In this example, we can see the third optional parameter <parameter>&amp;$matches</parameter> will be passed as reference.
> In this example the third optional parameter <parameter>&amp;$matches</parameter> will be passed as reference.
I'd probably even trim it down to:
> The third parameter <parameter>&amp;$matches</parameter> will be passed as reference.
It's not the third optional parameter like you wrote anyway.
It's the third parameter; it's the first optional one.
 
Yeah… the optional third parameter would be okay too
 
Anonymous
yeah, I just realized that one.
 
but the third optional parameter is wrong
 
Anonymous
good one @bwoebi
 
Anonymous
9:20 PM
Also: No personal pronouns!!
 
can someone tell me why frameworks like Symfony and Laravel like using so much yml
is it cleaner looking than using PHP files with arrays?
 
@ziGi Beats me. I suppose YAML is essentially JSON with less punctuation.
 
yeah
but it's so much harder to refactor
I don't know
I find it challenging even when using PHPStorm
maybe I am not used to it
 
Solution: don't use these frameworks :)
 
haha I am not
I am just wondering why other people find it useful and why it has become so popular
 
9:28 PM
@LeviMorrison sf2 lets you use either yaml, xml or annotations
hehehe
 
yes
Florian
Symfony is french right?
 
does it matter ?
 
I am just wondering
 
@ziGi sf creator is french, yes
and sensio labs is a french company
 
cool
 
9:30 PM
my company has some kind of partnership with them
 
…what's that even mean?
 
haha I can imagine the devs of Symfony developing with a glass of wine and a baguette next to their PC :D
ahah
 
@LeviMorrison that we hang out with them
 
@ziGi laravel is using yaml because it has too much from symfony
 
yeah, they are trying to copy or smth
 
9:31 PM
no
it has nothing to do with copying
 
well you said it has too much from symfony
you mean like code base-wise
 
@Danack Was it you that wanted ; to separate enums?
 
@LeviMorrison nope.
 
Was it you, @DanLugg?
 
But maybe now I think do.
 
9:40 PM
I have to find a way to put it in some code
in JavaScript, 2 hours ago, by Florian Margaine
console.log('foo');
Uncaught SyntaxError: Unexpected token ILLEGAL
 
condolences on your birthday @SergeyTelshevsky
3
 
haha :D
 
9:58 PM
... I really need to congratulate @tereško on his birthday…
 
@LeviMorrison I dunno, but yes?
Example?
 
enum RenewalAction {
    Deny,
    Approve
}
enum RenewalAction {
    Deny;
    Approve;
}
 
Yea, the latter. I equate each enum value with an assignment of sorts; its own statement.
 
@LeviMorrison I hope we're allowed a trailing comma…
 
I hope its semicolons ^^
 
10:02 PM
@bwoebi At present; no. That's not difficult to do, though
 
@LeviMorrison yeah, it's not important for now, but it'd have to be noted in RFC ideally
 
@tereško when you have validation logic for an update, which requires you to make comparison between the input data and the persisted data, do you make a request to get the data and compare and then make a request to update after validation has passed
I've always wondered about such types of validation
 
@LeviMorrison it would be nice if it supports flags enumerations $allowedColors =Colors::Red | Colors::Green | Colors::Blueif it supports integer values this is possible
 
@CodingInsane That's not the use case for enums. That's the use case for class consts.
 
@bwoebi it's funny because if you make it readable, it still looks like a backdoor :>
 
10:14 PM
@marcio I have no idea, that code is too unreadable.
 
yea right :) also the usage of bit flags is actually uncommon in php
 
@CodingInsane no, it's not [uncommon]. It's just uncommon for the generic type of web application you have. Regardless of the language.
Point is … bitflags often are e.g. used in protocols… But protocols are not commonly implemented in PHP. [Though some insane people (like me) do…]
 
they could be used for making a nice set of options but php devs overuse arrays
 
10:35 PM
@LeviMorrison what are you going to use for the base type? string? integer?
 
@ziGi if you are using Postgre or Oracle, you can offload some of that validation to the RDBMS, but, yeah, in general I request the existing data and then use it to validate the update
 
@tereško do you populate some entities or do you use DTO's?
 
it also helps with situations when you want to have single query for both UPDATE and INSERT, because then you can not care about what exactly will be persisting
@ziGi I use entities directly in the data mappers
 
ok, cool
 
DTO seems too much of a boilerplate in my usecases
 
10:38 PM
do you use repositories btw?
because I see you always talking about data mappers
but how do you deal with Aggregates?
 
"manually"
my code usually has either entities or collections of entities
I have not had any cases where it would be valuable to use repositories or units of work
the domain structure in websites is rarely that complex
 
hm, well obviously you haven't seen the structure of the EPM I am working on :D
but I can imagine
 
define: EPM
 
Enterprice Resource Management system
 
there is always a change that you are over-complicating things
 
10:48 PM
true, it's possible
 
11:13 PM
I have been looping this song for close to an hour now: youtube.com/watch?v=Y89dLaUyc3w
.. just sharing my addiction
 
@tereško you addict you :D
 
@Ja͢ck There is no base type. They are classes.
There's not even an Enum superclass.
 
zie superclass, jaaa
 
Which, by the way, I just hit a situation where I'd not only want an enum but I'd also want algebraic data types.
:(
enum AuthenticationType {
        Remote,
        UserDb($hash),
        PendingRequest($hash)
}
The finiteness is important in this particular case :/
 

« first day (1647 days earlier)      last day (3298 days later) »