@Crell@phpc.social avatar

Crell

@Crell@phpc.social

Anything worth doing is worth doing well.

Anything worth doing well is worth teaching others to do well.

Author of Thinking Functionally in PHP, now on LeanPub: https://leanpub.com/thinking-functionally-in-php

#tootfinder

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

Crell, to php
@Crell@phpc.social avatar

I, um, have no idea how to interpret this. Is it safe to use 8.2 for the upcoming v2 of this library, or should I use 8.1? It looks like 8.2 usage used to be >50% of cases, but... it's gone DOWN dramatically? What?

https://packagist.org/packages/crell/tukio/php-stats

Crell, to random
@Crell@phpc.social avatar

A pet peeve of mine is "reinventing something old with a new name and insisting the new name is the only valid name."

The latest: Anyone who calls it a "DTO" instead of "product type", you're on notice.

Crell, to php
@Crell@phpc.social avatar

It occurs to me, I wrote this 5 years ago. I've been writing #PHP for 25 years now, give or take a week. That's a quarter of a century. Kinda makes a guy think...

https://peakd.com/php/@crell/when-i-started-writing-php

Crell, to random
@Crell@phpc.social avatar

When you say what a word "means", what do you mean by "mean?" It's actually not a trivial question.

https://peakd.com/language/@crell/bounded-vs-centered-sets

Crell, to random
@Crell@phpc.social avatar

I have a series of DVD-Rs from my dad. He says he recorded movies to them several years ago. Now they won't play in anything but the DVD player where they were created.

Sure enough, stick it into my laptop, it says it's blank.

What are my options here to extract data from it and into a video file? (Either Mac or Linux tooling available, Linux preferred.)

Crell, to php
@Crell@phpc.social avatar

Oh HELL yes!

"We propose to update and modernize the English PHP documentation, review and remove user comments, integrate 3v4l.org for interactive examples, and simplify the maintenance process. This will make PHP more accessible to new developers and serve as a reliable reference for experienced ones."

https://thephp.foundation/blog/2024/02/26/transparency-and-impact-report-2023/

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

Magic in code/APis is not bad. Excessive magic is bad.

Magic (aka, "things happen automatically") should be limited, self-evident, transparent, and discoverable. But not verboten.

Crell, to random
@Crell@phpc.social avatar

I hate .

I love containers, but the entire Docker ecosystem is a trainwreck.

Couldn't a better tool have won? Please?

Crell, to random
@Crell@phpc.social avatar
Crell, to php
@Crell@phpc.social avatar

I hate null.

Crell, to linux
@Crell@phpc.social avatar

I upgraded my home server's RAID array, and took copious notes along the way to help future me. May they be helpful to present-you, too.

https://peakd.com/raid/@crell/upgrading-a-raid-array-in-flight

Crell, to random
@Crell@phpc.social avatar

I get irrationally angry when a support call center or chat system asks you to provide your name/ID/etc before connecting you to a person, and then the person always asks for that info again.

Like, it's right there. This is 101 level application coordination. Does the org have absolutely 0 designers? Are the designers all 4 years old? Are the engineers all 6? Seriously, how is such a basic design fail so prevalent? Some places look up my acct by the phone I call from, it's possible to do!

Crell, to random
@Crell@phpc.social avatar

If I cannot run your application without , then I cannot run your application.

Crell, to Ukraine
@Crell@phpc.social avatar

Remember: Every mile of land lost by #Ukraine this month to Russian invaders is the direct result of #GOP intransigence and refusal to stand by our allies just so they could make Biden look bad.

Every Republican legislator is a threat to national security. Every. Single. One. Treat them as such.

Crell, to php
@Crell@phpc.social avatar

If your return value is Thingie|Array of Thingie|Collection object of Thingie, please stop designing APIs because your understanding of them is 1st grade at best and you are doing active harm to anyone who uses your code.

No, there are no exceptions to this rule.

Crell, to php
@Crell@phpc.social avatar

9 says to stop using assertObjectHasAttribute() in favor of assertObjectHasProperty(). But the latter doesn't exist in PHPUnit 9, only in PHPUnit 10.

Am I missing something obvious? Because that's not how deprecation warnings are supposed to work...

Crell, to Israel
@Crell@phpc.social avatar

I have so many thoughts.

  1. Good that IDF coordinating an Evac. Few countries would.
  2. WTF? How is a residential neighborhood a military target?
  3. If really is embedded there, it's on Hamas for using human shields.
  4. If so, needs to be a lot more transparent about what they know to justify their actions.
  5. Fuck war. Just... fuck war.

https://www.bbc.co.uk/news/world-middle-east-67327079

Crell, to php
@Crell@phpc.social avatar

Teacher: Replace any validation a function does on its inputs with more robust types instead. Eliminate all conditionals that could be types instead.

Student: But doesn't that just push the validation problem up a level?

Teacher: Exactly. Now do it again. And keep doing it until you run out of upper levels.

Student: But now I'm just parsing input into an object as soon as I get it. There's nothing for other code to even do.

And the Student was enlightened.

#PHP #Types #Programming

Crell, to php
@Crell@phpc.social avatar

Unsurprisingly, I completely agree with this post from Sebastian Dedeyne.

https://sebastiandedeyne.com/php-wishlist-pipe-operator/

Crell, to random
@Crell@phpc.social avatar

Sure, most people don't want a hammer, they want a hole in the wall.

But some people do care about hammers, a lot, because their job is to put holes in walls. Or they just like putting holes in walls.

Don't discount either group.

Crell, to random
@Crell@phpc.social avatar

The Rapture is, mostly, a modern evangelical invention popularized by fiction authors.

https://youtube.com/watch?v=mvsjMuHkGBc

Crell, to php
@Crell@phpc.social avatar

Silly me for thinking I couldn't find an ORM I dislike more than the ones I've used in . Then I found Spring Boot / JPA...

This is a whole new level of asinine...

Crell, to php
@Crell@phpc.social avatar

Using -3 placeholders properly in (and other awesome alliterations).

https://peakd.com/hive-168588/@crell/using-psr-3-placeholders-properly

Crell, to random
@Crell@phpc.social avatar

Hey @nextcloud folks. I'm stuck on v27, because the News app (I use extensively) still has no v28 version, despite being a recommended app. And v29 is coming soon. This is very unusual.

How do I resolve this? I don't want to drop News, but I also don't want to get left behind on versions again. (It's a pain to dig out of.)

Crell, to react
@Crell@phpc.social avatar

This article uses as it's main example, but it applies to , , even just a much. I say that as a recovering Drupal dev who used to use the standardization argument.

Greedy management is the reason we can't have nice things.

https://www.baldurbjarnason.com/2024/react-electron-llms-labour-arbitrage/

  • 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