#vim question: when I comment #php 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?
Supply chain attacks are a plague in the #JavaScript ecosystem. #PHP is less affected, but we can do even better! I just proposed a patch to #Composer 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 🤝
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.
🆕 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 …
Of course, the JavaScript kiddies want to call them “hashbangs” because “hash is commonly associated with modern terms involving # such as #hashtag.” No respect for tradition 🧓🏻
> While serverside #JavaScript 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 #Perl or #PHP 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 #scripting.
#PHPTek 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
It is Monday, and I've already written my most ridiculous bit of code of this week. A #PHP 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.
This photo popped up in my “featured photos” today.
Taken at #PHPTek 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.
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?
Here's an interesting experiment that just popped in my head. Curious if there are examples of it in #SoftwareDevelopment, #WebDev, and #PHP 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.