« first day (2448 days earlier)      last day (2505 days later) » 

12:00 PM
@Shafizadeh and I'm pretty sure you've already mentioned it yourself
 
@PeeHaa yeah but so long he doesn't abuse the chat all in the same moment...
 
@bwoebi I did .. but I think @WesStark is a new member in here
I never seen him here already
 
@Shafizadeh nah, it's just @Wes …
 
OH ...!! I see
 
12:01 PM
Number of question marks or replies to the question marks ratio to normal convo must be 9:10
 
he just added a Stark to his name
 
@WesStark :D ..! got it ..!
 
Apr 21 at 5:26, by Wes
Morning (English perspective)
 
@WesStark :P
 
@WesNetmo we cant mock you. you got no class
 
lol that's an awesome burn :D
 
:B
 
Mono repository or multiple repositories in a microservices architecture
 
multiple
 
12:15 PM
Going to be a nightmare to manage though right
 
Microservices are totally separate
 
@EleventyJeeves But I have some noble traits, whereas you are a butler. In your interface, @EleventyJeeves !
 
@Jimbo Why? Maybe I am missing something
 
A feature PR could span multiple repositories
Keeping that streamlined with the devs and with QA is going to be a tonne of extra work
 
On the positive side the PRs are easy to review
 
12:19 PM
@WesStark very funny … season 4 :-P
 
And if something is wrong easy to debug
 
Sure, but barely anyone will have an end-to-end holistic view
Because they'll be silo'd into individual parts
 
@bwoebi i have still 19 days to link you everything about every season of GoT
:B
 
@Jimbo Which should be that case
It's called microservices for a reason
 
@PeeHaa Increasing the test coverage was a good idea (for dns) :P
 
12:20 PM
@kelunik It was? :P
Found stuff?
 
hmmmmmm
I might have actually been hit by that
BTW @Ekin is currently in the process of the v2 rewrite of gitamp fyi
 
@Jimbo what does have to do with the other?
 
i've understood something about testing. there is no only way. for instance state verification is good for regression testing/validating contract fulfillment but it is not very good when writing new code. behavior testing is instead much better when writing new code, especially if you don't care about tests reusability. even fuzz testing has some value. in all cases i could spot optimizations, design flaws, bugs
 
@Gordon Putting each microservice, as in a bounded context, in it's own repository. Or placing the ones that all talk to each other in one. It's a commonly discussed problem, I just read Google and FB actually put everything in one repository. Separating out as the micro service architecture suggests is a good way for SoC means versioning and PRs become a problem. Simple shitty article example
 
12:28 PM
@WesStark you sound like a first year psychology student trying to convince his friends there is "no such thing as true" ...
 
@JoeWatkins wat
 
@Jimbo IMO, the architecture is irrelevant
 
I'm being a twat ... but seriously, there is one way, and it encompasses all the different kinds of testing for all of the reasons you said, which become important at different stages of development ... but you don't choose one, nobody is doing that ...
 
everyone i know has a different opinion on the matter. i'm saying that there is no only way to rule them all, just different approaches that all have pros and cons
 
Anonymous
@JoeWatkins You!? Twat?! nooooo
 
12:31 PM
I don't know anyone that chooses one way ...
 
@Jimbo mono repos are nice if you do trunk based development. but mono repos might need additional external tooling to get stuff out and in. whether the code inside is one monolith app or several microservices doesnt matter.
 
@JoeWatkins you know good people, because all the internet is like "your way is wrong this is the only way" and they rage about it
 
their way is wrong, and I'm angry about it ...
 
@JoeWatkins Nah, you aren't a twat … maybe not worded in the most eloquent way, but you're right.
 
Shut up bob. he is a twat
 
Anonymous
12:33 PM
Bob, you don't need to lie to make him feel better
 
:P
 
Anonymous
> true love
 
don't listen to them bob ... you are obliged to lie ...
 
@JoeWatkins I'd be lying if I said now I had lied …
 
12:34 PM
:)
you're right, not very eloquent ...
 
@Jimbo and why would I make a bounded context into a repo? that feels like a very arbitrary choice to me. why cant you just use a subfolder or something in one repo?
 
Anonymous
 
@PeeHaa Cool, @Ekin how long do you need for that?
 
> Tests: 42, Assertions: 45, Errors: 6, Failures: 5.
^ that long :P
 
@JayIsTooCommon takes ages to load
 
Anonymous
12:42 PM
moan moan moan
 
wrong window I think @Jay ...
 
is someone trying the phpstorm's eaps?
 
Buggy as hell.
 
okay :B thanks
 
@WesStark I did that, not sure whether I still do, probably not.
 
Anonymous
12:44 PM
@JoeWatkins :P
 
@Ekin You use Artax, right?
 
@kelunik yes, should I be targeting master for aerys and artax?
 
@Ekin amp_v2 for aerys
 
@Ekin Yup. If everything is fine for you and Aaron is also fine (he wanted to review it yesterday night) then we can tag v3.0.0.
@bwoebi Nope, master as of today.
 
Woop. Almost time to head to Amsterdam for dpc
 
12:46 PM
@kelunik uh, oh. okay.
 
how do I get around an undefined symbol: zend_ce_error? I see that it was added in php7. how did that work in php5?
 
@Gordon … that symbol only exists since PHP 7 at all?!
… what are you trying to do?
 
@bwoebi I got php7 code that I want to make compatible with 5
 
@Gordon well, then you need to change it to zend_ce_exception…
 
@Gordon Replace it with an exception?
 
12:49 PM
replace what? :D
 
zend_ce_errorzend_ce_exception
 
I dont see zend_ce_error in the code though
 
Then try harder. ;-)
 
hmm, the entire project has one occurence of zend_ce_error and that is in an #if PHP_VERSION_ID >= 70000 block
 
1:01 PM
!!dad
 
Why did the can-crusher quit his job? Because it was soda-pressing
 
Anonymous
That doesn't even make sense
 
Anonymous
!!wotd
 
ophidian: a snake.
 
@Gordon are you actually recompiling it for 5.x?
 
1:06 PM
d'oh. I switched my binary from 7 to 5, but didnt reconfigure
 
:P
 
1:20 PM
I want to share my valuable knowledge with you guys ..! When you want to make a FK on a column, you have to make an index on it first. (this point took 5 hours, enjoy it)
 
so ... just be thankful you are not a spider ...
5 hours is a long time ... almost an entire day for some people ...
nearly quarter of a lifetime, if you are one of those spiders that lives for a day ...
 
Question, MVC is all about reusing code, so no issue calling another model's function inside a model right?
 
MVC is a context specific bastard pattern
 
cool. Just making sure I'm not doing some taboo
 
1:27 PM
Try to only understand MVC within the shit framework you are using (=
 
Also MVC is not about reusing code
MVC is about separation of concerns and communication between parts
 
@JoeWatkins :)
 
what hehaa said ...
 
@JoeWatkins I dont believe there is spiders that only live for a day… unless you count getting eaten by something
 
1:31 PM
yeah maybe not spiders, certain butterflies have no mouthparts though ...
mayflies can live for a few hours only apparently ...
 
MVC is a pattern for socially inept developers as a break-the-ice device on forced parties to engage them into discussions.
they cant do small talk but boy can they quibble
 
@PeeHaa Boo! The message exceeds the 140 character limit. :-(
 
poop
 
s/.*/The message is too intelligent for twitter/
 
1:33 PM
try again. i shortened it
 
MVC is a pattern for socially inept developers as a break-the-ice device on forced parties to engage them into discussions.
 
they cant do small talk but boy can they quibble
 
Jeeves should tweet that kind of message as an image, @WesStark can draw some templates with two cartoon programmer looking types with speech bubbles, and @DaveRandom or @PeeHaa can write the code to generate the image from the smart ass comment ...
this removes the limit on chars ... and will be cooler ...
 
1:36 PM
lol
 
Sounds like somebody has to try fitting text in bounds
 
drawing proper cartoon programmers will take his entire lifetime
 
@DaveRandom can do this one :P
 
the bubbles could also be generated
easier to fit text if you generate the bubble at the same time ...
 
@Gordon nah. i can do them sketchy looking
 
1:38 PM
they will be sketchy godknowswhat. just not developers
 
there's so much smart ass in here we could make daily comic thing ... might be cool ...
 
Oh ...! This room has its own domain name room11.org
 
Yes
Look at the chat guidelines link
 
yeah ..! I thought here is a ordinary room .. But seems I was wrong
 
1:45 PM
do we look like ordinary people to you?
 
:D ..! not really
just who pays the cost of that website?
 
I am not sure we pay sth for it, do we @DaveRandom?
 
\o
 
@Gordon I hardly think so, basically every website needs to register its domain name per year and buy a host per month.
 
1:50 PM
@Shafizadeh @Gordon For the domain, yes, for the website, no.
 
@kelunik "for the website, no" ..! Is it uploaded on a free server?
 
if we did a comic we'll need a jeeves that looks the same from every angle
 
@Shafizadeh GitHub Pages yes.
 
Ah .. I see
 
I think the domain is hosted with google so it should be 12 bucks a year
 
Anonymous
1:53 PM
@Gordon lol
 
can someone point me to an example for a php5 class in C?
ah the internalsbook should have one
yes
 
What does "Use common sense" mean? (as the second case of Chatroom Do's)
 
Anonymous
Common sense is a form of intelligence that isn't very common
 
Anonymous
It's mainly based around having good judgement and 'sense'.
 
hmm, interesting. not get it totally, but I earned an enough perception of it
 
2:02 PM
It means: do things like @Gordon would do them
 
Anonymous
@Shafizadeh i.e. someone without common sense would be an idiot.
 
@Gordon as a note, I guess you should use "does". " . . . like @Gordon would does them"
@JayIsTooCommon got it :-) .. thx
 
@kelunik am I right when I say BasicClient is now the default implementation in Artax?
 
@Shafizadeh would does is wrong. either would do or just does
 
2:05 PM
cc @bwoebi @Trowski
 
@PeeHaa Yes, as it was before.
 
huh?
 
@Gordon oh, I see
 
Before we had Client and HttpClient
 
@PeeHaa Yes, now it's BasicClient and Client.
 
2:06 PM
Any chance i can change your mind about the name? :P
 
Sure, if you have a good suggestion.
 
The previous naming was confusing, but BasicClient is also meh
 
Yes, but better than the previous naming.
 
I think I am agree
 
Anonymous
BasicClient => BaseClient
 
2:07 PM
Making mental note to think about it
@samayo That's actually better yea
Or DefaultClient
 
Both are not really better.
 
They are
 
> gitamp.ERROR: Call to webservice failed {"error":"[object] (Amp\\Artax\\DnsException(code: 0): Resolving the specified domain failed: 'api.github.com:443' ...
I get ^ that when replacing Client with BasicClient
 
Basic tells me "missing features", but I don't know what those features are
 
@Ekin Where's the previous exception?
 
2:09 PM
DefaultClient sounds better imo
 
Also headsup @kelunik @bwoebi @Trowski we are moving to v2 so expect waterfalls of issues and stupid questions :D
 
or ArtaxClient?
 
@Patrick They are all artax clients imo. Even different implementations I guess
 
I'd personally just kill the interface and make the class non-final, but @DaveRandom strongly objected.
 
he is right :D
 
2:10 PM
starts with that, then All query attempts failed at /home/ekinhb/PhpstormProjects/gitampLatest/vendor/amphp/dns/lib/BasicResolver.ph‌​p:132 ...
why does it use api.github.com:443 is what I wonder
 
hmm, why would a class implemented in 7 result in a segfault in zend_get_class_entry in 5?
 
@Ekin I wonder that, too, yes. Could you dump $e->getPrevious()->getReasons() for the All query attempts failed exception?
 
@JoeWatkins :D
 
@Ekin Don't worry about that. github.com/amphp/artax/commit/…
 
Alright
 
Anonymous
2:17 PM
@PeeHaa I like your DefaultClient better.
 
Anonymous
BasicClient sounds 1990-ish
 
@PeeHaa so what does the (default|basic|base)Client do? and how would other impls differ?
 
It's the default|basic|base) implementation shipped with the lib
 
then maybe LibClient or OwnClient? or NativeClient?
or ReferenceClient?
 
the class could be Client if the interface was ClientInterface hides
 
2:23 PM
@JoeWatkins
 
PackageClient
 
@pmmaga That would actually solve it all
 
Anonymous
that's awesome @WesStark
 
Anonymous
2:26 PM
@PeeHaa aw he did you
 
@Gordon didn't take me a lifetime.
 
:D
 
@pmmaga of they adopt Java conventions and call it ClientImpl
 
Anonymous
draw me like one of your french girls @WesStark
 
2:29 PM
now someone has to do the php part, probably @PeeHaa :B
 
@kelunik @PeeHaa I was wondering why the Client interface needs to exist?
 
25 mins ago, by kelunik
I'd personally just kill the interface and make the class non-final, but @DaveRandom strongly objected.
 
@kelunik heh, yeah, just got to reading that statement.
 
Saw a elephant the other day took a picture
user image
7
 
lol
 
2:37 PM
@PeeHaa gitamp? Jeeves?
 
gitamp
 
@kelunik Turns out there were tags from icicle on my local branch, so when I pushed tags it pushed those as well.
 
uhhhmmmm how am I suppose to mock Message::read()?
Why is that final?
 
so you cant mock it (=
 
I hate you so much right now :P
 
2:40 PM
=p
 
:D
 
@PeeHaa Mock the interface :-P
 
oooooh read is on an interface
tnx
buuuuuuut
getBody defines return of Message not InputStream
 
Mock an InputStream and pass it to the Message constructor.
@kelunik ^ That is a bit of a problem though.
Mocking shouldn't be that hard.
 
i made this for @tereško
 
2:45 PM
This new API is kinda hard to work with
Not only makes it testing hard, but it also adds another layer of having to yield stuff including the losing of proper return type definitions
 
imgur.com/a/XFYpb all the pics are here. there's also a smiling one
4
 
I mean I am still fixing a single test :P
 
@PeeHaa If the message methods weren't final then that wouldn't be a problem. I'm not sure why @kelunik did that to be honest.
If we're going to use it as a return-type, then it should be mockable.
 
@Trowski Now it's a stream that needs to yielded at the very least the last part is still the case
 
@PeeHaa Wasn't the body always a stream?
 
2:50 PM
@Gordon I pay for the domain reg because it's peanuts, @LeviMorrison paid for the lxr hosting VMs, Jeeves runs on @PeeHaa's VPS, nothing else costs any money afaik.
 
@Trowski 1 sec lemme give you a before and after
 
I'm going to go with... no
 
I'll add that the lxr VMs are very weak, unstable and therefore very inexpensive.
 
Anonymous
@DaveRandom it's secure?
 
Anonymous
@WesStark lol
 
2:53 PM
That extra "yield indirection" trickles down through our app
 
@PeeHaa Probably should be just yield $response->getBody()
 
huh
That just gives me a Message right instead of the body contents?
 
Yielding it will give you the contents.
 
ok will try
 
2:56 PM
sorry for giving you work to do. should be easy, right?
 
but even then. It still has the extra level of yielding
@WesStark What's that font?
 
i have no idea about twitter upload, but the text should be easy
 
@PeeHaa Looks like Artax was buffering for you before… which is not necessarily great, since then it forces buffering large bodies.
@PeeHaa So…
 
Giddyup Std
 
Anonymous
this is actually a good idea...
 
2:57 PM
It's async, you're yielding all over anyway.
 
@PeeHaa Can Twitter cope with svgs?
 
> having to yield stuff including the losing of proper return type definitions
 
@DaveRandom seems legit
 
@PeeHaa Well, yeah, it would be nice to be able to declare Promise<string>, but oh well.
 
@DaveRandom Dunno tbh
 
2:58 PM
@Oldskool It's from my good friend System. I've spent many a pleasant evening in the Administrato household.
 
Anonymous
@WesStark I think there's something in core for writing to images as well
 
gd, but ew
imagick should be better, danack's ext
 
Anonymous
And no, it shouldn't take over tweet. It should be a !!quote plugin, and quotes can be tweeted if we want.
 
Oh yeh it's pretty easy to dynamically add text to an image
 
kk I am utterly confused now :P
 
3:00 PM
do it! :B
 
Need a 5 mins break and redo whatever i was doing
 
@JayIsTooCommon do we need other expressions?
 
@WesStark open an !!issue
 
Anonymous
@WesStark Up to you, I guess we can have the expression as a param. !!quote happy link
 
@WesStark it should pick one at random and he needs an interlocutor for dialogues :D
 
3:02 PM
yeah !!quote random link
 
Anonymous
yeah.. but if we quote "Being gay is ok" and it picks the suicide one.. eh
 
lol
!!issue tweet text as comics imgur.com/a/XFYpb
 
@WesStark Issue created - github.com/Room-11/Jeeves/issues/223
 
@PeeHaa Issues?
 
3:03 PM
I have an amusing idea for an easter egg in that actually
 
@Trowski Mostly me getting confused by what you said about what to mock and what to yield in their and why. Gimme some minutes to try to figure it out and I will start shouting for help
 
@DaveRandom can you do it that makes the font's size bigger when there are just few words, and smaller when there are a lot of words?
 
Yes
 
like, easily?
 
You can just brute force that :)
Works for me in some projects
 
3:07 PM
ah, by attempts
 
yeap
 
@WesStark yes
It's a fucking massive pain in the arse, like everything to do with rendering graphics, but yes
 
maybe using a monospace font might simplify the thing
 
No don't worry about that too much
 
Exceptions thrown by set_error_handler can't always be caught – #74830
 
3:09 PM
You still need to do the same math anyway, the only difference is how you figure out the expected size of the string, which is minor between static sizes and dynamic measurement
Although GD does weirdly lie about it sometimes
and it doesn't dealias very well
 
you check the "bounding box" of the text and shrink/grow accordingly. basically like you would do with css
 
no sure if imagick is any better
 
we need to ask dan, which happens to be here :B \o
 
@WesStark yeh, this is precisely why I am not a good person to do it even though I likely will end up doing it
I do know how to do all this shit because I end up drawing PDFs all the bloody time and I hate it
 
while ( $text->size > "what I want" ) {
    shrink($text, "about the right amount");
}
 
3:12 PM
problem is wrapping text. like, you can have even one word per line
 
Anonymous
there's quite a lot to consider here
 
Anonymous
Mark up equivalence as well
 
there should be a minimum amount of characters per line, i'd say 15/20, and a minimum font size. start with the largest font size because bigger reads better. if text overflows the balloon, try a smaller font size
till it fits.
i imagine imagick and stuff do the text wrapping automatically, with center/justify too
 
Anonymous
And then what, work the other way for increasing the size?
 
so it's just about fitting a box into another
 
Anonymous
3:15 PM
Increase until it overflows, go to previous?
 
\o/
tnx @Trowski @kelunik
 
@PeeHaa It works I take it?
 
Yeap
 
Anonymous
@DaveRandom Should markdown interpretation be part of stackChat?
 
Anonymous
engrish.
 
3:19 PM
However when the first yield of the stream returns null I get "Error: Loop stopped without resolving the promise" not sure if that is going to be wrong somewhere
 
@JayIsTooCommon Separate lib, add as dependency
 
@JayIsTooCommon Hello Microsoft support
 
Anonymous
:B
 
Anonymous
@DaveRandom k
 
@PeeHaa Then I'm guessing you're not resolving another promise upstream when you get a null body.
Unless Message isn't being resolved…
 
Anonymous
3:22 PM
@DaveRandom I guess it shouldn't be coupled to SO, so construction params to define markdown?
 
It was a screw up from my side. I had a double ->at(0) instead of only return the null for ->at(1)
 
@JayIsTooCommon The rule is pretty simple...
Can this be decoupled and made re-usable?
          |                      |
         Yes                     No
          |                      |
  Separate lib added as     Why are you
   composer dependency      still here?
 
Anonymous
I'm reading that with a sassy tone therefore, shut up @DaveRandom
 
@WesStark I have some C# things that are less brute-force-ish, I will look at porting them when I get round to it
 
3:28 PM
maybe you can preview the size before rendering. basically what would happen with css if i removed the setInterval
render only happens unless not immediately canceled. or you can use a temp element too
 
@Trowski @kelunik Shouldn't this also check the scheme used github.com/amphp/artax/blob/master/lib/…?
To handle weird edge cases of http://foo.com:443 and https://foo.com:80
 
@PeeHaa Yes, it probably should.
 
3:46 PM
Evenings
 
3:57 PM
posted on June 29, 2017 by CommitStrip

 
user image
10
 
Anonymous
insta-star
 
just look at the current timeline. all tweets would be even more fun with that :B
 

« first day (2448 days earlier)      last day (2505 days later) »