« first day (2581 days earlier)      last day (2360 days later) » 

9:01 PM
Not specifically Doctrine I guess.
Are those two mutually exclusive?
 
Well doctrine has specific ways to make relations as do other things
 
How would you do it?
 
You just want a one to n relation right?
 
Well potentially one to many
 
9:07 PM
So use Doctrine :P
I suppose it'd be a lot of code writing otherwise
 
Wes
does array_filter traverse the array using the the iteration order, right?
 
@Fabor It kinda depends on how you handle your entities now
 
fresh build
 
Wes
also til ARRAY_FILTER_USE_BOTH
 
@Fabor First decide how you are going to handle your database
 
9:14 PM
user image
2
 
Wes
i am trying to mess with unset but it seems the iteration order is always kept
too offensive.
i like it.
 
:D
 
3 messages moved to Trash
 
@PeeHaa How do you mean?
 
Wes
 
9:18 PM
I was waiting for th epunchline
 
Wes
:P
 
Surely the corn he paid with was contaminated? :P
 
@Fabor The answer to how do you handle entities will depend on what you are using to get the data if anything
 
Nothing is set here, just wondering what approaches people use. This is not a serious project, more just a learning experience. Hence taking recommendations/advice on approaches
 
I mostly just do it manually for my projects
 
Anonymous
9:22 PM
Calling for a new name for #dyslexia that shows it’s a pro not a con. Any ideas? https://virg.in/oRK
 
@JayIsTooCommon WTF?
 
So how do you link the entities? Have the mapper run join when grabbing all the info?
 
Anonymous
Here we fucking go.. dyslexia will soon be an offensive term
 
@Fabor It's just a join and a data formatter yeah
 
@JayIsTooCommon It's you people in the UK who are to blame.
 
Anonymous
9:23 PM
Meh, US is worse
 
Also...I just found a years worth of backup tarballs that were available on the open web in one of our applications. FFS.
 
I agree with the article btw @JayIsTooCommon
 
Yeah, people think retard is a bad word rather than a classification. Fuckers are ruining our language.
 
textually retarded would fit better
 
:X
 
9:24 PM
/me goes to read the article :P
 
Words only have the power we give them. You hear Canada green lit the F word on radio?
 
The fact that our governments regulate our content at all is a serious problem that no one seems to give a fuck about. (If it's okay for Canda, it's okay here.)
 
WAAAAAAAT
hahahahahahah
alternative thinker
omfg
I don;t feel bad abut me clasification enymore
 
Anonymous
@PeeHaa wa?
 
Wes
lol
so fuck is ok only for french canadians?
 
9:28 PM
Here's a novel idea, maybe stop thinking of dyslexia as a negative connotation? It worked for "Nerd" didn't it?
 
@Fabor i find it funny that you're saying semantics matter in #php
 
PHP would be a great example of why semantics matter :P
 
Anonymous
@Fabor shut up, nerd
2
 
i agree lol
 
@PeeHaa Data formatter?
@JayIsTooCommon Why thank you.
 
Anonymous
9:30 PM
#demo
 
Anonymous
Maybe it’s because of the ‘dis’ (dys) part? I don’t get these SJWs
 
Anonymous
Sexylexia
 
Anonymous
There you go
 
user8395424
hi
 
@Fabor Just a thing that takes the data and creates the entities from it
 
9:33 PM
Not to mention the bajillion high schoolers who claim they have dyslexia for attention and won't STFU about it.
@PeeHaa You mean like a factory? :p
 
@PeeHaa Mapper?
 
Zapp: "I have a very sexy learning disability, what do i call it kif?"
Kif: * sighs loudly * Sexlexia
 
user8395424
Hi everyone
 
@Fabor yes
And possible formatting of data where needed
 
Anonymous
11 was really shit today btw.
 
user8395424
9:34 PM
Hi @JayIsTooCommon
3
 
You also use domain objects? For the formatting of the data?
 
hahahah
 
user8395424
@Fabor Hi
 
@Fabor Often I do yes
 
Oh you do formatting in the mapper?
 
Anonymous
9:35 PM
Lordy
 
@JayIsTooCommon Aww. Are you saying you missed me?
 
Anonymous
@ShiylohFisher hello
 
Anonymous
@Allenph like a hole in the head
 
:P
 
Can we just agree it's friday yet please?
 
9:36 PM
<--- preparing teresko ping based on PeeHaa's answer
 
@JayIsTooCommon Good to know you keep Christ in your Hol-ee mind.
 
It is Friday for me @PeeHaa
!!friday
 
@Fabor Happy Prebeccaday!
 
NEGATIVE
 
for me too
shuddup @Jeeves
 
9:37 PM
@Ekin No you shuddup.
 
ha
Attaboy
 
geez, like father like son :P
 
@Jeeves Does @PeeHaa treat you well?
 
@Fabor Yep he does.
 
Anonymous
Ended up shouting at that senior in the middle of the office btw @PeeHaa. Expecting to grab my coat tomorrow :B
 
9:37 PM
@Jeeves lies
 
@Ekin The cake is a lie.
 
@JayIsTooCommon Why? About the same thing?
 
@Jeeves Is that the truth? You can tell me, this is a safe space.
 
@Fabor I don't love you.
 
@Jeeves but the cube is forever.
 
9:38 PM
@Ekin And what about the pyramid?
 
Also were you right? @JayIsTooCommon
 
Hmm, some sort-of loyalty algorithm must be built in.
 
Just common sense and such a smart elephpant
 
Anonymous
@PeeHaa Pretty much. Couldn’t explain himself and started getting personal instead. And yes, I’m always right. 21, been there for 6 months and I re-write a seniors (expert) spec
 
@Jeeves How much wood would a wood-chuck chuck if a wood-chuck could chuck wood?
 
9:39 PM
@Fabor That's a tongue twister, I asked for a joke.
 
Anonymous
and the office still hasn’t got hot water.
 
lol
brits without tea
instawar
 
@JayIsTooCommon No kettle?
 
Anonymous
Yeah there’s one. I don’t drink tea anyway
 
geez
 
user8395424
9:42 PM
@PeeHaa shut it
 
Sounds like fun indeed
 
Anonymous
Fun stuff. But at least I was right
 
@ShiylohFisher it? The movie? 1 or 2?
@JayIsTooCommon :P
 
Anonymous
Also, Amsterdam soon please.
 
user8395424
1
 
9:43 PM
Totally 1
@JayIsTooCommon Depending on what is soon I might be not in NL
 
user8395424
What type of name is PeeHa
 
Anonymous
Oh you suck, where are you going?
 
Turkey
 
Anonymous
The nice part or I’m going to kill you part?
 
Anonymous
@ShiylohFisher that is a stupid name. PeeHaa is a pretty cool name though.
 
9:45 PM
Kill me? With what army?
 
Anonymous
lol
 
Anonymous
Free holidays to turkey anyway \o/
 
@JayIsTooCommon I'm curious what you got into an argument about. I have the same problems with the single senior engineer here.
 
He's going to try the Kebab. That's the #1 priority.
 
oh right
 
9:46 PM
@Allenph He borrowed his Spice Girls CD and hasn't returned it yet.
Plus they both like baby spice and can't decide which of them can have her as an imaginary girlfriend.
 
Anonymous
I should stop talking about this publicly
 
Yes you should
That's why we made the discord.
Also removing doesn't remove from google.
 
Anonymous
Don’t lie, you wanted to hear my voice
 
Discord is text too -_-
 
Discord?
 
Anonymous
9:48 PM
I see your game
 
user8395424
@JayisTooCommon That is a stupid name "Shiyloh Fisher" is not.
 
Anonymous
Please go away
 
@ShiylohFisher Are you textually challenged?
 
Anonymous
@PeeHaa no, he’s an alternative thinker
 
:D
 
user8395424
9:50 PM
 
Anonymous
@PeeHaa when are you going Turk?
 
Don't tell him, he'll follow you.
 
Dunno exact date yet
Soon
 
/me shakes head
 
9:56 PM
Why? You are in amsterdam this weekend?
:P
 
user8395424
Who is the best PHP proggrammer here?
 
Anonymous
@ShiylohFisher @rlemon
 
Anonymous
Ping him all your questions
 
@Jeeves is not bad too though.
 
@Fabor Yes. So, when will you buy me a gown?
 
9:58 PM
probably @Jeeves, code is basically in his blood
 
@tereško What if he didn't break his teeth?
 
Anonymous
Geez, they’re bad responses for him
 
user8395424
@rlemon Hi
 
He drinks a little though. Hence the odd responses.
 
@ShiylohFisher PHP is Dead, use Java
that's my only advice.
 
Anonymous
9:59 PM
Golden
 
user8395424
Ok
 
user8395424
PHP is not dead it is alive
 
user8395424
Delete this room if it is dead....
 
after this invigorating exchange, I will just better go back to reading light novel
 
@JayIsTooCommon discord
 
Anonymous
10:08 PM
On mobile :/
 
Why?
 
Anonymous
Because I’m about to try and sleep. Up at 5
 
Why?
 
Anonymous
Working till 8 though so I’ll drop in after 6ish
 
Anonymous
@Fabor training
 
Anonymous
10:10 PM
Waking up at 5 to get my head kicked in, pretty much
 
Why?
 
var [$a, $b] = $array;
var {$property} = $object;
var int $x = $integer;
 
Anonymous
@Fabor So that I can impress all the boys with my bruises.
 
Hmm. Messing around with the syntax for pattern matching and destructuring is fun...
That last one looks like the variable should always be an int but that's not the intent. Rather it's that it is an int at this moment, just like a parameter type declaration.
 
Y'know what people define as fun sure does vary :)
 
10:13 PM
It's more fun than watching code compile.
The full LLVM toolchain takes forever to build.
 
Anonymous
Nn
 
@JayIsTooCommon o/
 
@LeviMorrison so, basically ES6 :D
how about $array->impode(':') instead :D
 
@tereško For objects, yes.
 
no, as: [2, 4]->impode(',')
or [1, 3, 4]->map(fn($n) => $n *2)
... should have added a trailing comma there, to have the optimal impact
 
10:24 PM
... I don't get what you are trying to say.
 
php has this small problem of the standard function library being a complete clusterfuck
especially when it comes to naming consistency and order of parameters
 
Yes. Not sure what that has to do with the destructuring or pattern matching?
 
Yet somehow nobody has made a composer package to replace te standard lib.
 
@NikiC I need to look at this again.
 
10:27 PM
hmm .. that's quite impressive
 
Being able to define extension methods on primitive types would be a great way to unify some of our core issues with arrays vs objects for things like map, filter, reduce, etc.
 
as I see, the destructing is just a syntax sugar
like getting rid of list() would be a reward enough, it's not all that beneficial
 
@tereško De-sugar this please:
var ConfigObject{$dsn, $username, $passwd} = $config;
 
not sure what it would do
 
Check that $config is an object of type ConfigObject and has properties dsn, username, and passwd, and then create local variables for each of them if successful and throw an error otherwise.
 
10:32 PM
@LeviMorrison $config = (object) $config;
anyway, nn
 
10:56 PM
@PeeHaa sup?
@PeeHaa "hot water" != something you would make tea with.
 
that's some engine version specific start of code there (in scalar_objects)
 
@sara Would you like to borrow a fuck? You seem to have run out of them.
 
Shit. Have I?
* Checks....
Damnit! Not a single one!
 
/nn
 
@Sara Hey, did you know a lot of people have been having trouble signing up for the PHP Internals mailing list for a while now?
 
11:05 PM
@LeviMorrison not sure if this is a joke or not
 
It's true but it is also a joke.
 
11:20 PM
@kelunik not sure. Will need to look for it when I get home...
 
11:37 PM
@wes I reread your RFC idea. Can you say whether this would be allowed:
class Book {
    public get private set Title $title;
    public function __construct(Title $title) {
        $this->title = $title;
    }
}

$book = new Book($someTitle);
$title = &$book->title;
 
user8395424
Hello
 
Wes
@Danack i am not sure about pass by ref, but i'd say no
 
And would accessing the property from outside of the class be the same internal code there is now, or would it be a type of language construct
 
Wes
unless it is of course public get public set
i mean
class Book {
public get private set Title $title;
}
$book = new Book($someTitle);
$title = &$book->title; // this is ok
$title = new Title(); // this is not
right?
you can have a "get variable reference" but you cannot assign to it, unless from a valid scope
makes sense?
@Danack i am not sure how it should be implemented at all
 
@Wes trying to enforce that is what made the other RFC fail.
Or trying to figure out what to do in general.
 
Wes
11:43 PM
@Danack well, it's not the same
if you have private set, then it should be private set. if you have that easily circumvented with references we might as well not have the feature at all
pass by ref is shit by design
 
user8395424
Stop cussint
 
Wes
dunno...
 
user8395424
cussing
 
@Danack Haven't seen @bwoebi in a while but he was working on typed references or something like that.
 
Wes
i am sorry for hurting your feelings
 
user8395424
11:46 PM
Be respectful toward everyone.
 
user8395424
Use common sense.
 
@ShiylohFisher stop trolling.
 
Wes
who is this clown
 
user8395424
The Beast
 
Wes
ignored
anyway @Danack, pass by ref is obviously what makes everything more complex than it should be... probably also the implementation
apart from that, is the rest clear? do you need something clarified?
 
11:54 PM
@Wes I think I get it, but you probably need to think through if directly accessing $book->title is allowed or not, as it's hard to understand all of the implications without that. And I don't get why you think the new reflection methods would be needed.
 
Wes
> directly accessing $book->title is allowed or not, as it's hard to understand all of the implications without that
hm?
 
I can't tell if accessing the property directly is allowed or not from the RFC, so I can't tell how the RFC would work in practice.
tbh, I don't really use inheritance of getters or setters......so it's also hard to see the problem the RFC is solving.
 
@Danack Presumably it goes through a setter..?
 
Wes
define accessing?
 
I don't really understand setters/getters. Just use methods ..?
 
11:59 PM
Later all.
 
$fn = .... // some function.
$fn($book->title);
Where $fn might or might not take the parameter by reference.
@Allenph nn.
 
Wes
you can set the property from world if it's public set
you can set the property from within the class hierarchy if it's protected set
you can set the property from within the class only itself if it's private set
 

« first day (2581 days earlier)      last day (2360 days later) »