« first day (1826 days earlier)      last day (3129 days later) » 

12:01 AM
So in the example, will be Factory::getSendQueue()->send($myMessage); -- kinda feels a little singleton-ish, with the getSendQueue being a static method...
 
12:33 AM
Morning's
 
1:08 AM
Ohai!
 
1:24 AM
I've just finished reading through the PSR-7 specs and working out what a PSr-7 request/router/dispatcher would look like. Has anyone come across an implementation that is good.? I've found a couple via google but they seemed massively over-complicated
 
@Andrea I would prefer ?Type to be exactly Type | null.
But if union types fails then maybe we try ?Type anyway.
 
1:40 AM
@dops - I agree
 
2:16 AM
Posting an answer on a new question (obviously a duplicate) -- User in comments recommends I post the same answer on an older question (same question, which probably gets more views on a Google search). Is this frowned upon or should I do this?
 
Don't post the exact same answer to two questions. Vote (or flag) one question as a dup of the other and answer that other one if you've got something to add the existing answers don't cover.
 
Does anyone have any good advice on how to use ValueObjects to help with Form validation (so I don't have to repeat validation logic in things like EmailAddress VO or Phone VO, etc)?
 
Right on. So marking an older question as dupe to a new one is ok
 
If the new one is better-written and the old doesn't have strong answers going for it, absolutely.
 
@PaulCrovella do you have any good advice for me in this topic?
 
2:24 AM
@PaulCrovella - Right on, here is the (new) one in question for your reference (users comment under it) stackoverflow.com/questions/33160950/…
 
hang for a second on flagging one
 
@prograhammer - Is it too complicated in your form to just use html5 validation
@PaulCrovella - Nah I wasnt gonna flag one, but I know that user did
 
@Jesse I haven't even got to the point where I try to do client-side (HTML5/JS) validation yet. I still figuring out server-side. I like DDD and it's working well for my app. I just don't see why I can't push form values right into VOs. I've been reading and it seems some people think this is leaking Domain logic.
 
Like pushing the entire post based on the names in the form matching the database fields?
 
For example, I have addr1, addr2, city, state, zip on a form. I want to immediately put that into an Address VO and have the VO throw me back an error which I'll handle and return to the user immediately. That way I don't have to repeat all the address validation code I have in the VO (which seems to be the same leaking whether I copy the logic or use it directly).
 
2:30 AM
I would still recommend some standard html, like <input type='email'>
It does the validation for you friend :)
 
Yeah of course. That would be great for the client/user.
 
@Jesse ah, k. I was gonna look for a meta thread or two to give more general guidance (javascript ain't my thang, I'm not gonna weigh in on which question should be closed for the other). If you're interested anyway, give a poke around meta - there's plenty there on the topic of new vs. old dups
 
But what about server-side? I know the domain methods will have arguments that are VOs. Why not create VOs early? For example I could have a command accept VOs and give me errors early before that command is sent off to it's handler. Make sense?
 
Thanks @PaulCrovella
 
21
Q: Value Objects in CQRS - where to use

driushkinLet's say we have CQRS-inspired architecture, with components such as Commands, Domain Model, Domain Events, Read Model DTOs. Of course, we can use Value Objects in our Domain Model. My question is, should they also be used in: Commands Events DTOs I haven't seen any examples where Value Obje...

This is a question that I feel still didn't clarify for it up for me.
Where's @Abe when I need him on this question.
 
2:42 AM
lol inorite
 
@Abe if you ever read this...I'm curious if my commands should have setters with primitives or value objects. With VOs I can do some validation early (tell the form about it and prevent the command from executing) before the commands are executed/sent to their handlers (especially if commands are put into a queue).
 
starred bro
 
nice :-)
 
Its Rebecca day \o/
 
user4268046
Is there anything wrong with having a method end() in a object? (it get's italicized, and I'm don't want to override something)
 
3:00 AM
$this->is($the->end())->my('only', 'friend', $the->end())
 
user4268046
@PaulCrovella Lol, however it didn't answer my question x)
 
@AnmolRaghuvanshi - rebecca.blackfriday :D
 
not even gonna try to disguise it, just throwing it right out there huh
 
I think its clever
The domain name, not the song of course
 
3:14 AM
Yeah
 
Still the only .blackfriday domain I've seen used.
 
3:39 AM
good morning
 
Morning
 
Sup @Orangepill
Idk if 16 other people already said this but, congrats on the new job
 
:)
thanks
 
It's nice having a dev job huh?
 
yeah ... with other devs no less :)
 
3:44 AM
It sucks being a dev and working at burger king for example
 
Ohh ... I've been doing dev work for ages (20yrs) ... just been alone for most of it.
 
Ah right on.
Working with a team ain't so bad. It's fun to see my fellow programmer annoyed and annoy him more
 
I'm just going to enjoy having someone else around to be able to tell me if I'm being smart or just being "clever"
 
Wow. Someone with 100k reputation decided to go edit one of my answers and delete a 5 upvoted answer
Thats annoying
 
3:52 AM
link?
 
Can you see the deleted answers? lol
 
Hi everyone
I'm asking if there is a Delphi Category in Stackoverflow
 
Thanks
 
@PaulCrovella You see someone swooped in and deleted my answer I showed you
/me is disgruntled and going to sleep
 
3:57 AM
@Jesse That sucks dude. Very discouraging. I'm under 10k so can't see deleted stuff and all that. Was it a mod who deleted it?
 
Yea
I guess the 5 upvotes and comments of people saying that it was a great post doesnt mean it is
 
I thought it was a good answer to a bad question.... it should have been the question that got nuked.
 
definitely sounds like it
 
I guess i'll lose that 50 rep I gained from taking the time to be nice
@PaulCrovella - nevermind I got mixed up it was a different answer, but the same MOD edited that answer so I just deleted it
I wont make that mistake anymore
being nice that is
Yup just lose the 50 rep
what a waste of time
 
there's even a badge for stuff like this stackoverflow.com/help/badges/95/reversal
wth
 
4:02 AM
That's probably what triggered the mod to look at it... that ones only been awarded 225 times
mod probably didn't want that answer showing up as a viable way to earn that badge... providing link only answers to a question that is off topic.
 
if it was only at +5 it was still a ways off from the badge. can you screenshot the answer for me?
 
ehh... yeah, that's questionable :/
probably one of the better (effectively) link-only answers out there, but still more or less just links
 
yeah... I think it's a good answer to a bad question.. it's the question that should be deleted... with out this answer the question has absolutely no value.
 
His hosting company must charge by the line
@Machavity Work @coderabbi in there and you have a grovo recruiting poster. :P
 
4:49 AM
user image
2
 
 
1 hour later…
5:52 AM
morning
0
Q: Amazon aws s3 content header

Richerd fuldI am trying to create directory in amazon aws s3 for that I am trying following code ( I am using v3 php sdk) $bucketName = 'somebucketName'; $key = 'folderName'; $params = [ 'Bucket' => $bucketName, 'Key' => $key . '/' ]; $s3->putObject($params); $s3 is instance of $s3 = new Aws\S...

why its not working anymore?
 
moin
 
👋
 
moin Joe
 
6:17 AM
anyone have any idea?
 
Abe
6:37 AM
o/
 
1
A: Overloading in PHP to keep the signature of a class same

Joe WatkinsI think you're doing it wrong. The User class should have a single responsibility. Forcing the User class to also be responsible for interacting with the database seems to violate simple solid rules.

"I will look into writing good code, but I want my bad code to work first" ...
2
pffft ...
 
posted on October 16, 2015 by nlecointre

/* by Vooodoo */

 
Abe
@prograhammer only ask for things you directly need (law of demeter). in your case VOs
though, i'm not sure if that's what you asked. you should always work with the most qualified objects possible and construct such objects in the outer contexts
 
6:55 AM
@JoeWatkins valid :)
 
@Gordon not if the problem was created by the bad code you wrote ...
 
@JoeWatkins he might learn from it though
 
problem may be that some people are not aware of SOLID concept!
i came to know abt solid in this room never heard that before
 
cakephp ACL help needed!!
anyone please?
 
7:09 AM
:)
 
@AnmolRaghuvanshi I didn't know about SOLID for many years, yet I delivered software that is still in use today. I am not saying SOLID is overrated. It certainly helps to know sound engineering principles, but customers want working software first and foremost.
 
@Gordon i agree with this,something is similar what i am doing right now?
i have feeling that my code smells....
 
Abe
@Feeds that's... scary
 
7:25 AM
@AnmolRaghuvanshi cleaning up technical debt and paying attention to technical excellence is our duty as developers. but the ultimate goal is delivering working software. you gotta find the right balance.
#ipc speaker of the day: Gordon Oheim @go_oh. Check out his profile: http://bit.ly/1ZfHAtO #ipcspeaker http://t.co/IfWUjjddyu
look ma, I am famous … :D
5
 
Congo :D
 
nice
 
morning
 
happy friday morning
 
7:47 AM
OMromromognininin hai
 
Morning
 
@Gordon I was so sure this were a rebecca link :-P:-P
 
@bwoebi I tried that, but if you change something in an embedded content, it will remove the embedded content
 
back to 60's :)
 
8:04 AM
@Gordon conga rats
 
noice
 
@Abe other languages don't seem to like it
 
Good morning
 
@NikiC I think it's a good idea but I wouldn't do it in 7.1
For one thing I'd like it to affect built-in stuff and that requires adding some arginfo thing to tons of functions
the other problem is many people turn notices into exceptions
 
@Gordon Yay :D
 
Abe
@Orangepill this must be the best DDD/CQRS example i've found so far prezi.com/hi2dmhfej9zu/ddd-cqrs-sample made me realize i was doing commands weirdly
 
posted on October 16, 2015 by nlecointre

/* by d4b0urn4 */

 
8:40 AM
mornin
 
\o
 
8:53 AM
@Jimbo oh you and Andrea are friends ...! good for you
 
Abe
lol
 
@Abe :-) why you are laughing ?
 
lol
Happy Fry-day :)
 
@Jimbo nice
I need to collect all the photos of me at PHPNW15 there are
 
9:16 AM
\o - yay for sleeping over
 
damn, my brain feels like a mush
 
@tereško How come? Interview?
 
@salathe \o/
 
@Jimbo no .. I think it's because of the weather
 
the weather is rainy right now?
 
9:27 AM
not even that
it's just cold (+4°C) and there is this white overcast
 
Because it's getting lighter later, my sleep schedule has just gone out the window
 
@Jimbo just wait until the clocks go back :(
coming home from work in the dark :(
 
I have no problem with the dark. It's the snow and sleet.
 
"gone out the window" means "disordered" ?
 
"thrown out"
 
9:33 AM
 
for fuck sake, SJWs are invading SO
 
Yep
 
@tereško tnx
 
@tereško How do you resist the urge to flag it?
 
I see SJWs as a cult. It has all of the markers, including the "original sin" and the obsession with "one true way". You might find this video-essay interesting: youtube.com/watch?v=IaUhR-tRkHY
 
9:46 AM
@tereško do you like "cold" or "heat" ?
 
I like late springs and early autumns
 
yea, spring is good
but one question, how many season you have?
 
WOOOT, HAPPY FRIDAY to ya'll :)
 
@Sajad technically - 4.
 
ah ok
 
9:51 AM
I didn't know different countries had different Seasons, I though that was a "world thing"
 
some just have wet and dry
 
@Epodax if you are closer to equator (or really far) it easy to see having two seasons
 
@Epodax in theory, you should've learned this at school
 
from what I hear California doesn't have seasons .. it's just "hot and sunny"
 
we do, they're "on fire" and "not on fire"
 
9:53 AM
@FlorianMargaine Erh, my comment was meant to be caught with a hint of "joke"
 
c9s
Hi folks! I implemented an extension for PHP array operations: github.com/c9s/xarray
 
The missing PHP array functions...
 
c9s
I am thinking about adding more commonly used array functions
 
We are missing array functions?
 
c9s
10:06 AM
PeeHaa: some of them :p
 
:P
 
c9s
this helps you do some array operations more quickly ^^
hope it helps
 
Oct 13 at 7:50, by tereško
FULLTEXT index stores a list entries for each full word .. for example, if would have a list of all rows that contain "foobar", but it will be a different list of rows containing "bar"
@tereško so, how stackoverflow-chatroom-search works?
 
SO search traditionally sucks
 
@Sajad SO use elastic.co on top of MicrosoftSQL database
 
10:09 AM
but don't worry, SO has a front-end application for search which is called google
 
@tereško ah ok tnx
@AlmaDo uhum ...
@tereško two question: 1. MicrosoftSQL is different with MySQL? 2. "on top of" mean elastic.co is installed of MicrosoftSQL as a helper (or extension) ?
 
@c9s You're missing array_search_recursive ;)
 
frfrfrfr
 
Man, that meta question is bothering me more than it should.
 
Anonymous
Since when did programming books get so expensive. ebay.com/sch/… there is hardly anything for less than 60
 
c9s
10:26 AM
@Jimbo ha! glad to hear that
 
If you were to abstract out a set of buttons for "bold", "italics" and "underline" into a group or category, what would you call it?
 
c9s
array_search returns the index of the found element, how do we return the found element index in array_search_recursive?
@Jimbo Style
or "Font Style"
 
Hmm, that'll do
@c9s Multi-dimensional response? 0[1][3]
:D
There'd have to be a standard
 
c9s
well, have to think about it carefully :p
array( 0, 3 ) means $array[0][3] ?
and array(3, "name") means $array[3]["name"] ?
so it returns the keys for accessing the target value
 
@Sajad MS SQL is different from MySQL, but not in any way that would matter for your school project. As for ElasticSearch, it works in approximately the same way as SphinxSearch. They both are search engines that use an SQL database as data source.
 
10:32 AM
I see
so, when I wanted to develop my project, I will use Sphinx on top of MySQL
 
@c9s Need to put thought into how simple it would be for the user to use that knowledge to then get that value easily
I just tried to think of a way to do that, not sure...
 
however still I don't know "on top of" means attaching "Sphinx" to MySQL or means using Sphinx instead of MySQL ...
 
@PeeHaa these people, I suspect they are actually somewhat insane
 
Anonymous
@Sajad addition
 
ah ok tnx
 
10:36 AM
Aug 29 at 20:59, by tereško
though, @Sajad, I would recommend using Sphinx search engine.
^ that was almost 2 months ago
 
yes! and I have a yearning for it
 
@Sajad Can you sleep after using if statements yet?
 
:-)
 
Anonymous
I think he was against using uppercase IF()
 
Guys, who in here follows json-api, are there any other standards you like?
 
10:40 AM
@Jimbo :D
 
Anonymous
Is that rebecca? I'm not clicking it.
 
Nope, is honest
 
@samayo It actually isn't, I clicked before remembering it was Friday.
 
RECV%w-%w-%w$a%w-
RECV%w-%w-%w$b%w-
SPACESHIP%w$a%w$b%wT1%w-
RETURN%wT1%w-%w-%w-
RETURN%w-%w-%w-%w-
 
oh, today is friday
 
10:41 AM
hehe
 
I don't see any rebecca link?
 
Anonymous
@Epodax YAY. I'm gonna keep a cleansheet today.
 
@samayo I'll try to, but if I know myself, I will most likely end up falling for some devious trap.
 
Anonymous
@Epodax write a firefox/chrome plugin that hides all links in this room on Fridays :D
 
@samayo I think it was @DaveRandom who has all ready done that.
 
Anonymous
10:44 AM
@Epodax Nah, I think he wrote cloud to butt ext.
 
lol
 
@Andrea Nice try
 
@samayo DO NOT CLICK Andrea's link
 
@PeeHaa what about it?
 
10:46 AM
you all know the rules
 
No hugging till the first beer is gone?
 
Anonymous
@Epodax already fell for that domain name last week.
 
@Andrea I already fell for it when @salathe did last week
 
Ouch
 
@Andrea well I'm not falling for that one, the whole domain is redirected no matter what url :D
 
10:47 AM
@MarcelBurkhard no it's not:
legit URL
 
Anonymous
haha nice try
 
hey
shouid I troll my Twitter followers
 
evil ..
 
@Andrea I wonder what "FEMINIZER" is, though...
 
@MarcelBurkhard it's a bookmarklet that replaces all male pronouns and nouns with female ones
a silly thing a friend of mine made
 
10:50 AM
It prints pretty JSON with pink, purple and turquoise colours.
 
@DaveRandom did that with cloud and asshat or something
 
My Butt
 
:D
 
Anonymous
I read that as feminazi
 
10:50 AM
lol
 
Not seen Chris is a long time.
 
Don't even know why I bother with the JS room
 
Hope he's doing okay.
 
@Fabor Not even a reply on my text
 
@Fabor Yeah, reckon it's missus trouble?
in JavaScript - Scripting Javas, 6 mins ago, by Jimbo
Sup guys, are there any patterns or examples available that help organise many multiple event delegations in a project?
 
10:51 AM
Yeah I text him when I was at PHPNW.
 
@Fabor You got a reply?
 
@Jimbo jquery all the things
 
@Jimbo I wouldn't hazard a guess. Best not to assume these things and just hope he's good.
@PeeHaa Negative.
 
Strange
I'll try to call him later
 
:(
If not, we'll all go around to his house.
Anyone know where he lives? :D
 
10:53 AM
Yeah I know
 
heh, I would let him be personally. When he wants to come say hi I am sure he will.
 
If he's still alive. Maybe he became a Ruby developer
 
If you leave him a message @PeeHaa send him our regards.
 
@Jimbo Don't even joke about that! (becoming a Ruby developer)
 
@Fabor Will do
 
10:55 AM
@salathe Yeah my bad, it was extremely distasteful, I apologise :)
 
@Fabor You're not a lannister are you?
 
user5020521
hi guys if I count the deleted rows matter of fact what I'm actually counting is the id
 
user5020521
am I wrong?
 
@Andrea Do you know if anyone else took such awesome pictures, apart from the #phpnw15 hashtag?
 
10:59 AM
 
morning yo. I have a php page that defines something on line 2, on line 4 it requires() an additional php file. This file doesnt know about the defined variable from the calling file. Seems like a scope issue, how can i fix this issue? Long and short is file 2 needs to know about the defined values from file 1.
 
@Jimbo I've not been able to find that many pics
 
user5020521
$del = $dbh->prepare("DELETE FROM table WHERE id= '" . $myId . "'");
		$del->execute();
		$count = $del->rowCount();
		echo json_encode($count);
 
user5020521
here I'm actually counting an id at the very end
 

« first day (1826 days earlier)      last day (3129 days later) »