« first day (2711 days earlier)      last day (2234 days later) » 
01:00 - 16:0016:00 - 00:00

4:01 PM
@Jeeves putins_pen.gif
 
@Tiffany You can do that in almost all editors/IDEs
 
@IROEGBU :D didn't know that
I was trying to use find/replace at the beginning of the line and then add what I wanted to it
 
Sublime - Ctrl + click
Storm - Alt + click (I think)
 
@Wes is there some magic hidden css trick to have a left and bottom border with it being "curved"?
 
Wes
uh?
 
4:07 PM
As in I get a triangle right now
Where the two borders collide
 
For the first time PhpStorm did a self-update instead of making me download the whole thing! Progress!
 
@LeviMorrison Sorry to be the one to tell you this, but it depends on the release :)
 
@LeviMorrison you've been using EAPs ?
 
Wes
and how do you want it to look? @PeeHaa
 
This is the very first time it ever self-updated. In years of using it lol
 
4:09 PM
They normally seem to not self-update.
 
@Wes Nobody wants anything to look @PeeHaa
 
:(
 
\o/
@Wes Just a straight vertical line with a straight horizontal line underneath it
Now I think about it
 
border-radius: 0 ???
 
4:10 PM
That is never going to happen
 
Wes
@PeeHaa jsfiddle.net/dh34dx7n like this?
 
lol
You are a god
 
Wes
meh, you probably shouldn't do that :D
 
Too late :P
But why not?
 
Wes
it's a bit of a pain to manage
as in the padding must be inclusive of the border, etc
 
4:12 PM
 
Wes
it's not as straightforward as border:;
 
Doesn't box-siziing influence it?
In some good way
?
 
Wes
border:solid transparent;
border-width:0 0 10px 10px;
can do this and do box-shadow, i suppose
 
<3
Good enough
Yep \o/ Now we just wait for the barstool in the other room to fall over :P
 
Wes
lol
 
4:21 PM
To follow up on @LeviMorrison's happiness about the latest phpstorm update. They made JS support even worse now :(
 
Slower or, just broken?
 
broken
Cannot select es version anymore from the popup
Marks random code as wrong
 
Wes
all js code is wrong
 
:P
 
how many fucking places do I have to remove a target from Xcode before it finally realizes "oh... I shouldn't be trying to build from this..."
 
4:30 PM
Man, I feel like Guzzle is not very well documented.
 
@Tiffany How brave are you feeling?
 
@MadaraUchiha depends
I've probably reached a point where "there's no going back"
 
git reset --hard && git clean -dfx
Don't execute that yet
 
no... that's not it
 
That would destroy all uncommitted changes and remove any and all untracked files, so all the dists and builds and bins and all those other things that are in .gitignore.
 
4:33 PM
I have prepackaged code from a vendor to where our college can deploy mobile apps using their code, we just have to change the branding and stuff. I'm trying to remove a few of the extras that they've added from the project so I can just get the fucking iOS app deployed to Testflight.
Xcode keeps complaining about WatchKit Extension... I've deleted it in every fucking place I can find
and it still bitches about it
I guess it's time for another restart
 
!!rfcs
 
There are no RFCs in voting. Sorry, but we can't have nice things.
 
!!dad
 
What do prisoners use to call each other? Cell phones
 
Oh that's just disgraceful
 
4:56 PM
!!dad
so disgraceful, the bot was deactivated?
 
!!dad
 
Where does Fonzie like to go for lunch? Chick-Fil-Eyyyyyyyy
 
@sorak Seems to be working
 
I guess it just doesn't like me
!!dad
 
I don't trust stairs. They're always up to something.
 
Anonymous
5:10 PM
mornins
 
o/
 
\o
 
@JayIsTooCommon yo jameson
 
Anonymous
hoi der
 
good morning
 
Anonymous
5:15 PM
good day sire
 
Switch can include if()-statment instead of "case" or "default" – #76116
 
5:36 PM
Do you guys have your data mappers return false or throw an exception when you don't find anything?
@tereško I looked at palladium. Looks like you're not even handling that case?
 
I want to read a book about PHP Web Services and it covers topics like HTTP. But I'm not sure if I'm able to understand it. I haven't taken the Network course in the university yet(I may take it in the next semester). What would you suggest?
 
@Tiffany Is this another Aaron Smith clone? ^
 
Hi @ircmaxell, How are you? I recently Subscribed to your youtube channel, wanted to say you have great content and Thank you.
 
He has a YouTube channel? :D
 
5:46 PM
@mega6382 thanks!
 
Looks like some good stuff. That's quite a lot of interest in your DI video.
 
@ircmaxell np, I also wanted to ask that do you plan to upload anything new? Because your last video is about a year old.
 
I don't plan any videos or content. I want to do more, but it really depends on the inspiration (I am a very muse-driven author). I want to make many more videos, but haven't been inspired on what to do them about
 
hmmm, I hope someone from here can provide you with some inspiration.
 
Here's a book, but prerequisites are not specified:
:/
 
5:54 PM
@ircmaxell I wish I had seen your mediator video last week.
I had a need for one and ended up reading a bunch to figure it out just to write a class almost exactly like the one you had there.
 
@Allenph Do you think I'm a bot? O-o
 
@Simon.B http is only a reeeally tiny part of networking
Most people working with http as on the title of the book are clueless about the underlying technology
 
@Simon.B No. There's a guy that comes on here and says crazy shit and has a similar question history. He keeps making dupe accounts.
 
@Allenph You're saying my question was crazy shit? O-o
@PeeHaa So you mean I can get the book I've mentioned above, right?
 
No. He asks similar questions and he usually comes in here, asks a sane question like you did, then starts going nuts.
 
6:03 PM
@Simon.B yes most likely
 
@Allenph I have no idea why you're comparing me with someone else. My English is not good enough to understand your intention. But please know that I always try my best to not spam here.
@PeeHaa Thank you.
 
@Simon.B You're fine dude. It was my mistake.
 
@Allenph nope. Because "not finding anything" is a normal behavior. But I do throw from services.
 
@tereško No, what I mean is that it seems when you don't find anything it looks like you still return a blank instance.
 
yes
 
6:10 PM
Or try to. (I would expect the construction to fail, but.)
 
no, it would not fail
I do not use DDD
 
Not a false?
Yeah, yeah. I know you don't use DDD.
 
datamappers in my code do not return entities
 
Oh. Wow. You don't even use a constructor on your entities.
 
they just (somethimes, if I am not lazy) return boolean
 
6:12 PM
@Allenph wat
 
@FélixGagnon-Grenier custom constructor*
@tereško Oh. I see. You already have a blank and you use the mapper to populate it.
 
@Allenph I actually do. But they usually contain only optional assignment of ID and some primary attributes (like - title)
@Allenph that way I can use multiple mappers to populate different parts of entity or use different data sources
 
@tereško How is that so? I have an interface for all my data mappers that work with the same entity. They all return the same entity regardless of data source.
The different part of an entity thing makes sense though.
Ever had a use case for that?
@tereško Also just didn't see any in Palladium.
 
because that is a really simple structure :D
as a pull-out-of-my-ass example, you can have a user profile, that you usually need to partially initialize (to show the user-card and avatar), but in profile edit page you need to load also the extended details
that would be an example of having two mappers loading same entity
as another example (from actual code), I had to work with a remote API, which was terrible
it had option to retrieve user's "wallet", but to populate that wallet I had to make 2 separate requests to a slow API
so, I cached that information
in part in a runtime cache and other in mysql
 
I'm doing that same API scheme.
I think we talked about it already.
 
6:20 PM
so, when user opened his wallet, the service first tried to map it from runtime (and, when it failed - from remote) and then load additiona lata from mysql (and, if failed, load it from remote)
all four mappers used the same Wallet entity
basically (code comming):
$wallet = new Wallet($id)
if ($cache->fetch($wallet) === false) {
    $api_1->fetch($wallet);
    $cache->store($wallet);
}

if ($sql->fetch($wallet) === false) {
    $api_2->fetch($wallet);
    $sql->store($wallet);
}
the real code was a little bit more elaborate, since I had to deal with an eventuality of API going tits-up, but this was the main idea
 
That's kind of how mine works too. The difference is that there's a third mapper called "cacheMapper" or something similar that takes two arguments. The first argument is considered the cache and the second is considered the source.
So you define prioritization at construction.
 
well ... when I was working that project, DIC was not an option
I was working with service factory, that injected a mapper factory in a service as a dependency
doing fancy dependencies in a constructor slightly out of reach
 
Ahhhh. I see.
 
 
1 hour later…
7:35 PM
@Allenph fairly certain he isn't :P
 
Yeah. He wasn't. I feel bad now.
 
I had the same suspicion when I first met him, but learned that he wasn't
I am moderately disturbed with myself in that I've kind of become that guy's stalker in SO. At least in figuring out if an account is his.
 
@Tiffany Sign up to be a mod. You will be a certified stalker :)
 
too ... much .. effort
 
rofl. I'm not even close to being qualified
 
7:39 PM
Why not?
@MadaraUchiha is a mod
:P
 
I have a rep of around 350...
and I occasionally write lazy questions
...actually has only happened once...
 
I should write an answer this month
 
it will be like a blog post for you
 
Yeah @tereško. You need to take all of those answers you've given and put them on a blog.
 
meh
 
7:40 PM
I've been bookmarking your particularly good answers, but I would read the shit out of your blog.
 
I would need to actually update them
 
too much work :P
I find it particularly funny when someone tries to argue what MVC is with @tereško
 
/me is reading a trash Chinese novel and being lazy
 
I was reading JoJo's Bizarre Adventure manga during my lunch cause I didn't know what else to do
 
I am reading this thing: wuxiaworld.com/novel/against-the-gods
as in - actually reading, no pictures
 
7:43 PM
if you had any interest in romantic shows, I'd tell you to watch Goblin
 
the amount of tv shows, that I have downloaded, watched first 3 episodes and forgotten on my HDD, is uncomfortably large
 
The main male character was a general for a Korean army, and was betrayed by his king. "God" resurrected him as a "goblin" which is something different in Korean mythology, I guess. He becomes immortal and occasionally can perform miracles. After like 800 years, he's trying to die, but can only die if his "bride" pulls the sword out from his chest.
He ends up rooming with a grim reaper
 
@Wes You have a data structures library with immutable vectors somewhere, right?
 
@Tiffany sounds oddly similar to Re:Monster
at least the beginning
 
Yeah, kinda
Except he still looks the same pretty much... I mean it IS Korean drama...
 
8:05 PM
anyone here work with SSMS?
 
8:51 PM
@Koosh Did you really mean SQL Server Management Studio or do you mean phone texts (SMS)?
Should event handlers be public or private?
 
posted on March 19, 2018

New Cyanide and Happiness Comic

 
9:33 PM
yo
 
o/
How can you test that a mediator is hooked up properly without using the actual mediator implementation and dispatching an event?
@ircmaxell
 
10:28 PM
holy crap. i implemented something in php src and it works. dunno if it's right, but it works.
 
@PaulCrovella Congrats.
 
Anonymous
10:49 PM
who are you voting for in SE elections?
 
I need to test that a a dependency has a method called with a method (callback) as the second argument. This method is then stored by reference by a mediator and called when an event takes place.
Problem is the method that should be the argument does not exist at construction and therefore I can't grab it so my mock has something to test against.
Is this possible? Am I doing something wrong?
 
@LeviMorrison thanks
 
11:08 PM
@PaulCrovella have you checked none of your hard drives have been low level formatted?
 
@Danack no, but I am a little scared to reboot
 
In case the machine doesn't want to, and refuses?
 
11:29 PM
pretty much
 
01:00 - 16:0016:00 - 00:00

« first day (2711 days earlier)      last day (2234 days later) »