« first day (4204 days earlier)      last day (759 days later) » 

12:03 AM
@MarkR You around?
 
12:51 AM
@MarkR Apparently it might also qualify as CPS: en.m.wikipedia.org/wiki/Continuation-passing_style - Though I've rarely seen people refer to a single-layer callback like that as CPS.
 
 
2 hours later…
2:36 AM
In laravel doing this $request->ip(); during development will output only my local IP right and once published will output public IP?
 
 
4 hours later…
6:49 AM
@StatikStasis Am now
 
 
1 hour later…
8:01 AM
does anyone know what's the difference between comparison like $living_being === 'animal' v/s 'animal' === $living_being I saw the second one in WordPress and after a certain version they seem to have changed it everywhere in their code so does it have any meaning or its just their writing style
 
it's just their writing style - also called "Yoda clauses" because the order is now off. I'm not a fan of doing 'animal' === $living_being order.
 
@Derick thanks you for your response
 
 
3 hours later…
10:52 AM
@VardanaBhanot it's a trick to avoid accidentally writing an assignment like if ( $living_being = 'animal' ), because if ( 'animal' = $living_being ) is a syntax error
 
@IMSoP thank you, got it.
 
morning
I have a simple saga pattern implementation where each event instance should be handled once but due to some issues it happens that an event is coming twice from broker (it may also be an issue of duplicated webhook notification send twice)
My question is if there is a known pattern to prevent handling messages/events more than once?
What I have in my mind is an inbox pattern for messages preventing to store more than one unique event
But this is not how ususally inbox/outbox works, they don't store for long time and I don't know when the duplicate comes, could be minutes from each other
Any idea of known solutions/patterns?
I could also do it in my saga implementation leaving there an info that such event has already been handled but this would not be generic solution hard to maintain, errorprone
If I understand softwareengineering.stackexchange.com/a/338406/307707 correctly this should be inside business logic
 
11:36 AM
A nonce is the traditional way to go about it
 
@MarkR tell me about it, what should I google
 
12:12 PM
o/
 
Fun, I managed to send myself an email every minute since yesterday 5pm...
 
I hope they were friendly e-mails telling you to keep up the good work
 
Congrats!
 
12:28 PM
@IMSoP Nope, parse error in my date time string that controls when buffered tweets go out :-)
 
if only you knew someone who was an expert on date time functions ... šŸ˜
 
twas a typo
 
I know, just yanking your chain; hope your inbox is recoverable
 
1200 emails in an inbox of 74000 hardly matters
 
hah
 
1:06 PM
why some put {@inheritdoc} and not @inheritdoc in phpdoc ?
 
1:20 PM
@Mwthreex in the original phpDocumentor syntax, curly brackets are for "inline" tags, so {@inheritdoc} means "insert the inherited content here"
 
thanks
 
@brzuchal Tag each message with a unique ID at the sender (uuid or random string), keep track of the ones you've already processed for however long duplicates could arrive for, dismiss duplicates with an error.
If it's distributed, use a locking check somewhere to lock the processed cache
 
 
4 hours later…
5:39 PM
@MarkR just received my zoom h8 15 seconds ago
I am very excited
 
5:55 PM
Sweet!
 
yes! evidently I neglected to buy a sd card in prevision of the fact that it was very clearly indicated that it needed one, but y'know
I'm always impressed by how little principled I am towards using amazon services when I really need an sd card yesterday
every other day of the week I'm like "yeah amazon is so bad man"
 
6:22 PM
Sweet, now you need to add a bunch of right angled XLR connectors to it and pretend it's a giant spider
 
7:38 PM
@FĆ©lixAdriyelGagnon-Grenier can relate...
Doesn't help that my new apartment complex has an Amazon hub
 
 
4 hours later…
11:25 PM
btw. @ircmaxell I can only highly recommend to use array_push($array, ...$arrayToAppend) in favor of $array = array_merge($array, $arrayToAppend) ... it has an enormous impact in terms of performance (generating ~10k LOC lines took multiple seconds before, now its less than one)
2
 
@bwoebi nice tip :)
 
btw. I'm quite close to pushing the next batch of changes, it should enable struct handling in general
 

« first day (4204 days earlier)      last day (759 days later) »