Replies

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

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 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,
@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, to random
@ramsey@phpc.social avatar

When running tests “with Coverage” in any #JetBrains 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.

#PhpStorm

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.

Synchro, to random
@Synchro@phpc.social avatar

My kind of conference feedback 😍

ramsey,
@ramsey@phpc.social avatar

@Synchro Is the number in parentheses the median, or something like that?

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

I haven’t said it in a while, but I want to make sure everyone knows that I really appreciate what @eric and @john are doing at @phparch. I think the work they’re doing is awesome!

You should check out @phparch.

(No one is paying me for this promotion, nor have I been asked to do this.)

ramsey,
@ramsey@phpc.social avatar

@lewiscowles1986 @eric @john @phparch I’m not sure what this means.

Quinnypig, to random
@Quinnypig@awscommunity.social avatar

Amazon just chose violence on my spicy mustard order.

ramsey,
@ramsey@phpc.social avatar

@Quinnypig How many cases of it did you order that it saved you $9.99 in shipping fees?

maxalmonte14, to random
@maxalmonte14@indiehackers.social avatar

If people are not going to the movies anymore I have a crazy idea, hear me out, what if studios start doing small, well thought-out romantic comedies and dramas instead of the 300 million dollar CGI shit fest we have been getting during the last decade?

ramsey,
@ramsey@phpc.social avatar

@maxalmonte14 When you see the opening weekend numbers for movies like Dune 2 and Oppenheimer, it’s hard to believe people aren’t going to the movies.

ramsey, to random
@ramsey@phpc.social avatar

Is it appropriate for lawyers to appear on national news talk shows and spread unfounded conspiracy theories that would cause massive distrust in our legal system? That seems like something you should be disbarred for doing, right?

ramsey,
@ramsey@phpc.social avatar

@cam Right, but some professional associations have rules against causing harm to the profession. I’m not sure whether that’s a rule for admission to the bar, though, and they could also argue that they believe they’re telling the truth, and if so, their opposition is causing the harm. 🤷‍♂️

ramsey,
@ramsey@phpc.social avatar

@nick @cam That’s a good question, though I’d hope they’d be able to back up their claims with some kind of evidence, even if circumstantial.

mcc, to random
@mcc@mastodon.social avatar

I have just been informed that Plex has a bug where if you upload to your Plex server an album either credited to "Various Artists" or containing a mix of artists on each track, it will list that album in the UI as being by "KONAMI". This is apparently a known issue.

ramsey,
@ramsey@phpc.social avatar

@mcc @andrewfeeney I’m now going down the mental rabbit hole of all the meta permutations we could make of this.

Later, they release an actual self-titled album, every one of the tracks is by “Various Artists, with various artists.”

heiglandreas, to random
@heiglandreas@phpc.social avatar

I wrote about why I think we should not use composer to install development tools:

https://andreas.heigl.org/2024/06/02/of-tools-and-dependencies/

ramsey,
@ramsey@phpc.social avatar

@ralphschindler @heiglandreas Its method of distribution is just composer require. https://laravel.com/docs/11.x/pint#installation

Do you mean the way it allows writing test files that don’t depend on external classes?

ramsey,
@ramsey@phpc.social avatar

@ralphschindler @heiglandreas The real problem comes when you have extensions. For example, PHPStan has a Phar distribution you can require using Composer, but when you also require one of its extensions, they depend on the main package (not the Phar package), so you get the full version with all its dependencies anyway. I’m also not sure how feasible it is for a self-encapsulated Phar to reach outside itself to include extensions that also might have dependencies.

nixCraft, to random
@nixCraft@mastodon.social avatar

This is why you shouldn't be obsessed with Linus Torvalds, Richard Stallman (RMS), Stormy Peters, Alan Cox, and other figures in the open-source or Unix or Linux communities. 😂

ramsey,
@ramsey@phpc.social avatar

@nixCraft @lisamelton Is it celebrity worship that causes us to be less intelligent, or is it the less intelligent who are more prone to celebrity worship? 🤔

GeePawHill, to random
@GeePawHill@mastodon.social avatar

Actually, that's an interesting last sentence in that last thread: "Maybe I shoulda fought more."

One of the challenges of being an elder in the geek trades is this.

When you look at stuff in the trade, geek stuff, and you're appalled, you have to constantly wonder: is the problem really the problem you see, or is the problem the fact that you're just aging out?

ramsey,
@ramsey@phpc.social avatar

@GeePawHill The internet is bullshit. Computers are bullshit. Telecommunications is bullshit.

ramsey,
@ramsey@phpc.social avatar

@GeePawHill @thebillasch I’m only half goofin’, and with each passing year, I goof less on this.

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