einenlum, to php
@einenlum@fosstodon.org avatar

question: when I comment code through gc in visual mode, vim comments it using multiline comments for every line. I would like to have single line comments instead (//).

This causes trouble for my colleagues on PHPStorm. Any idea how I can change this behavior?

Thanks! <3

What I would expect: a portion of code with every line commented with leading double slashes
What I get instead: a portion of code where every line is commented with multi line comments

dunglas, to javascript
@dunglas@mastodon.social avatar

Supply chain attacks are a plague in the ecosystem. is less affected, but we can do even better! I just proposed a patch to to detect when your dependencies introduce new dependencies from sources you don't trust.

We will use this feature to improve the security of @symfony and @ApiPlatform. It should also be possible to port this idea to @npmjs and other package managers 🤝

https://github.com/composer/composer/pull/11460

pierstoval, to php French
@pierstoval@mastodon.social avatar

Hey folks: is it possible to hook into the "include", "include_once", "require" and "require_once" calls, like with a C extension or something?

mediawiki, to php
@mediawiki@wikis.world avatar

How and why did Wikipedia became a multi-datacenter deployment?

This is an introduction post chronicling our seven-year journey, the MediaWiki infrastructure improvements made along the way, and the reasons/benefits for each change.

https://techblog.wikimedia.org/2023/05/08/around-the-world-how-wikipedia-became-a-multi-datacenter-deployment/

Edent, to php
@Edent@mastodon.social avatar

🆕 blog! “Symfony - multiple paths to the same route within a controller”

I couldn't work out how to use Route Aliasing within my controller. I couldn't find anything in the documentation about it. But, thanks to a StackOverflow comment it is possible. Suppose you want users to be able to access a page using /users/123 and /people/123 - with both routes …

👀 Read more: https://shkspr.mobi/blog/2023/05/symfony-multiple-paths-to-the-same-route-within-a-controller/

#HowTo #php #Symfony

thgs, to php
@thgs@phpc.social avatar

Woke up this morning and feel like..

Let's build a space rocket with

symfony, to Symfony
@symfony@mastodon.social avatar
valorin, to php

Security Tip: Replace simple dependencies with in-house versions!

The more dependencies your project has, the higher your risk of supply-chain attack is, and the less you're aware of what code is actually running…
https://larasec.substack.com/p/security-tip-replace-simple-dependencies

mjgardner, to javascript
@mjgardner@social.sdf.org avatar

2023 (its friends still call it ) will standardize allowing -style shebang lines to indicate a interpreter.

https://github.com/tc39/proposal-hashbang/blob/gh-pages/README.md#why-hashbang-instead-of-shebang

Of course, the JavaScript kiddies want to call them “hashbangs” because “hash is commonly associated with modern terms involving # such as .” No respect for tradition 🧓🏻

mjgardner,
@mjgardner@social.sdf.org avatar

This quote from @codepo8 in @marypcbuk‘s article is funny.

> While serverside is far from new, he said, “it feels to me like JavaScript has finally arrived as a serverside language with this, because when I think of or or all the other languages, you always have the hashbang.”

Yep, now that you’ve almost killed everything else, welcome to the big leagues of .

https://thenewstack.io/the-new-javascript-features-coming-in-ecmascript-2023/

einenlum, to python
@einenlum@fosstodon.org avatar

I'm so thrilled to announce the release of my book "From PHP to Python".

Two years of hard work, and the journey was totally worth it. I believe I managed to write the book I wish I had when I started learning .

If you are a curious developer, you might be interested. It's a great shortcut to quickly master a second language.

Boosts and Feedback welcome! Thank you all ❤️

https://fromphptopython.com/

derickr, to php
@derickr@phpc.social avatar

ICYMI: 📰 New blog post: "Xdebug at 21": https://derickrethans.nl/xdebug-21.html

marcuskober, to php

Now let's get our hands dirty with autoloading and check out some coding standards in plugin development.

https://marcuskober.com/autoloading-coding-standards-and-file-structure-in-wordpress-plugin-development/

ramsey, to php
@ramsey@phpc.social avatar

just opened up the ability to get virtual passes to next week’s conference, so if you can’t make it in-person, you can still watch the sessions.

You can get your virtual pass and watch the live stream of the conference at https://phptek.tv

Tickets for the in-person event are still on sale, too. I hope to see you there! https://tek.phparch.com

derickr, to php
@derickr@phpc.social avatar

📰 New blog post: "Xdebug at 21": https://derickrethans.nl/xdebug-21.html

wyri, to php
@wyri@haxim.us avatar

It is Monday, and I've already written my most ridiculous bit of code of this week. A method that "converts" a string or class-string into a class-string. By returning it and telling static analyzers it is now a class-string. Mainly because I got tired of putting @var class-string everywhere. And code is used to generate code, not run at service runtime.

mobileatom, to Symfony
@mobileatom@me.dm avatar

Explore our article: Dream Universal, Develop Local: A look at PHP Local Development Tools. https://www.symfonystation.com/local-php-development-tools

symfonystation, to Symfony
@symfonystation@phpc.social avatar

Explore our article: Dream Universal, Develop Local: A look at PHP Local Development Tools. https://www.symfonystation.com/local-php-development-tools

maddiefuzz, to php

I'm about to tear my hair out.

I have no idea how to get the log output from , which is

ramsey, to php
@ramsey@phpc.social avatar

This photo popped up in my “featured photos” today.

Taken at 2017 in Atlanta, that’s Sammy, Amanda, @joepferguson, @eric, and @john seated on stage, with @matthewtrask looming behind them on a large projection screen.

I’m pretty sure I was being a jerk in the audience that night.

itsjoshbruce, (edited ) to php
@itsjoshbruce@phpc.social avatar

isn't my normal deal so any assistance would be greatly appreciated. See if there's someone who can beat me to it. lol

{!! date:
created=2023-01-01
!!}

I want to match everything between the opening and closing.

solution that seems to work:

{!!([\S\s]*?)!!}

awoodsnet, to php
@awoodsnet@phpc.social avatar

you know, it’s funny. For all the web pages that get created in PHP, a language with native templatng, we haven’t really created good strategies for making it easy to work with markup.

Where’s the discussion of strategies of creating blocks of HTML/XML? of wrapping heredocs / nowdocs in typehinted functions? of making that markup accessible?

itsjoshbruce, to php
@itsjoshbruce@phpc.social avatar

Here's an interesting experiment that just popped in my head. Curious if there are examples of it in , , and specifically:

Has anyone ever written (and documented) an application wherein you only pass and receive messages?

function doSomething(RequestInterface $request): ResonposeInterface

That sort of thing.

I've seen folks use Arrays and individual arguments, of course.

Crell, to php
@Crell@phpc.social avatar

Functional programming isn't just for Haskell developers. It's for developers, too. "Thinking Functionally in PHP" is available from LeanPub.

https://leanpub.com/thinking-functionally-in-php

ramsey, to php
@ramsey@phpc.social avatar

Last night, I tagged the first “stable” version of socialweb/atproto-lexicon.

It’s a schema parser for the , and it should come in handy for code-generation purposes—that’s what I’ll be using it for.

As usual, I’ll probably see much more engagement with this post here than I do on . 🤣

@activitypubblueskybridge

https://github.com/socialweb-php/atproto-lexicon/releases/tag/0.1.0

tobz, to php

This looks very promising.
https://zed.dev

I write a lot of which it doesn't support yet (how not) !

So will have to wait until I can use it properly.

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