« first day (2722 days earlier)      last day (2451 days later) » 
03:00 - 18:0018:00 - 00:00

18:00
@Thomas Hey there. You reading?
user9098366
I kind of drifted away from what I was doing
user9098366
I recommend healthy living, as this is what I've been doing and this is good
Nice! Good for you. Could you however stop posting all these oneboxes links?
anyone got any opinions on what to buy/not buy in terms of flash memory? specifically 64/128GB micro SD cards
user9098366
18:02
prntscr.com/iymio7 - they have jump ropes that weight like 3 kg
user9098366
ok, I will stop now
@FélixGagnon-Grenier Very sound advice and definitely my approach. This all started because my access control was not robust enough anymore to handle the different permissions staff in our company needed. On two resources I was having to do the terrible approach of hard coding to give someone access to something because they could now have more than 1 role. I had put off implementing RBAC for a while.
user9098366
you do sport, you eat good - you literally get stronger, you literally win out with other people in life
@FélixGagnon-Grenier So I began researching RBAC more and that led to something else and that led to something else and now I am changing my approach completely- after I get this completed I will have a lot of fun refactoring a lot of older code.
@FélixGagnon-Grenier I've also put off PDO for a while but I feel I need to make the switch. I always did prepared statements before, but PDO seems to be what is advised. There is so much I'm having...
@FélixGagnon-Grenier to learn right now from this. So many posts about the uselessness of Singletons and the preference of dependency injection- so I've learned a lot and feel like I could keep reading for months and never get anything changed. So I'm taking it one step at a time.
@FélixGagnon-Grenier I know there are a lot of libraries out there I could get and use but I really want to implement RBAC by myself for the learning experience of it and because it's extremely valuable to me to learn that way and understand the mechanics of it all.
Well, you have a perilous and exciting journey ahead of you, enjoy it ;) Remember to drink water and take pauses once in a while. It's pretty cliché, but stopping to think about a problem can help in resolving it when approaching it with a fresh mind.
18:10
Agreed
ABAC FTW.
Concerning ABAC "Although the concept itself existed for many years, ABAC is considered[3] "next generation" authorization model..." Source: en.wikipedia.org/wiki/Attribute-based_access_control
So..... I need to evaluate this instead of RBAC possibly?
I mean, it really depends on the application.
RBAC for course and ABAC for fine control.
You can do a mix too where you assign a role to a certain set of attributes.
It's very simple, but one where the need for multiple roles has become a need finally. Any article you would like to reference for implementing this? I could Google but curious if you have something in mind.
Very simple- meaning my site is very simple. Nothing very complex.
It's really not that complicated. Just Google it.
18:16
k- thanks.
I think it's probably a good idea to just do RBAC first.
But I like to win and you said ABAC FTW
Wow... I do like how granular it gets stackoverflow.com/questions/48117590/…
[Don't be STUPID](https://nikic.github.io/2011/12/27/Dont-be-STUPID-GRASP-SOLID.html).

> Premature Optimization
Don't know why the markdown didn't work, but you get what I mean.
markdown doesn't work in multiline messages
18:34
most markdown doesn't work in multiline messages
@Allenph I'm familiar with SOLID, I've actually got Clean Code sitting on my counter at home that I plan on diving into 1-2 books from now. I like the link- thanks!
you can still
do this
it's easier to remember that it just doesn't work, rather than which particular bits work
only block quotes and block (indented) code
Wes
Wes
18:52
why isn't nobody fixing the markdown? it's been broken for ages
google it
19:09
@Wes SE don't care about chat, they view it as a necessary evil
user image
3
The artist is an acquaintance of yours @DaveRandom?
:-P
I skipped steps 1 and 2
my only dalliance with energy drinks is the vodka/red bull fish bowls they used to do in the bar we used to go to on monday nights before the ritz
£5 fish bowl with 10 shots vodka and 3 cans red bull
those things were evil
19:38
Morning
Wes
Wes
hey rocket man
Wes
Wes
by the way, do you think rocket man (the song) is about ganja :B i always thought it was
!!youtube rocket man
Search for "youtube tocket man -site:w3schools.com" (https://www.google.com/search?q=youtube+tocket+man+-site%3Aw3schools.com&lr=lang_en)
• Elton John - Rocket Man (Official Music Video) -… - No description available (https://www.youtube.com/watch?v=DtVBCG6ThDk)
• Elton John / Rocket Man / High Quality - YouTube - Elton John with his mid 70s classic Rocket Man. A song about a reluctant astronaut getting ready to… (https://www.youtube.com/watch?v=lywENW0ESUE)
• Elton John - Rocket Man - YouTube - Don't like this video? Sign in to make your opinion count. Sign in. 561. Loading… Loading… Loadi
(see full text)
Search for "youtube rocket man -site:w3schools.com" (https://www.google.com/search?q=youtube+rocket+man+-site%3Aw3schools.com&lr=lang_en)
• Elton John - Rocket Man (Official Music Video) -… - No description available (https://www.youtube.com/watch?v=DtVBCG6ThDk)
• Elton John / Rocket Man / High Quality - YouTube - Elton John with his mid 70s classic Rocket Man. A song about a reluctant astronaut getting ready to… (https://www.youtube.com/watch?v=lywENW0ESUE)
• Elton John - Rocket Man - YouTube - Don't like this video? Sign in to make your opinion count. Sign in. 561. Loading… Loading… Loadi
(see full text)
Wes
Wes
19:40
how can you not know that song :B
I'm a savage. You should know me by now :P
Wes
Wes
now that i told you that you will pay more attention to the lyrics
the rocket = is clearly a joint
Not his penis?
lol
Wes
Wes
but i read somewhere it's not that. also seems elton john never smoked ganja
nobody knows @Danack
19:42
@PeeHaa Chrome won't let me access your website: "NET::ERR_CERT_DATE_INVALID"
I need to fix me cert
Have been saying that for months now
But kinda busy with work and sleep :P
Understood.
Main reason I clicked on it is because I was curious where you are where it's morning now.
!!ugt
I'm Dutch fwiw
19:44
Gotcha
@Wes hahahahah aaaawesome
Wes
Wes
:P
@Wes Dude that song is about Elton John being in the closet.
@DaveRandom Jesus Dave. Step up your game and drink moonshine or Everclear.
Wes
Wes
high as a kite, rockets
Dude that song was released in 72.
Gay culture in the US was filled with drugs.
19:57
in 72 all culture in the US was filled with drugs
Wes
Wes
elton john is not american
in 72 all culture was filled with drugs
I mean, sure.
Wes
Wes
:B
But, you know what I mean. It continued until the 80s.
20:24
I am so happy, I think I just got a job!
Goodnight
I would never have been able to make it this far without all you guys :B
Wes
Wes
\o/ congrats
Thanks!
Congrats :D
DBUnit is such a pain.
20:51
@Wes When you have two mappers for different persistence sources and one source does not support a certain call then your mappers cannot share a common interface.

Do you write multiple repositories in this case? This seems like a legitimate case where you'd favor inheritance.
Wes
Wes
wat
get rid of the super techy talk and speak like you eat :P
what's the problem?
I'm not trying to be techy, just precise.
So, I have a SKU object. It needs two mappers. One for the API, and one for the MySQL cache.
The MySQL mapper has more methods on it. One of those methods might be "searchByProductCategory" or something.
The API does not support such an action. Usually I'd have both mappers share a common interface.
But in this case I can't, because they don't match up right.
Therefore, I need two repositories. One that supports the API and another that supports MySQL.
But I don't want to rewrite logic for the MySQL repository that I already have in the API repository.
So it seems fine to have the MySQL repository extend the API repository.
Make sense or need a code example?
Wes
Wes
mysqlrepo extends remoterepo?
$mysqlrepo instanceof remoterepo
does that sound right for you? :B that's not how types are supposed to be used
It doesn't sound right, but how would you handle it?
And I wouldn't name it remoteRepo I would name it after the interface.
Wes
Wes
why do you want to extend
21:00
Here...let me get you a Gist.
Wes
Wes
use words
why
I want to extend to avoid re-implementing a method that will be exactly the same. It will always be exactly the same because of the interface in fact.
Wes
Wes
keep abstractions and implementations separated
What abstraction and implementation am I not keeping separated?
Wes
Wes
public function Class1::methodA($a, $b){
    return common_implementation($this->x, $this->y, $a, $b);
}
public function Class2::methodA($a, $b){
    return common_implementation($this->x, $this->y, $a, $b);
}
if the method is 5 lines long then don't even do that
just repeat the code..
21:11
Where is common_implementation?
It's just a function floating around?
Wes
Wes
... yes
Hmm...
Wes
Wes
if code looks the same doesn't mean the abstraction is the same
I don't understand what you mean by that. When you're talking about the "abstraction" in this case you're meaning the repo right?
I ought to work on a C# program, but all I want to do is watch Stargate Atlantis. x_x
21:13
Because by nature this entire part will be exactly the same.
Wes
Wes
means that the interface is one thing, the implementation is another
Which is why you can even do that with the function in the first place.
Wes
Wes
the interface may change in future
I see what you mean now.
Wes
Wes
in other words the method that looks the same now inot necessarily will look the same in future
21:14
I don't know where I'm going to stick that random floating function though.
Wes
Wes
it's not important
make a static method, and mark it as @internal
A static method on what?
Is this somewhere I should use a trait?
Wes
Wes
on another "internal tools" class
you could use a trait yes
That seems really bad.
I think I'll go the trait route.
Wes
Wes
well, it's not that it is much different :D
it's basically the same thing
21:17
No, with a trait you can name it something specific.
With an "internal tools" class you've just got a bunch of random stuff piled onto a singleton.
@Danack ... panel three for me is that I was diagnosed with ADHD and started taking a drug that actually helped, but could be classified as something "harder," but worked so much better than coffee or energy drinks
user image
7
saved for posterity.
Wes
Wes
lol
i am not against traits
@Danack I mean, I don't really know what else to do.
What would you do?
Wes
Wes
but if you make a function you can just call it also from other locations
21:19
That function is going to need to be bound @Wes. It will interact with the internal cache of the repository.
Wes
Wes
@Allenph make a static method, or a function
I'd probably duplicate the code. Or make it a function.
Wes
Wes
i'm not telling you to use a function because autoloading
Which in itself is making an assumption about the place it's being used.
depending on whether the implementations are actually tied together, or just happen to be the same.
Wes
Wes
21:20
and as danack said, if the method is 10 lines long, just keep it duplicated
Yeah. Good point. I guess I'll just do that.
Wes
Wes
21:34
also @Allenph the advantages of keeping something standalone are huge
when i write code, i make a small package, just few classes, and i forget about it
i don't try to reuse bits from it
it's stuff on its own ant it can't be touched
Yeah, that makes sense in most situations I'm sure.
21:52
https://www.msn.com/en-us/news/us/us-visa-applicants-to-be-asked-for-social-media-history-state-department/ar-AAvhCuo

What the hell. Come on now.
22:24
in codeception, what is the difference between haveInRepository and persistEntity for the Doctrine2 module?
@Allenph they want to see if they tweeted at Trump... or some shit... I dunno
22:40
You seriously have to have a test class for every initial DB set up in DBUnit?
That's crazy. There must be another way.
23:00
evenin
so, what's up
Wes
Wes
got spdy protocol errors in google chrome and can't open anything
remember back in the day when stuff just worked
23:18
@Wes good chance it might work again very soon. I read recently google have detection for when they use some advanced network features and stuff starts breaking. Their servers stop accepting those requests or downgrade them to working protocols.
Wes
Wes
i want to disable it hard
i'm pretty sure it's just a clever way to steal my browsing data
03:00 - 18:0018:00 - 00:00

« first day (2722 days earlier)      last day (2451 days later) »