« first day (4110 days earlier)      last day (831 days later) » 

JRL
5:09 AM
I'll be unable to close the RFC voting at 00:15 UTC as planned, i'll be picking up my fiance then. will probably be closer to 01:15 UTC
 
 
1 hour later…
6:10 AM
I've just realized an interesting juxtaposition about listing times. I'm looking at the open hours of a restaurant, which lists, for Saturday, 10AM - 1AM. But it's past midnight, meaning it's technically Sunday, and so google highlights the hours for Sunday, which lists 10AM-12AM, meaning the restaurant would be closed.
It's a curious thing that retail relies upon that people should assume it's midnight plus one hour relative to the day the store had opened
 
 
2 hours later…
JRL
7:50 AM
every few months i remember that immortal technique is amazing
and then go re-listen his music
 
Wes
8:40 AM
@Danack it's ok danack if people manage to find it and buy it then it's great, i am never going to get rich with a t-shirt
 
Wes
8:50 AM
also i'd rather not be the one that whores around on twitter and other platforms trying to sell t-shirts
 
 
1 hour later…
10:13 AM
morning
Anyone knowing C# could explain to me what does the new() mean on this line github.com/snatch-dev/Chronicle/blob/master/src/Chronicle/…
Does that mean that TData parameter has to be of type any class and having parameterless constructor?
 
Thanks @IluTov I find it interesting - the constructor constraint thing, indicates that a parameter type can be constructed any time without use of any ctor arguments
Interesting is if an interface could include such constraint indicating that any interface implementation has to have parameterless ctor on it.
 
Wes
10:44 AM
nvm. sorry for double ping
 
no worries, I don't know if what I said makes even much sense.
 
in PHP of c#?
 
11:07 AM
no, now I know it makes sense only in generic parameter types
@MarkR I was wondering it ctor constraint makes sense in other cases than generic parameter, but I guess not
in PHP it'd be nice to have if we ever get generics
even Psalm I think wouldn't benefit on it with generics annotations
 
We already can define an interface that locks the constructor to any set of args (including 0) IIRC.
 
I see
in C# it's part of consumer contract, while using interface ctor it's forced on reverse side
Now I know the difference clearly, thanks
 
I can't think of a situation without generics that would benefit from it either. The only thing which did come to mind would be something like a "main" class if called an instance rather than a static main function, as bootstrapping wouldn't be able to create it otherwise.
I can't think of anything that does that though, entrypoints almost always being static
 
11:55 AM
@brzuchal sadly that feature doesn't allow for args in a ctor, like new(Foo, int)
 
 
2 hours later…
2:06 PM
i want to store actors, directors, etc... in one table, What it should be called? people? persons? cast?
 
crew?
 
from the wiki: "A film crew is a group of people, hired by a production company, for the purpose of producing a film or motion picture. The crew is distinguished from the cast"
 
if you need a very accurate name, either you 'll need to call you table e.g. "crewAndCast" or if they are different in terms of the model needs, separate tables
 
2:33 PM
yeah i go with cast_and_crew
 
2:56 PM
@bwoebi Can we merge github.com/amphp/amp/pull/382? I'd like to avoid WeakReference there, because the cancellation and deferredcancellation might go out of scope at the same point and I assume there's no defined order then?
 
3:19 PM
@kelunik yes, that's more something to consider / keep in mind if it gets a problem, it's an implementation detail which may be changed in any patch release
@kelunik the order is typically the one of creation…
 
3:49 PM
@bwoebi I think that feature is made exactly for this purpose to put a constraint on a ctor so the consumer class can always invoke new T(); - I know you can always create instance without args via reflection but that's not the same
I do see a benefit in this very limited scenario where generic parameter is any kind class with the only restriction that construction of valid object has to be made using parameterless ctor
 
4:20 PM
@brzuchal yes, but my point is why we can only put the parameter-less ctor constraint and not e.g. give it a constraint of a ctor with a specific signature
 
interesting... I guess parameterless could be a good starting point
which in next iteration could be reached with additional argument types and argument names - but that makes the constraint long in writing and am not solved cause it may introduce quite a lot of noise - we're talking about generic type constraint here
@bwoebi I guess a proper interface could be a thing then
ofc it'd require implementing it but
another option could be form of delegates - a virtual type implementing callable closure wich all the arguments constraints but not required to implement the type
it was about the argument constraints in callable
 
sta
4:47 PM
file_get_contents('php://input'); hey guys, do you have any alternative to this method?
 
Isn't there a constant equivalent to that stream? That's about the only thing I'd change if your goal is to get the whole input blob as a string.
 
5:07 PM
STDIN?
 
@sta why do you want an alternative?
 
does anyone know how/if the phpstorm plugin php inspections refactoring capabilities include some degree of customization over how it refactors? for instance when replacing $stuff = (isset($some_array['key']) ? $some_array['key'] : 'default');. is there a way it could replace that and remove the parenthesis when safe to do so?
I have little success so far searching the settings for "php inspection"
 
You might be better off looking at rector
 
Or a static analyzer
 
5:18 PM
Q for the room, does anyone have any experience with Secretlab chairs? I'm weighing up the Evo 2022 but I'm slightly over 100Kg, but the recommended size for the XL is right on the limit of my 6" height
Becuase, ye know, gaming chair makes code go faster, brrrrrmmm
 
(:
@MarkR alright, at face-value the github repo makes me think that I could use a custom rule to specifically refactor as I want to, is that what you had in mind?
@Tiffany do you have any in mind? also, sorry if I'm dense but, static analyzer sounds like it analyzes, but not necessarily refactors as well? do you have one in mind that would be better than static analysis of phpstorm and php ea?
 
You could, or maybe a default rule will take care of it for you.
 
@FélixAdriyelGagnon-Grenier employer uses psalm. Not static analyzer, but also use phpcs to make sure code adheres to PSR-12
 
@FélixAdriyelGagnon-Grenier A static analyser is anything which can understand what the code is trying to do, without having to execute it. Once it knows that it can do various things with it, for example check it for correctness, which is what psalm / phpstan does, or refactor it to update different feature sets, or unify its style / grammar, which is what Rector does.
In the example you give for example, it has to be able to look at the code and tell that the extra parentheses have no possible influence on the execution of the code, to know that it can remove them
 
cmb
5:40 PM
@MateKocsis, I've sent you an invite for web-php and related repos.
 
sta
@Danack Because most hosting provider disable the file_get_content() method.
 
the default ternary to coalesce rector rule seems to have the same behaviour as php ea rule of the same effect in regard to extra parenthesis
... bah it's fine, it's not like I look at all those parens all that much anyway
 
6:18 PM
@sta Wait, what? What worthless POS host is disabling file_get_contents?
 
hardest I've seen is disabling file_get_content for urls I think
 
cmb
right; they might have allow_url_fopen=Off
 
7:07 PM
@Tiffany Japan still has the smartest way of doing it I feel, by using 25h 26h 27h, etc, to imply 1/2/3 AM
 
7:26 PM
@Girgias how would it be listed?
Like "store opens at 10AM and remains open for 13 hours from this time"?
 
8:08 PM
On google maps? Or official website
Google maps (well for me because English) for a store it show 6PM-3AM
But on their website they do:
《日~木曜/祝日》
− 18:00~27:00(翌3:00)
《金,土曜日/祝前日》
− 18:00~29:00(翌5:00)
 
8:20 PM
Oh, is that notation not used in other countries?
BTW, currently I'm writing an article that's deadline is January 17, and according to my understanding, it's still 29:20 JST on January 16...
 
8:35 PM
@Girgias interesting
 
Not really no, but it is really practical I find lol
 
8:49 PM
... just when we thought timezones were enough of a problem as it were, let's now go crazy with our new best frinds: arbitrarily long days!
 
9:01 PM
 
9:31 PM
@Tiffany yeah. there are interesting things in there, but I have a hard time taking the whole thing seriously, as many of the "false" really presume some extraordinarily hard viewpoint whereas most folks with a grasp on reality are not saying "this is unarguably true"?
like, I think most people having had a class in which some teacher spoke of the day, of planets going around the sun, most of these folks will have heard that the day is in fact slightly less than 24 hours
 
time is a social construct ;)
 
not in the same way as, say, taxes are a social construct
 
yes, we measure time as the earth rotating, and looping around the sun, but how we measure time is a social construct
let me rephrase, time is a manmade construct
our interpretation of time is a manmade construct
 
sun goes up, sun goes down, that's a rule we can safely rely on, but determining how that rule is interpreted ... and now you're a datetime library maintainer :P
 
IGP
9:43 PM
The only thing about datetimes I care about is comparing them.
Also, server time should not care about whatever obtuse time-measuring ways are used in the client's neighborhood.
 
😂
 
fun fact @Tiffany, I've worked with climate scientists and they dataset were really based on 30 days months, year round. they just did not care it was glorious
 
@Tiffany in argentina they have 25 hour stores because of that
(ok i dont know if thats the reason, but i was laughing hard at the 25h stores)
 
10:13 PM
"It is normal that the Sept-, Oct-, Nov-, and Dec- months are numbered 9, 10, 11, and 12
False. This is very weird. They used to be months 7, 8, 9, and 10, but some reform to the Roman calendar back in the day resulted in the creation of January and February, which messed everything up." I never made this connection and now it bothers the hell out of me -.-
 
The names we give time are arbitrary constructs. Time itself is somewhat more fundamental.
 
11:19 PM
so I just received my new mouse, one of those ergonomic vertical ones ama
 
IGP
Does it fix the years upon years upon years of carpal tunnel abuse or is it more of a placebo effect?
Just kidding
 
I was trying to do pushups the other night and my wrists went "hahaha, no, maybe spend less time typing and using a mouse"
 
@FélixAdriyelGagnon-Grenier i heard mice spread desease, are you at all scared?
 
@IGP well, I also play the violin so it's quite probably too little too late, but is does feel marginally like there is less stress in my arm. it's totally possible that is 100% placebo and it'll take a few weeks to even be noticed by my body :)
 
IGP
vertical mouse got me thinking of youtube.com/watch?v=jAQSEO25fa4
 
11:23 PM
@MarkR oh man I feel that, so much
@beberlei I've got my mask on!
 
I watched a YouTube video which recommended these stretching exercises where you kneel down and place your hands out at various angles and rock your arms, it bloody hurts.
 
IGP
Perfect fix. Spend a whole year training voice assistant. Now you don't have to do anything wrist intensive. Then proceed to lose everything when you switch computers
 
perfect idea
@MarkR was that like, an actual serious stretching recommendation channel or something like "bdsm for beginners"?
 
IGP
@FélixAdriyelGagnon-Grenier sponsored by ortopedic hospital
 
youtu.be/MSXslgJV9g0?t=349 but who knows maybe he also moonlights as a pro-dom.
 
11:31 PM
:D
oh my god yeah just looking at it I can feel the pain
 
Just tried it again. Painful. Can confirm.
I used to go rock climbing, that was pretty tough on the wrists, although I think I sprained one when I fell over a couple of weeks back
I do think it actually helps though
 

« first day (4110 days earlier)      last day (831 days later) »