Posts

This profile is from a federated server and may be incomplete. Browse more on the original instance.

ramsey, to random
@ramsey@phpc.social avatar

@osi I sent an email to the license-discuss list (I’m a member of the list), but I can’t tell whether the list actually got it. It doesn’t show up in the archives (nothing from May is in the archives, but maybe no mail has been sent this month?): https://lists.opensource.org/pipermail/license-discuss_lists.opensource.org/

Who should I contact to find out if the message was actually received? Maybe there’s moderation happening, and no one has approved it yet?

ramsey, to random
@ramsey@phpc.social avatar

It’s interesting to note that many of the AI suggestions for PHP code (in IDEs) use older syntax and practices, such as using a string for the fully-qualified class name, instead of ClassName::class, which is the modern and generally-accepted best practice today.

ramsey,
@ramsey@phpc.social avatar

So, if AI was trained on all the publicly-available code it found on GitHub and the rest of the web, and if MOST code is shit code, then does that mean AI is recommending the worst practices to new developers?

ramsey,
@ramsey@phpc.social avatar

This is a rhetorical question, meant as a thought exercise for the reader. I already know the answer.

ramsey, to Kubernetes
@ramsey@phpc.social avatar

Why isn’t --record=true the default behavior when applying changes to a deployment?

ramsey,
@ramsey@phpc.social avatar

@alessandrolai Like when creating a deployment. It tells it to record the command used to create the deployment. If you don’t use it, then it doesn’t record the command, so if you update your deployment and don’t tell it to record, then when you look at your history, you see each revision, but not the command that made the revision.

alessandrolai,
@alessandrolai@phpc.social avatar

@ramsey I always only did kubectl apply for changes, never delved deeper so I didn't know this option! I switched to Helm that handles revisions automatically for rollbacks too...

I was searching around to understand it and I stumbled on this, it seems they're deprecating it: https://stackoverflow.com/questions/73814500/record-has-been-deprecated-then-what-is-the-alternative

ramsey, to php
@ramsey@phpc.social avatar

“Supply chain” always sounds corporate and boring, but these are crucial conversations we need to have within the and wider communities. https://phpc.social/@alessandrolai/112451344359136433

ramsey, to php
@ramsey@phpc.social avatar

Brent Roose has another great write up about what’s new in #PHP 8.4. https://stitcher.io/blog/new-in-php-84

ramsey,
@ramsey@phpc.social avatar

@bobmagicii That’s chaotic evil!

bobmagicii,
@bobmagicii@phpc.social avatar

@ramsey excited about the html thing and implicit nullable though, i always thought that loop hole was weirdish as i stare at my method declarations being like "does this reallllllly make sense?"

ramsey, to random
@ramsey@phpc.social avatar

TIL a pint is 4 gill

ramsey,
@ramsey@phpc.social avatar

A gill is 1/32 US gallon

18+ listless,
@listless@social.cringecollective.io avatar

@ramsey Whereas in the American system, the answer to ‘How much energy does it take to boil a room-temperature gallon of water?’ is ‘Go fuck yourself,’ because you can’t directly relate any of those quantities."

--Josh Bazell, Wild Thing

ramsey, to Symfony
@ramsey@phpc.social avatar

Why does define what appears to be a “real” value for APP_SECRET in the .env file that’s committed to your repository, and then, right above it, there’s a comment that says (in all caps):

“DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.”

Where’s the documentation that explains what APP_SECRET is used for? Why doesn't it put this value in .env.local (ignored by .gitignore)?

Crell,
@Crell@phpc.social avatar

@ramsey I believe it's used for a security key, much like the Laravel equivalent.

Symfony does some very dumb things with env files.

pieceofthepie,
@pieceofthepie@n8e.dev avatar

@ramsey yeah, that is weirdly hard to track down :S

Symfony does have some oddities.

https://symfony.com/doc/current/reference/configuration/framework.html#secret

ramsey, (edited ) to random
@ramsey@phpc.social avatar

I managed to avoid for 10 years, but it’s finally caught up to me, so I hope I’m a Kubernetes god after going through all this required (by job) Kubernetes training.

When do I start honking like a duck goose?

josh,
@josh@joshbutts.social avatar

@ramsey step 1 of kubernetes is we call it k8s.

jamie,
@jamie@zomglol.wtf avatar

@ramsey @josh In case it helps, I provided an alternative a few years back

https://zomglol.wtf/@jamie/109288152821638814

ramsey, to random
@ramsey@phpc.social avatar

I was pretty down this weekend. I had no desire or motivation to do anything (much less than usual).

On Saturday, Jeff would’ve turned 36.

Maybe that subconsciously affected me. I don’t know, but I do still miss Jeff.

ramsey,
@ramsey@phpc.social avatar

@tress777 A friend who passed away 9 years ago, and it still affects me.

tress777,
@tress777@phpc.social avatar

@ramsey very sorry for your loss. Some ppl leave an indelible fingerprint on our lives and we are better for having known them.

ramsey, to php
@ramsey@phpc.social avatar

I’m really happy the Fediverse has so much community activity and content on it (and tech content, in general).

S15H,
@S15H@phpc.social avatar

@ramsey 100% agree. I'm also really enjoying that everyone is very friendly, respectful and nuanced instead of heavily polarised and hostile. It increases the value of the content consumed.

ramsey, to random
@ramsey@phpc.social avatar

With your help, we can put a stop to aurora crime! https://disabled.social/@bioluminescently/112424392722436863

ramsey, to random
@ramsey@phpc.social avatar

This page says the “WebLink component provides the following Twig functions.” https://symfony.com/doc/current/web_link.html

But I can’t find where these Twig functions are defined within the WebLink component source (or its dependencies). https://github.com/symfony/web-link

Are they actually defined somewhere else in Symfony and only active when the WebLink component is available?

ramsey,
@ramsey@phpc.social avatar

Found it! That is exactly what’s going on.

https://github.com/symfony/twig-bridge

ramsey, to php
@ramsey@phpc.social avatar

I was looking at this Sass (SCSS) compiler, written in , and I noticed something very odd.

Under “requires (dev)," it requires two packages, sass/sass-spec and thoughtbot/bourbon, both of which appear to be empty packages, containing only a composer.json file, which has no dependencies.

What’s the purpose of these packages? They otherwise appear suspicious, to me, but I can’t see that they're doing anything nefarious right now—they just appear pointless.

https://packagist.org/packages/scssphp/scssphp

asjmcguire,
@asjmcguire@mastodon.scot avatar

@ramsey well sass/sass-spec is supposed to a package that ensures that sass compiles properly. https://github.com/sass/sass-spec and the other one is sass related too https://github.com/thoughtbot/bourbon so neither should be empty.

naderman,
@naderman@phpc.social avatar

@ramsey @seldaek that's a bit of a shortcoming in packagist.org we should probably address. scssphp composer.json actually contains a custom package repository definition which defines thoughtbot/bourbon has something that doesn't exist on packagist.org and because it's only in require-dev which is only loaded from root composer.json, that means that custom definition will always be used, and never the package that's linked to on packagist.org.

ramsey, to random
@ramsey@phpc.social avatar

It’s official, now!

RFC 9562: Universally Unique IDentifiers (UUIDs) https://www.rfc-editor.org/rfc/rfc9562.html

ramsey,
@ramsey@phpc.social avatar

And, if you look very closely at acknowledgements, my name is listed. 🥰

ramsey,
@ramsey@phpc.social avatar

@shochdoerfer Kyzer, Brad, Paul, and others did all the work. My only contribution was basically suggesting to Brad, “You should put UUIDv6 through the IETF standards process.” What the group ended up producing was amazing.

ramsey, to php
@ramsey@phpc.social avatar

Is there anything like symfony/asset-mapper (and symfony/asset) that folks can recommend using with a non-Symfony app?

I can probably figure out how to use these by themselves, but I'd prefer a general, stand-alone library/tool, rather than attempting to shoehorn a package into a non-Symfony app.

That is, unless someone can point me to a tutorial that shows how someone else has already done this? 😁

ramsey,
@ramsey@phpc.social avatar

@wouterj That’s exactly why I want it. For the generating the import map, versioning the assets, and providing Twig functions to reference the assets.

ramsey,
@ramsey@phpc.social avatar

@wouterj Also, it seems to have some sort of Sass compilation built in, somewhere in the chain. Maybe that’s in a different Symfony component, though.

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