« first day (4180 days earlier)      last day (994 days later) » 

00:40
@ircmaxell thanks, will work on it next weeks then :-)
 
6 hours later…
06:21
posted on March 27, 2022

 
3 hours later…
Wes
Wes
08:53
> is considered non-pythonic
i keep reading this and it's starting to get annoying
Golang is worse, IMO.
Wes
Wes
09:38
caseif if condition else caseelse
gotta love python :D
the amount of libraries/packages python has tho
is ridiculous
that's its true strength
the language is meh
 
2 hours later…
11:13
@Derick It's a one line change, I'll create a PR.
 
1 hour later…
12:24
End of Chicago visit before moving, sad face.
Can we add constant π (PI) to PHP?
12:45
const PI = 4;
@Tiffany Awww, new life adventures ahead though!
Yeah, I know but M_PI is 4 characters and π is just one.
I know it's a stupid request because I can just define it at the top of the file
Wait, you want to actually define the unicode character?
13:20
Yeah
So my new role means I'm now managing a legacy codebase... PHP 5.4 based framework that has so much magic psalm doesn't know what to make of it... What's the current speedrun world record for 5.4 -> 8.0?
Is it OS?
FuelPHP - That's what it's based on, not the software itself
It says it is PHP 7 compatible github.com/fuel/fuel
So it should not be that difficult
Unless your project runs on an older version or contains addons that are not PHP 7 compatible
I guess I can't submit PRs so I can't really offer help
The framework is practically abandoned. I'm looking to clone it into the company codebase so we can start picking it apart and updating it, that seems like the optimal path but I've never upgraded something this old before.
 
2 hours later…
15:09
@Girgias Forgot to update the state in the RFC? wiki.php.net/rfc/null-false-standalone-types
Jealous, I wish I could score some of that sweet sweet unanimity.
15:30
@MarkR just do something uncontroversial, like renaming PHP to P++
@bwoebi I thought get_debug_type was fairly uncontroversial and still got 3 no votes, although I seem to think Sara was trolling and forgot.
@MarkR If it's unanimous your RFC is too boring :P
9
Hah, fair point.
 
1 hour later…
16:51
Fuel was strangely popular in Japan for a while. Due to the author's illness, no new releases have been made recently, however, there have still been commits to the develop branch even in this year.
PHP 8.1 is not yet supported, though. fuelphp.com/forums/discussion/15418/php-8-1
@bwoebi pushed a few commits :)
17:26
@ircmaxell nice :-)
17:37
@MarkR indeed
18:11
@sj-i I did read the main author had a stroke several years ago and that had hampered their ability, which really must suck for them.
Is anyone here familiar with Docker?

I've been trying to make an image file from my docker-compose.yml file; during the installation, it always get stucked at

`(1/19) Installing libstdc++ (10.3.1_git20211027-r0)`
or at the second stage which is:

(2/19) Installing binutils (2.37-r3)

I've tried to install it thoughts of times; sometimes it passed some more stages, but 99% of the times, it just get stucked in there
@X4748-IR Nobody can really answer this question without the concrete error message you're getting and/or the Dockerfile.
If I could get some kind of error, I surely would google about it, but that's exactly the problem

It just gets stuck, without returning any error messages or even any other messages; sometimes I waited for hours, but nothing happened /:
I've tried to use Docker multiple times for my Laravel project; it always somehow disappointed me ):
@X4748-IR Try building the container locally for faster feedback and to get the full output. Just place the Dockerfile in a directory and run docker build .
18:35
@Wes ...this is one reason I went back to PHP, gave me the feeling of "unwelcoming"
How can I look at security-related bugs on bugs.php.net? Do I need special privileges? If so, can somebody grant me those?
@IluTov If I could make an image, the other time that I try to make a new image, will the docker download and pull docker hub images again? or all the pulles will be cached?
@X4748-IR Building and image (docker build) and running a container from an image (docker run or docker compose up) are two different things. Build will create an image, and yes Docker has extensive caching for that. Running containers will never build anything, it'll just create instances from the built images. I'm not sure it that answers your question.
18:51
I thought when you run: "docker up" it will first try to make an image, and then run the container.
Good to know.
@X4748-IR Only when you configure a dockerfile in your docker-compose.yml file. That might be the case for you. Are you trying this locally? Do you have no useful output when running docker-compose up?
This is all I get:

docker-compose up

WARNING: The vhT81Mjj39 variable is not set. Defaulting to a blank string.
Building php
Step 1/4 : FROM php:fpm-alpine
---> 2331e1d9fbdf
Step 2/4 : RUN apk update && apk add build-base && apk add autoconf
---> Running in 0026ac0ce082
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz
v3.15.2-8-gcb4dbad273 [https://dl-cdn.alpinelinux.org/alpine/v3.15/main]
@X4748-IR I'd recommend starting with debian:10-slim as the base image rather than apline, as it's a bit less flaky, and the error messages aren't as hard to interpret.
@Tiffany This absolutely exists in the PHP community. See PSR-2 & 12.
Any if you get stuck, you should put the project on github, then people can try running it themselves.
19:23
Allegedly you should probably update chrome.
20:02
@Danack Ta. I wish there was a way to make chrome check for updates more often
You'll have access when that deploys
@NikiC Thank you!
@IluTov You might also want to be part of [email protected], but I have no idea how to get on there (I never was)
Maybe @cmb knows
20:18
I installed a VPN, and everything seems ok now lol @IluTov , @Danack
@Trowski but not as an adjective
we don't call stuff "that's bad cause it's not elephpantic" or something
Some images in the hub were blocked for my IP address.
20:39
@Trowski Perhaps. I don't follow those coding standards and nobody calls my code bad over it though
They call it bad for other reasons
@Tiffany I'm not really involved in the python community, so I can't speak to extent, but as an open source maintainer I can say there's strong pushback if you deviate from PSR-2 & 12.
Honestly, I think the one big, glaring thing that PHP has for it over Python is Composer/Packagist.
Package management on python is not... friendly
@CharlesSprayberry It's not so much that they call it bad as want to debate why you're using a different coding style.
@Trowski Yea, I can understand that being annoying as a maintainer
My real secret there is just never have users of my open source libraries
I don't have to deal with users complaining if I don't have any.
20:53
@Trowski "pythonic" isn't about things like whitespace (a lot of that's covered by "doesn't compile if indenting is wrong"); it's about "idioms", like "use list comprehensions whenever possible"
@IMSoP Ah, I see. In that respect I don't see much for that level of nit-picking in the PHP community.
21:53
@Trowski Is there? I've not really experienced this
22:10
I don't know why someone just doesn't come up for a standard for autoformatting standards and then every project just includes it (or a reference to it) in their composer or another file. ... or do they? seems too kinda obvious to not already be done
@MarkR I think the php-cs-fixer is already sort of common to be included in .php_cs.php files
I wanted so much to like cs-fixer, but I found that when you use inline HTML it just destroys any formatting on it
 
1 hour later…
23:17
@NikiC I know @ilutov
@IluTov I meant the replying to security@ emails (except for the last bunch of sweariness)

« first day (4180 days earlier)      last day (994 days later) »