ramsey, to php
@ramsey@phpc.social avatar

If you voted against the Interface Default Methods RFC for , please take a moment to read some of the most recent mailing list replies, starting with @Crell’s here: https://externals.io/message/120725#120798

I agree this feature goes against a lot of what I’ve learned as “best practices,” but I did a lot of introspection on this and decided that this feature is good for the future of the PHP language. It unlocks a lot of potential.

ramsey, to php
@ramsey@phpc.social avatar

Let’s get all controversial up in this

davidrevoy, to Blog
@davidrevoy@framapiaf.org avatar

I may have found an alternative solution to my blog's commenting system! 😺

The synchronization of comments from my Mastodon account. It's something I tried and abandoned, but I'm giving it another try after reading your comments. Well, I explain more on the blog and also share the source code:

Blog post, source code, and demo:
https://www.davidrevoy.com/article981/i-may-have-found-an-alternative-solution-to-my-blogs-comment-system

Bonus: Because I'm happy, here's a happy Mastodon mascot as a postman that I painted this morning.

Talix_Dreamer, to php French
@Talix_Dreamer@shelter.moe avatar

🇬🇧 I have tried PHP. I find this programming language more embedding in html. They completely get so much. I can code in live html. 🤯

Hence my question, why continue to code in JavaScript if php can do the same things?🔴😅⚠️

🇨🇵 J'ai essayé PHP. Je trouve ce langage de programmation plus incorporant dans le html. Ils se complètement tellement. Je peux coder dans le html en direct. 🤯

D'où ma question, pourquoi continuer à coder en JavaScript si php peut faire les même choses ?🔴😅⚠️

dantleech, to php
@dantleech@fosstodon.org avatar

have ported the best part of the Canvas widget from Ratatui to tui. It supports braille!

video/mp4

syntaxseed, to php
@syntaxseed@phpc.social avatar

Hey... question...

Say you have a function that has to return 1 of 3 states. Yes, no or N/A.

What's the recommended way to do this?

-Return an int flag?
-True/false/null?
-Return a value object?

Edent, to eink
@Edent@mastodon.social avatar

🆕 blog! “eInk Display for Octopus's Agile Energy Tariff”

I'm a little bit obsessed with building eInk displays. They're pretty cheap second hand. They're low energy, passive displays, with good-enough performance for occasional updates. Here's a new one which shows me what the current cost of my electricity is: Background After installing solar panels, a …

👀 Read more: https://shkspr.mobi/blog/2023/12/eink-display-for-octopuss-agile-energy-tariff/

grmpyprogrammer, to php
@grmpyprogrammer@phpc.social avatar

To the folks lurking out here — hit me up with your questions and struggles with getting some kind of automated testing working

codito, to php Polish
@codito@mas.to avatar

Had some problems with installation, it seems like SSL certificate expired (Monday, 11 September 2023 at 13:12:18).

🚨 @thephpf

image/png

fredbrooker, to php Czech
@fredbrooker@witter.cz avatar

if you want to learn PHP, the best way to do is 1) install phpstan and phpcs 2) analyze your code and bump the level up to 9

@phpstan @PHPCSFixer

Crell, to php
@Crell@phpc.social avatar

And of course, this site features a half dozen languages and their package system... But forgets about .

Even if you don't use PHP yourself, ignoring one of the largest and best designed package systems (/) is just dumb.

https://deps.dev/

ramsey, to php
@ramsey@phpc.social avatar

Most folks don’t seem to realize how gravely under-resourced and under-funded the project is.

For a technology that powers 77% of the web and has very little corporate backing, it's a wonder the project makes any headway at all.

At times, it almost feels like the industry is doing this on purpose to choke out the language.

jaapio, to php Dutch
@jaapio@phpc.social avatar

Scary thought... Did you know that a large number of infrastructure projects are maintained by 1 single person, some 2 or 3... But the original maintainer has been doing that for more than 20 years+ what would happen if they step down?!
They will retire at some point... Who will take over? Shouldn't we invest in the future and start education on how to maintain a opensource project with millions of users?

ramsey, to php
@ramsey@phpc.social avatar

When you receive my replies to the internals mailing list, do they look empty to you? I just noticed that my messages on both news.php.net and externals.io appear empty.

https://news-web.php.net/php.internals/122829

https://externals.io/message/122811#122829

Crell, to php
@Crell@phpc.social avatar

Looking for feedback.

I have a lib build for PHP 7 that has 3 methods:

addFoo($id, $priority)
addFooBefore($id, $before)
addFooAfter($id, $after)

($before/$after refer to some other $id.)

For PHP 8, I am strongly considering just assuming named args and changing it to:

addFoo($id, $priority, $before, $after);

Specify only one of priority/before/after, by name. Multiple is an error.

Is this a good idea/bad idea, and why?

ramsey, to php
@ramsey@phpc.social avatar

A friend was telling me about guidelines for developing and deploying new services in their company, and one of the guidelines is “new services must not use .”

I’m not making this up, and this isn’t hyperbole. They actually have this listed on their company documentation.

ocramius, to php
@ocramius@mastodon.social avatar

Looked again at a codebase written/maintained in PHP 5.5, where new code is designed and added on the existing app.

Made me realize that the only thing I miss from newer PHP versions is strict type checks, which came with PHP 7.0.

Everything else was provided by @psalm or @phpstan

From my PoV (person that reads internals, follows/votes on RFCs, etc.), there are almost zero feature additions that make newer PHP versions interesting.

Not justifying staying back: just noticed this.

SenseException, to php German
@SenseException@phpc.social avatar

talks 10 years ago: "Use value objects instead of arrays."

PHP talks nowadays: "Use value objects instead of arrays."

phpc, to php
@phpc@phpc.social avatar

Reply to this thread with the folks to follow on the Fediverse!

packagist, to php
@packagist@phpc.social avatar

👋 We're hiring a Senior Software Engineer in Berlin or remote! 💻 Build high-quality supply chain tools for thousands of devs in the PHP ecosystem 🐘 with the makers of Composer.

We're a small experienced remote team, deeply caring about our customers and the quality of our product. 🧑‍🤝‍🧑 Help us maintain and improve key infrastructure for hundreds of businesses! 🎉

https://packagist.com/about/careers/senior-software-engineer-1

rubenaarts, to php
@rubenaarts@mastodon.social avatar

Yesterday @jrf_nl gives a great talk about PHP_CodeSniffer ( @phpcs ) at

She told us the importance of funding opensource projects and there is is not enough spoken about this. It was a critical warning that there are just a few people in the community where the hole community is depending on.

So lets talk more about how to support these great opensource projects.

Girgias, to php
@Girgias@phpc.social avatar

I kinda need ideas for talks.

Do people want to know something particular about ?
Be that internals, documentation, whatever insanity or pet peeve that goes through my mind (although that feels more like a regular podcast segment).

I'm all ears! :)

Girgias, to php
@Girgias@phpc.social avatar

Night rant because I can't sleep.

But I frankly wonder why I bother trying to improve the semantics of when it seems people don't give a fuck and just want crap not actually implemented in any sensible way, just so they can feel like they are working with a "real" programming.

It honestly tilts me that people want to make the language more inconsistent and shit just for some minor DX that one could achieve by building tooling in PHP.

edgren, to php

The more I'm thinking about it, the more I consider it.

I want to add a map for my bicycle rides, but I can't find any good PHP maps. The PHP versions of Leaflet on GitHub are no good. They don't work at all. They just gives you errors like "can't load class" or something like that.

So even if I am against it only to challenge myself, I consider using Leaflet in JS for airikr.me/biking.

Or do you have any solution in PHP that works out of the box?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Leos
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • Youngstown
  • Durango
  • rosin
  • slotface
  • GTA5RPClips
  • InstantRegret
  • PowerRangers
  • kavyap
  • tsrsr
  • DreamBathrooms
  • cubers
  • khanakhh
  • hgfsjryuu7
  • everett
  • osvaldo12
  • cisconetworking
  • tacticalgear
  • modclub
  • mdbf
  • vwfavf
  • ethstaker
  • tester
  • normalnudes
  • anitta
  • All magazines