« first day (3464 days earlier)      last day (1709 days later) » 

00:01
Depends which subreddit
/php - i think I annoyed Paul
yay
I admit I wasn't actually sure who you were referring to with that.
really
Yeah... I assumed it was aimed at a particular person in mind. Based on the thread I thought it might be PMJ who was against it, but I wasn't sure
I'll need some context as to why, or story time next time we meet at a pub @Derick
00:17
PMJ (sounds like a sexually transmittable disease TBH) was the most vocal dweep when the word code of conduct got even mentioned.
Oooooohh. That makes more sense.
Huh, okay
He's an ultra hard code libertarian fuckwit that things that everything can only be resolved with (gun) violence. He can fuck right off.
Never contributed anything useful (still hasn't), and was up in arms when his "freedoms" were being restricted.
Danack is trying to suppress my freedom to use sarcasm. I feel oppressed :(
He's possibly right though.. sarcasm doesn't work well without body language.
00:20
@Derick (thinks)
"(thinks)" ? :-)
you said things :P
he's not American, is he? ...
I say many things. Some make sense.
Of course he's American.
He's an ultra hard code libertarian fuckwit that things that everything can only be resolved with (gun) violence. He can fuck right off.
oh
TYPO ALERT!!!
sorry, have had a tipple :-)
00:21
:P
Can't edit it to fix the typo again though.
I spent about an hour watching Catherine Tate sketches
I suspect Paul probably expected a lot more people to jump on his internals post and pull it into a fight so he could point to all the horrible internals people.
she's lovely
UK national treasure
@MarkR I don't think you're wrong.
@Danack I saw that earlier! I thought only cats were jerks
My cat has started walking backwards and forwards over my desk when I'm on video conferences... the way the camera is framed other people just see a tail sticking up in the air moving from side to side
If you want to watch some really funny British comedy → Friday Night Dinner. Tears (of laughter) guaranteed.
00:26
I'm quite the fan of Mitchell and Webb clips
@MarkR Jaws music
@Derick Okay that was pretty funny
I recognized two actors and had to look them up before I could finish it
@Tiffany have you ever indulged in the joy that is Yes (Prime) Minister?
a few videos
...I've watched Only Fools and Horses...
00:39
My favourite bit about Yes Prime Minister is how the PM ends up smarter than Humphrey
 
1 hour later…
01:57
@MarkR does your cat snore?
user11867329
Is there a way to let a .toggle be active?
on load?
e.g. already toggled?
Add the class in the HTML on page load?
Or have the class already there... but I dunno
Might end up with an ugly implementation (elements jumping about while the page loads...)
user11867329
It's already loaded (the class)
user11867329
but JS
user11867329
.toggle()
user11867329
02:04
This:

$( "#clickme1" ).click(function() {
$( ".elementor-element-762ca62e" ).toggle( function() {
});
});
user11867329
but already toggled instead of .click
$(document).ready()?
And that's jQuery, not JS
user11867329
I assumed jQuery was a JS module/environment
JS doesn't need a bloated framework
user11867329
Thanks!
user11867329
02:09
I already knew your opinion on it tho
user11867329
lemme go take a shit
👍
user11867329
in a bag because Amazon doesn't consider a pipe unclogger essential
user11867329
at least I got hydrocortisol acetate for the bleeding
user11867329
$(#clickme1).ready() {
$( ".elementor-element-762ca62e" ).toggle( function() {
});
});

Doesn't work :/
02:15
@OakDev that's either too much info or too much trolling.
user11867329
What's a parasite.
user11867329
But ye, nowork
user11867329
:(
user11867329
@Danack Oh! Oh! I thought of a good comeback.
user11867329
02:28
@OakDev because you've written to where it activates on the element, not the DOM loading...
Anyway, bedtime
user11867329
Who's the shaman.
user11867329
02:55
What I meant to say was
user11867329
Who's the shaman, Tiffany.
@Tiffany Was it on my last Days Gone (part 3) stream? I spoke low on that one because everyone was asleep. I need to turn it up though.
@Wes Subscribe please !!
Wes
Wes
done
@Tiffany That's because they are generic ones I found. I still have to make my own. The links are not even clickable yet. I'll fix soon.
Wes
Wes
how's the game compared to gta5, red dead?
03:00
@PeeHaa LOL! Yeah- I buy them when I can find them. I want a SNES one. I'll be wearing my PlayStation one tonight for the FF7 Remake stream!!
@Wes Days Gone? Oh it's awesome. I beat it last year- I'm just playing again for stream content because I like it so much.
user11867329
@Wes I love both, RDR is pretty amazing though
user11867329
If I had a choice I'd probably go with RD
Wes
Wes
it's PS only? boo
damn sony
user11867329
noo
user11867329
steam
03:04
It's PS only for a year
user11867329
sum lik
user11867329
but ye
user11867329
rdr2
user11867329
theshit
user11867329
use collector's map early on
user11867329
03:05
just farm them, buy the metal detector
user11867329
and then
user11867329
then sell dildos
user11867329
or go get free food
Wes
Wes
can't find it on steam?
user11867329
?
user11867329
03:12
Red Dead Redemption 2
user11867329
Not Evil is a search engine
Wes
Wes
i meant days gone
user11867329
ouch
user11867329
need cannabis
03:33
@PeeHaa You told me to let you know before I start stream for FF7 Remake tonight. About to start!
@Wes Yeah- PS4 exclusive.
=(
It's the reason I bought a PS4 last year... well that and because I knew I would be getting FF7.
04:05
@StatikStasis stream down :(
Wes
Wes
04:16
i tried to use obs lately... i can't get decent stream quality. dunno what's wrong
user11867329
05:03
@Wes what's your morning policy about spooning
user11867329
and what's allowed etc
user11867329
#goawayIneedtopayforthisbed
A very general question, Is it a good idea to allow user to upload configuration in Json format. I am asking this question because I don't think there are very well maintained Json schema libraries compared to XML.
Validate first, but double check before use
Double check ? I thought Json schema validation should be able to validate non-business validation (null, size, length etc )
05:19
It should be, I use justinrainbow's.
But treat every piece of data as a possible attack
So the only point of json schema is to help client know what goes where and to generate good error message if validation fails at schema level
Yes, it's the first step of validation for how the data should look, next up comes business logic and what the data should represent.
So JSON schema will help you ensure a key contains a string of length less than 50, it won't let you check that it's not entirely comprised of null characters
For that we can use pattern matching in Json Schema
But I got your point
If you're using the full suite, including the format and pattern checks, it should be comparable to the security offered by xml validation
05:51
Right, It would be hard to find a well maintained library that provide full suite
06:02
@Wes I use streamlabs OBS. I love it!
@PeeHaa Where you at? Had to start a Part 2 because the first one dropped for some unknown reason.
 
3 hours later…
08:51
o/
cmb
cmb
09:12
o/
09:30
\o
o/
09:47
not that shit again
10:02
.... so what'a a polite way of saying "are you fucking kidding me?" when a tester raises an issue because after clicking a hash-link (i.e. a button/link to scroll down the page to something else), clicking the back button in the browser takes you back a page, not back to the top of the screen.
I mean tagging it as "wont-fix" "not-a-bug" solves the immediate problem but it doesn't solve the sense of dread in my stomach.
@Stephen "working as intended, this is standard browser design and we avoid changing the behaviour of the user interface of the browser."
@Danack I think that still just solves the immediate problem, not the sense of dread.
Reply with that, walk to the window, and scream out of it? :-)
10:20
ZTS builds do not properly respect max_execution_time ・ *General Issues ・ #79464
@Stephen I would ask "why are you hitting me with those negative waves", but .......*gestures in general direction of the current world events*.
@Stephen You should look at it like this; you have a tester who is good at spotting small details, but isn't aware what is and what isn't expected behaviour. You can teach the latter, as it's knowledge that can written down. You can't teach 'attention to detail'. So the problem you have now is solvable, and much easier to solve than a tester who doesn't pick up on small details.
I've read some blogs about PHP 8 JIT and it made me wonder, is it possible to create a PHP 8 script that is still executable without having the original script files?
Reason for asking is that in the past, there have been PHP compilers around, even from Zend (Zend Guard), but none of them keep up with recent (PHP 7) syntax.
10:38
111
A: Is there a code obfuscator for PHP?

SchwernPeople will offer you obfuscators, but no amount of obfuscation can prevent someone from getting at your code. None. If your computer can run it, or in the case of movies and music if it can play it, the user can get at it. Even compiling it to machine code just makes the job a little more dif...

@Danack that's true. And to be honest its still better than the last time I worked this close with a full time 'tester'.. "we're currently testing the stuff and the things" is a literal sentence that came out his mouth, unironically, ala Homer. youtube.com/watch?v=qOXsi682OgA
I've written one of these in the past. It's a lot of effort to make these work reliably, and between multiple PHP versions.
Thanks @Danack, although I don't fully agree with the answer.. my goal is to make it so much harder to read and re-use the code in a development cycle that it will cost less time to rewrite the code.
I understand that it will be impossible to fully protect any code whatsoever
There are online decoders for all of the commercial products anyway.
A php-based commercial tool that I'm required to 'manage' for a client is distributed with some obfuscated files, using eval and base64 encoding/decoding.
10:44
PHP 8's JIT will not fix this either, but do think opcache can do this. However, the files it generates are often very much specific to an OS/libc/ version and the like
@Stephen Yes. My tester horror story is from when I was making video games for playstation and PC. We actually had a large test department who were 'testing' the game constantly. One day i walked through that department, and noticed the game was running very slowly on one persons machine. I commented on this, and the testers said in unison:
"Oh yeah, that happens. The game gets slower over time, you just have to restart it every hour or so." To which I replied, perhaps they might like to open a bug for that....
@Code4R7 then expect anyone who might have used (and presumably paid) for your product, and is likely to do so, to find another product or just stop paying you.
Basically I'm looking for a strategy to prevent a third party to just obtain and re-use PHP userland code, that this third party can't just get away with ignoring any legal agreement.
@Danack ... why do I get the feeling they're more interested in playing the game than testing it
10:47
The opcode part sounds interesting
Don't expect it to work 100% reliably
cmb
cmb
^ And don't be disappointed that it is slow.
I knew it was a long shot asking for JIT to solve this, but thanks for your answers!
@Code4R7 im sure that's what the guy who wrote the tool I endure thought too - but then he also responded to questions about pretty simple stuff like TLS connections to a DB server with "no we have no plans to support that", so I just broke his obfuscation and fixed it myself. I'd probably have offered him the help to add it for free (and some advice about using classes or functions to reduce code duplication) if he'd responded well. But he didn't. So fuck him, and his bullshit copy pasted shit
@Stephen ah............it doesn't work like that. Playing games as a full time job sounds like fun, but it's actually incredibly boring when it's the same game day after day after day....I think the problem was the other way round. Because playing the game was so boring, the "having to restart it" every so often was a nice break for them. So it didn't register as a bug.
10:50
@Danack a bunch of you tubers would disagree with you lol.
but then I don't really play games at all, so what do I know.
people probably think writing code all day is boring. jokes on them.
@Stephen they never had to play the games I made..................Excuse me while I take myself to a A+E department, I appear to have burnt myself.
only "game" I play is KSP!
I am facing issue to save special character in database.
I read the characters from file and try to save in database.
but it convert to some other symbols
the column type is latin1_swedish_ci but still it is not saving in right format.
$csv = $_FILES['csv_file']['tmp_name'];

$handle = fopen($csv,"r");
while (($row = fgetcsv($handle, 10000, ",")) != FALSE) //get row vales
{
$title = ($row[0]);
trying to save this `$title`
because you should never use anything else besides UTF-8
11:05
utf 8 datatype ? in database ?
I don't know how MySQL handles that, but a column_type of latin1_ surely can't store all special characters
It might be called utf8mb4
but, for your code to work, your original data also needs to be in UTF-8
@Code4R7 this is the one thats advertised in the php weekly email every week: sourceguardian.com
let me try utf-8 bin data type @Derick
11:10
@beberlei thanks, that one comes in handy, didn't know about it. btw, what php weekly email ? Could I subscribe as a regular userland developer?
@Code4R7 phpweekly.com
in place of special character it set ? in mysql.
@Derick it doesn't matter that you can get this decoded if you want. it introduces a hurdle that especially businesses won't step over if you sell to them
If you don't want your code to be copied and "fixed", run it as a SaaS platform
11:28
SaaS is not an option for me because the data and the program must be on-premise.
But this is interesting: "I cannot decode: - Files restricted (locked) to a predefined IP addresses, domain names or LAN hardware addresses (MAC),"
Also interesting; that person in Romania is asking a ridiculously low price for decoding files.. it's so low that it won't surprise me that once decoded, he or she will use it for other purposes as well.
11:43
@NomanJaved just use utf8mb4, set the charset of your db connection to utf-8, store your php files as utf-8 (without BOM) and use HTML5 which is by default UTF-8. See dev.mysql.com/doc/refman/8.0/en/charset-unicode-utf8mb4.html
and make sure you are aware of the encoding of that CSV, and transcode it when necessary using iconv, Intl...
Guyz, a friend wants me to make a webpage for a school, he priced it pretty low. I would like to ask how much money will my work be worth. He wants me to make something like this sgpilsen.cz. Thanks for feedback!
@BluePrint I don't know where you live, but in France 50€/hour is low balling it and most would go up to 100€/hour for a reasonable hourly wage
But I don't know the living costs of your contry
Or is this just a static website?
Cause then you could just do a global price as there aren't really moving parts
It is website with events of the school etc. You can check the link if you want. It will be managed by somebody in the school. Living here in capital is about 800$
Im learning web dev for 2 years in school. And i have done like 4 websites( one of them for a company)
That's still not helpful really, and I don't make websites tbf, like can it just be handled by a Wordpress?
I dont think he can estimate the price well, he told me it is work for a day for 100$ total. I dont know if im slow or something, but i would make it probably in a week
It can be handed by Wordpress but i have 0 experience with that. Should I just learn that?
...He even suggested it
11:57
Well, I'd say he's lowballing you there, always estimate to take longer than shorter. I mean if he knows Wordpress why doesn't he just install one and buy a theme
Like that makes way more sense
Yeah, he probably wants me to do the theme.
Hello sir, I am looking for some solution - where, I can choose from wordpress editor, which sidebar to display, I can not reach to any working solution
Im not sure how easy it is to work with that. He already created a website with Wordpress, so he might know the templates
Man, learning Wordpress just for a Job where he could pay somebody specialized seems just dumb
IMHO he just doesn't want to pay the price needed and he's trying to coerce you into doing a job for way less than what he would pay you
Or he just doesn't understand why it's expensive
Little bit of both, but he's still saying that it would be really easy in wordpress
12:02
Well if it is, then why doesn't he do it
Saying something doesn't make it real
Maybe he's busy. Or he doesnt think that It would look good
I suggested 1 week
And like, he asked me if i dont know somebody else xd
At the end of the day, it's your time. But I would just walk away
For the price i would go lowest per hour, I calculated it would need to be done in 13 hours, idk if I can make that that quick
@Girgias I think your advice you're giving is more suitable to someone who has more experience...
@Danack maybe, maybe not.
12:11
@BluePrint if you want to keep your friend, probably don't offer to perform a service for them, unless either i) you know pretty well how long it's going to take, and so can give a decent estimate ii) do it for a small fee that isn't a fair rate, as you will also gain from the experience.
More than likely one of you will end up extremely annoyed at the agreement...
Well, you can judge my skills from this page for example piedelclothing.ml, it is nothing extra.
The thing is, i dont know how to estimate my work so I am asking here
I would agree that I would gain some more experinece from that job
Anyways. Thanks for the support, I'll figure something out.
@BluePrint what you could do, is offer to give an hour of your time to help your friend figure out exactly what he wants built. That would make it easier for you to both make an estimate of time, and show the other person how much time it would take. And also, make it possible for your friend to give the task to someone else.
 
2 hours later…
14:17
@PeeHaa you missed out :P
@StatikStasis's stream last night
I watched as much as I could before I passed out
14:36
oh :( I thought it was tonight?
oh. Will have to watch it later
 
2 hours later…
16:15
@TravisHansen Nice to read. I tend to consider false then better. You can easily squelch it into a zero-length string by casting it.
david@‍grudl.com ・ Output Control ・ #79466
@Jeeves second time I've seen this guy put this email as the subject for the bug... does he know what the subject line should be a short summary of the bug...?
16:37
It's probably auto-complete by his browser
17:02
Ahhh, that makes more sense
I watched a few more YouTube videos of Friday Night Dinner last night... makes me wish it was available in the US. I saw there was going to be an American adaptation, but doubt it'll be as funny.
Oh wait, it IS available here but only up to season 4, I didn't look hard enough last night
17:20
Hmm, the idea is not that bad on first glance, to not fatal but have a recursion limit hit error.
I wonder what can possibly go wrong.
17:57
@Danack What about announcing the mixed type RFC on the list? People have plenty of time this weekend, I think...
@MátéKocsis did you have time for the INI setting implementation for float-locale independence?
18:13
petk is alive
@Girgias No, not yet, but it's also on my plate for the long weekend. :)
Who has a long weekend and why?
!!google coming holidays
[ Upcoming Holidays in next 30 days | Office Holidays] Upcoming public holidays in the next month. Date, Country, Type, Holiday, Calendar. Thu Apr 09, Bangladesh ...
[ 2020 - 2021 Major Holidays by month and Day. Daily Calendar By ...] Coming soon! Stay tuend for 2021 daily by month holidays. Holiday Insights, where every day of ...
[ [**2020 Federal Holiday Calendar | National Holidays | Federal Holidays**](https://www.redcort.com/us-federal-bank-holidays&sa=U&ved=2ahUKEwiQxqGovd7oAhWBKewKHYBkAfEQFjADegQICBAB&usg=AOvVaw2CQBt35KzLlF2JT9Z6QD4h)] Calendars of U.S. Federal holidays, national holidays, and bank holidays for this year and next year. Information to determine any federal holiday.

New Year's Day: January 1
Christmas Day: December 25
Martin Luther King, Jr. Day: January 21
Memorial Day: May 27
[ 2020 Holidays - 2020 Calendar] The most common (Federal) holidays of the United States (USA) in 2020 are listed below. Date. Holiday. Day. Days to go. January 1 2020 ...
[ 2019 Holidays - 2020 Calendar] The most common (Federal) holidays of the United States (USA) in 2019 are listed below. Date. Holiday. Day. Days to go. January 1 2019 ...
Hmm, isn't it Easter everywhere (I mean in Christian countries)?
@Jeeves Well... glad that mostly failed
@MátéKocsis No idea
Not in US :(
18:26
Friday and Monday this weekend are holidays in most european countries
That's racist
how?
@PeeHaa ouch :/ US people have to work a lot. I remember seeing a comparison about the number of paid holidays per country
Yeah US kinda sucks in that regards. Pretty sure I can take time of whenever though
Anybody experience with flutter and firebase ?
18:29
I link the comparison if anyone is interested :) en.wikipedia.org/wiki/List_of_minimum_annual_leave_by_country
Damn
ours is 20 days by default, and increases every 2-3 years (no matter if you change jobs)
but people in some other European countries are even more lucky :)
I think back in the Netherlands it's 24 days
18:57
hey @PeeHaa you may find this interesting in a academic/theoretical kind of way, I just came up with something that can be used like a shebang on windows, so you can put PHP code in a .bat file and execute it directly on the command line without the need for separate .bat/.php files
@(<nul set /p=#! & type ^"%~f0^") | php -- %* & goto :eof
it's not all that useful in practice probably, and it has some limitations, but it does sort of work
I am amazed, scared and laughing at the same time
(main limitations being that you can't use stdin or __FILE__/__DIR__ because it works by piping code to php.exe stdin)
inorite
basically it pipes the contents of itself to whatever php resolves to, with #! prepended to the first line to make PHP treat it like a shebang (roughly analogous to #!/usr/bin/env php)
like I say, not all that useful, but sort of interesting
Is this quarantine day 13 or 14?
:D
:-P
Got fed up with how hard it is to create commands in %PATH% out of PHP scripts on Windows. What I ended doing instead was this:
19:15
Due to COVID-19, a lot of summer internships have closed and I am actively looking for a PHP internship. If you guys know of someone offering internships remotely, please let me know. Thanks :)
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.phpx]
@="PHP.CLI"
"Content Type"="text/plain"

[HKEY_CLASSES_ROOT\PHP.CLI]
@="Executable PHP script"

[HKEY_CLASSES_ROOT\PHP.CLI\DefaultIcon]
@="\"D:\\PHP\\default\\php.exe\",0"

[HKEY_CLASSES_ROOT\PHP.CLI\Shell]

[HKEY_CLASSES_ROOT\PHP.CLI\Shell\open]

[HKEY_CLASSES_ROOT\PHP.CLI\Shell\open\command]
@="\"D:\\PHP\\default\\php.exe\" \"%L\" %*"
i.e. map the .phpx extension to be executed directly
(and added it to %PATHEXT%)
Just install wsl instead man :P
Sometimes I want to be in Windows mode though
Fair enough
@2dsharp Your country may be relevant, and if you have a link to github or whatever that might help as well :-) if you want to redraft a message I can unpin/repin. It's also good to try and keep it short enough to not be ellipsized - see your message in star list for approx ref on how long that is -->
(ofc if you cba doing anything that's also fine :-P)
Also I wouldn't be surprised if you don't find anything atm, the world is still readjusting to the new normal, my gut feeling based on no concrete evidence is that you might have more luck in a month or so - feel free to repost when the pin expires (pin lasts approx 2 weeks). Similarly if you do find something let us know so it can be unpinned :-)
19:31
@DaveRandom Thanks for the pin :), I would like to redraft it to show the most important parts before the ellipses:
@PeeHaa it should...
Due to COVID-19, many internships have closed and I'm actively looking for a remote PHP internship. (github.com/2dsharp), please ping if you know someone offering :)
2
@PeeHaa but depends on the company
It's not an official one at least
19:33
Was that my fault? :P
Not all companies follow government holidays, at least it isn't required, that I'm aware
I hope it I ruined your day
@MátéKocsis I'll finish tidying some words and commit them. Probably need to do two things before announcing i) check with the psalm and phpstan people and see if they have any questions. ii) I think I forgot to ask...you have an implementation for mixed?
Thanks! @DaveRandom :D
@Tiffany By the looks of it it's a state affair
19:34
you can shorten it by doing github instead of github.com/2dsharp @2dsharp
but it's probably fine like that :-)
Aargh, I forgot my formatting. But it works for now, I suppose.
@PeeHaa could be. My last job gave several official holidays off, but a couple were taken away so we could have a long break around Christmas and New Year's
I think this company does a mandatory minimum number days you have to take off and besides that you can do whatever you want
There are federal holidays, but like I said, I don't think they're mandated, it's up to the company. e.g. retail stores are open on most holidays, but it's required that employees are paid time and a half (but that part may be state law)
Conservative states may have revoked the "time and a half" bit, I dunno. I haven't lived in one :P
@PeeHaa that seems the most reasonable
@Unbreachable you're more likely to receive a response if you ask a specific question rather than asking if someone has experience in something. If someone is able to answer the question, they will.
19:53
I have a List of type Map, the name of the List is 'classes' and the indices are, well, ints. And this Map is dynamic, it contains two List and one String. What I am trying to do is figure out how to add to the end of the array that is inside of the Map. What I have tried to add to get into the list and write to it was by using dot notation: 'classes.index.questions'(the two lists are names questions and answers, the string is title)
Future updattingUserData(int index, List<dynamic> question, List<dynamic> answer, String title) async {
    return await _collref.document(uid).updateData({
      "classes.$index.questions":  FieldValue.arrayUnion(question),
      "classes.$index.answers":  FieldValue.arrayUnion(answer),
      //"classes.$index.title": title

   });
  }
That seems very much not php
Yes, that is why i asked before if anybody has experience with flutter and firebase, can't get much help anywhere else....Tiffany kindly told me to just post it.....
Have you ever used the dtrace hooks in the Zend Engine? If so ping me and let me know what for, and how recently.
The ISSUE I am having is that if the user creates, let's say, two maps in the 'classes' list, and they go ahead and want to update the questions and answers for index 0, once they do that, all the other index will get deleted, if the title gets left out, it too will be deleted, its as if its overwriting all the data, which doesn't add up because I am just update data instead of setting data, any insight would be appreciated
20:54
@Danack We have talked about the implementation ^^ This is it: github.com/php/php-src/pull/5313
apparently, people have mixed feelings about it... :D :D
Plus, some people (including Gabriel) want the "any" type name instead of "mixed". In my opinion it's not an option, but it might be worth to at least clarify why we chose mixed.
21:16
> In my opinion it's not an option
Why not?
Note I don't really care that much either way. Just wondering why that statement
21:33
@PeeHaa it's because everywhere starting from the official documentation to phpdoc type hints we have always used mixed. So that's why I said this. Even though I like "any" more, I think this ship has gone.
fwiw I do agree
But any also has some things going for it imo
So was just wondering where it came from :)
21:53
So, I've got this one composer dependency in which I need to patch a single line.
I could now fork the original repository (symfony/yaml), wire it up on packagist, provide a new tag with that single change in it, change the dependency in my projects composer.json but this appears rather cumbersome to me.
Is there something like the linux distros do, having their own downstream version where they extend the version with their own marker and do not disconnect that much from upstream?
22:12
@beberlei If you replace a function handler for an internal function, do you put the original back?
cmb
cmb
@MátéKocsis Interestingly, you're using the term "type hints" instead of "type declarations"; maybe "mixed" is somehow obsolete as well. :)
22:33
@cmb hmm, I don't exactly get the reasoning. Could you please elaborate? 😊 Btw generally, I use "type hint" for types in phpdoc and "type declaration" for proper types. Or this distinction doesn't make sense?
just forking now. let's see who is faster - packagist fetching the tags or me deleting them.
cmb
cmb
Well, "type declaration" might not be the proper term, but "type hint" is certainly not (see externals.io/message/109241#109579, penultimate paragraph). The docs often use "type hint", so their use of "mixed" might also be not quite right. :)
does php 8 has the mixed type-hint?
cmb
cmb
I think "any" would be more fitting, and at least it should be given a try.
@hakre not yet.
22:41
function php_gives_me(mixed $feelings): void { ... }
vs.
function php_gives_me(any $feelings): void { ... }
I'd say mixed wins.
@cmb other than it being 2 letters shorter, and being the same in JS, is there another reason to choose that?
More / better descriptive
cmb
cmb
function php_accepts(mixed $argument): void { ... }
vs.
function php_accepts(any $argument): void { ... }
but that's inverse
but but but - make that example with return type-hints to make it more shine :)
function do_that_thing() : any { ... }
vs.
function do_that_thing() : mixed { ... }
vs.
function do_that_thing() : i_m_feeling_lucky { ... }
@hakre Whe already have that feature. It's called not declaring strict_types :D
22:45
lol
function func(lax $parameter) : void {...}
heheheh
I like that one :D
actually it's like not having any type-hint.
maybe it is superfluous?
(like it, too, btw.)
poor packagist, still updating.
function everyday_further_from_the_light(var $parameter) : void {...}
function func(typed $parameter) : typed { ... }
it's just like mixed is so burned into the collective mind.
@cmb i get you know. 😃 Tbh. I also don't really care about the actual name in this case, but it would be a bit weird for me to break the status quo.
Yeah, I'm aware of the reasoning that was highlighted in Dan's message. But then "type hint" makes sense in the context of phpdoc, I think.
23:08
thankfully xargs has parallel mode and github accepts four congruent ssh connections ... never deleted so many remote tags in one day.

« first day (3464 days earlier)      last day (1709 days later) »