@ramsey@phpc.social
@ramsey@phpc.social avatar

ramsey

@ramsey@phpc.social

Coder, author, & speaker. PHP 8.1 & 8.2 release manager. ramsey/uuid maintainer. Open source developer. Senior Staff Engineer. Pronouns: he/him/his

“This guy seems to fundamentally misunderstand open source” — some rando on Hacker News

“Who is this guy?” — another rando on Hacker News

Co-admin of the https://phpc.social Mastodon server.

All original content in public posts © me & licensed CC BY-SA 4.0, unless otherwise specified. :cc: :ccby: :ccsa:

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

syntaxseed, (edited ) to fallout
@syntaxseed@phpc.social avatar

Watched the premier episode of and not only ran ads before the show but interrupted the show 3-4 times to play unskippable ads. 😡

Ads before were bad enough, but this is absolutely jarring & bullshit for a service I pay for.

Can't even seem to find any info about an ad-free tier for Canadian subscribers.

Really makes the "oh, it's streaming on Prime" discovery into a disappointment than good news.

ramsey,
@ramsey@phpc.social avatar

@syntaxseed 🤬

That didn’t happen for us. I'm not sure whether it's because we're US-based or because we watched it within so many weeks of the debut, but I know we don't pay for the extra ad-free tier.

ramsey, to php
@ramsey@phpc.social avatar

What’s the difference between memory usage and peak memory usage?

(As in 's memory_get_usage() and memory_get_peak_usage() functions.)

ramsey,
@ramsey@phpc.social avatar

@sean So… memory usage is the “current” usage, which can go down if you unset a variable, etc. And peak memory usage is the maximum amount that the script used throughout its life?

ramsey,
@ramsey@phpc.social avatar

@sean Right. The docs mention that it’s only memory allocated with emalloc(), etc. Which means if an extension used uses malloc(), that won’t be included in these numbers.

preinheimer, to random
@preinheimer@phpc.social avatar

The Brits aren’t okay.

ramsey,
@ramsey@phpc.social avatar

@preinheimer Your salad is looking a little dry, there. Why not use my salad cream, with 5 different moisturizers?!

ramsey,
@ramsey@phpc.social avatar

@kboyd @preinheimer 9 out of 10 horticulturalists and dermatologists agree!†

†The sky is blue.

thomasfuchs, to random
@thomasfuchs@hachyderm.io avatar

My point here is that this is something you can’t control, because 1) scrapers will scrape it anyway and 2) 99% of spammers don’t get your email address from scraping.

It’s a waste of time trying to control this. It’s like trying to keep your hair color secret.
https://hachyderm.io/@thomasfuchs/112561710639306003

ramsey,
@ramsey@phpc.social avatar

@thomasfuchs I’m using a framework that automatically obfuscates my email in the view output. I had to jump through some extra hoops just to get it to render it as a raw email address. 😂

sarah, to random
@sarah@phpc.social avatar

Do you include built-in functions in your namespace “use” declarations or not? Why or why not?

ramsey,
@ramsey@phpc.social avatar

@stevegrunwell @sarah This provides a bit of information about how PHP resolves function and class names: https://www.php.net/manual/en/language.namespaces.rules.php

ramsey,
@ramsey@phpc.social avatar

@stevegrunwell @sarah There’s actually a micro-optimization reason for either importing or using \ in front of internal functions/classes, and that’s because PHP will first look in the current namespace to try to resolve the symbol. It falls back to the global namespace, if it can’t find it. If you tell it exactly where it is, PHP doesn’t have to do that work.

ramsey, to Starwars
@ramsey@phpc.social avatar

First two episodes of #TheAcolyte are a good start. I’m interested in seeing where they take it. #StarWars

ramsey,
@ramsey@phpc.social avatar

@alessandrolai @brammm Yeah. This has a very different tone. The universe is perhaps more naïve, as compared to the time under the empire.

rooster, to random
@rooster@chaosfem.tw avatar

I made a follower-only alt for my spicier takes (and selfies?) if anyone wants to shoot me a follow. Apologies if I don't accept a follow (especially from cis folks) I'm going to be fairly discerning https://transfem.social/@rooster

ramsey,
@ramsey@phpc.social avatar

@rooster I’ll request to follow and won’t be upset if you decline. 🙂

ramsey, to php
@ramsey@phpc.social avatar

It boils my blood to hear folks insinuate that is the source of their performance problems and they should switch to microservices in another language to fix the performance issues. Maybe spend a little bit of time figuring out where your bottlenecks are and fix those, first!

(This may or may not be a sub-toot.)

ramsey,
@ramsey@phpc.social avatar

Related (though not to the reason I posted ☝️):

@maccath tells a story of a company whose engineers were scrambling to migrate away from to solve their performance problems. She convinced them to upgrade from 5.6 to 7, and practically, all their performance issues disappeared. They no longer needed to migrate away, which saved them a ton of money.

(She can tell it better than I can.)

ramsey,
@ramsey@phpc.social avatar

@preinheimer This is usually the case for developers who rewrite things in a different programming language, too, so it’s rarely the programming language itself that made things more performant.

ramsey, to random
@ramsey@phpc.social avatar

I don’t know why, but I love every scene of #StarTrekDiscovery with Tig Notaro.

sarah, to php
@sarah@phpc.social avatar

The language is incredibly powerful. It’s great for many things. But not everything.

I wouldn’t write a web server in PHP and deploy it to production.

But the fact that I could makes the language incredibly powerful.

ramsey,
@ramsey@phpc.social avatar

@sarah It does have a JIT, now, and the JIT is getting better in 8.4, so it’s not so far fetched to consider long-running, single-threaded processes written in .

cspray, to javascript
@cspray@phpc.social avatar

One time I found some in an app that was constructing a full blown SELECT statement in SQL, sending it to the server, and then blindly executed on that server.

It is still the most glorious, beautiful code I've ever seen.

ramsey,
@ramsey@phpc.social avatar

@cspray This sounds like a Good Thing™.

ramsey, to random
@ramsey@phpc.social avatar

When running tests “with Coverage” in any IDE, where does it store the coverage files?

My project is running in containers with docker compose, and this is all set up properly. In fact, the tests run, and presumably, the coverage report is generated, but the IDE doesn’t show the coverage, and I think it’s because it must be storing the coverage report on the container somewhere, and the IDE can’t access it when trying to display the lines covered.

ramsey,
@ramsey@phpc.social avatar

@julesbl I think it’s not a PhpStorm issue, now. I think there’s some issue inside the container. I tried running PHPUnit directly in the container with --coverage-html and again with --coverage-text. Both times, the tests run and pass, but then there’s just the word “Killed” that appears where the code coverage messages are supposed to appear.

hightechredneck, to random
@hightechredneck@phpc.social avatar

Does the terminal in PhpStorm use different command line tools than the macOS Terminal does?

I get an error when I try to run git status in PhpStorm, but it works just fine in Terminal. 🤔

[NOTE: I updated macOS versions earlier this week.]

ramsey,
@ramsey@phpc.social avatar

@hightechredneck Are you using the new beta terminal in PhpStorm, or just the regular one? I’ve had nothing but issues with the beta one, so I turned it off. The regular one works just like my regular terminal.

ethanschoonover, to random
@ethanschoonover@mastodon.social avatar

One of the first 5 Choose Your Own Adventure books from the 80's, The Mystery of Chimney Rock really spooked me as a kid in the absolute best way.

I still think about it as a sort of "horror benchmark" for the right kind of scary vibe.

ramsey,
@ramsey@phpc.social avatar

@ethanschoonover It’s not exactly the same kind of scary vibe, but I read Something Wicked This Way Comes, by Ray Bradbury, in the late 80s, and it has been my benchmark for Halloween and creepy Fall feelings ever since.

mcc, to random
@mcc@mastodon.social avatar

I wish there was a variant of sftp that used ssh for authentication and then dropped the encryption for transfer. I am transferring files over the local network and I do not care that our smart TV¹ is sniffing the packets. But what I do care about is that when I'm logging in my password not be sent in the clear²

¹ DEFINITELY compromised by at least three nation-state actors

² Where it will be captured by the nation-state actors which have compromised our smart TV

ramsey,
@ramsey@phpc.social avatar

@mcc What’s the use-case for why you don’t want the files encrypted during transfer? Latency?

rebeccawatson, to random
@rebeccawatson@mstdn.social avatar

recently heard that bangs are trendy now while I continue to grow mine out so if you think about it I am actually extremely cool

ramsey,
@ramsey@phpc.social avatar

@rebeccawatson You wore bangs before they were cool, even.

ramsey, to random
@ramsey@phpc.social avatar
ramsey, to random
@ramsey@phpc.social avatar

Just watched “Face the Strange,” and it’s my favorite episode of the season, so far. #StarTrekDiscovery

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