@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.

film_girl, to random
@film_girl@mastodon.social avatar

So the new Instagram text thing is reported to have ActivityPub support and instead of being happy at all the new labor that could potentially be coming to the standard, Mastodon people are now actively encouraging instances to not federate with any of that stuff. K.

Crell,
@Crell@phpc.social avatar

@SecurityWriter @film_girl If the Fediverse gets popular, it's not hipster cool to be part of the counter culture anymore.

More generously, large influx of people changes the culture, radically. And that's never pleasant for those already there. I've seen that many times, personally. On both sides of it.

beausimensen, to random
@beausimensen@phpc.social avatar

I want to encode similar objects of the same general type and shape but have different intent.

I need interpret the data in TypeScript. Shape alone won’t be enough to distinguish between shapes as some shapes will be identical but have different intent.

I’d settle for using a “discriminator” but it seems like neither JSON Schema nor TypeScript have this concept.

Is this possible with either JSON Schema or TypeScript? Is it possible with some other tools or formats I don’t know about?

Crell,
@Crell@phpc.social avatar

@beausimensen I don't know of anything in typescript. My PHP library does exactly that, but I don't think that helps you much.

Crell,
@Crell@phpc.social avatar

@beausimensen Crell/Serde (gh and packagist.)

sebastian, to random

Here is the material I used for my presentation on 10 at @phpday today:

https://thephp.cc/presentations/phpunit-10

Crell,
@Crell@phpc.social avatar

@sebastian @phpday Oh shit, I got cited in the slides! (Now I'm scared to know the context of the slide.)

Crell, to random
@Crell@phpc.social avatar

Everything you ever wanted to know about how GPS works, with clever interactive animations!

https://ciechanow.ski/gps/

Crell, to random
@Crell@phpc.social avatar

The secret history of AMP.

Good, but also ignores the usability problems AMP had. I'm glad it's dying.

https://www.theverge.com/23711172/google-amp-accelerated-mobile-pages-search-publishers-lawsuit

Crell, to random
@Crell@phpc.social avatar

On the media.

Sadly accurate.

https://www.smbc-comics.com/comic/the-media

Crell, to random
@Crell@phpc.social avatar

If you build it in from the start, you won’t ever need it. If you don’t build it in from the start, you will eventually need it and won’t have the ability to shoe-horn it in cleanly.

Such is the nature of software.

Crell, to php
@Crell@phpc.social avatar

If your method's return type has 4 different possible types, some of which are list-ish and some not, your API is beyond saving and you should just start over from scratch.

You can guess which framework I'm working with...

Crell,
@Crell@phpc.social avatar

@sarah I wish I could. I really really wish I could.

Crell,
@Crell@phpc.social avatar

@thomas_shone That's horrifying.

grmpyprogrammer, to random
@grmpyprogrammer@phpc.social avatar

One of my longest nightmares is finally over. Mini-me got her driver’s license and therefore can drive herself to school now.

Crell,
@Crell@phpc.social avatar

@grmpyprogrammer Doesn't that mean the nightmare is just beginning?

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

I can't say I disagree with this at all.

"Against SQL."

https://www.scattered-thoughts.net/writing/against-sql/

atomicpoet, to fediverse

#Google just announced their next social media venture: #Perspectives.

Perspectives is a tab that will showcase social media posts in their search results. This will give -- you guessed it -- "perspectives" on current events and other matters as well.

While Google is positioning this generating results from all social media, this also has massive implications for the #Fediverse.

I've been saying for a long time that if we Fediverse developers didn't nail search soon, Google will eat our lunch.

Well, it looks like they've just set down at a table and are studying the menu right now -- because I completely expect that the Fediverse will be present on that Perspective tabs, especially since the Fediverse is now generating 1 billion+ posts each month.

What is the next logical step for Google?

If I were putting on my Google product development hat, I'd push for full text search with near-instant results. This is very easy for Google to do. Their engineers could probably build it fast.

Meanwhile, the Fediverse is practically giving away Fediverse search to Google -- Google is what most people use to find posts on the Fediverse right now.

Are we just going to allow Google to extend their search monopoly into the Fediverse, and without a fight too?

https://www.engadget.com/google-searchs-new-perspectives-tab-will-highlight-forum-and-social-media-posts-175209372.html

@socialmedianews @fediversenews

Crell,
@Crell@phpc.social avatar

@Abenco @atomicpoet @fediversenews @socialmedianews

  1. OMG someone is going to make money off my posts without my permission.
  2. But copyright! Everything should be double opt in only.
  3. I don't want to be found. I want to post in public on a public server but never let anyone find me because I'm a hipster and if the bar becomes popular then I won't like it anymore.

(You can derive my stance on those by the sarcasm, I expect.)

Crell,
@Crell@phpc.social avatar

@datn @atomicpoet @fediversenews @socialmedianews Step one is not brigading and harassing anyone who dares to create an indexer. So far, we haven't even managed that.

Crell,
@Crell@phpc.social avatar

@datn @atomicpoet @fediversenews @socialmedianews Social media is hard, yo. Mostly because of the social part.

Crell, to random
@Crell@phpc.social avatar

None of the world's top industries are profitable. Unless you ignore their natural capital costs, which we do.

https://grist.org/business-technology/none-of-the-worlds-top-industries-would-be-profitable-if-they-paid-for-the-natural-capital-they-use/

ramsey, to random
@ramsey@phpc.social avatar

Problem: I have two DB tables, and I’m trying to select from the first table for records that do not exist in the second table. Over time, as I process each record, I’ll write to the 2nd table, and then those records will be excluded on subsequent queries.

Pretty standard stuff. The queries are easy to write, and there are several ways to write them (e.g. left join where is null, where not in subquery, where not exists subquery).

1/2

Crell,
@Crell@phpc.social avatar

@ramsey @syntaxseed Yeah, some kind of "stopped here before" value sounds like the best bet. You could also use timestamps if the id's aren't reliably sequential.

Crell,
@Crell@phpc.social avatar

@ramsey @syntaxseed Hm, or alternatively, instead of having a "has been processed" list can you just have a "to be processed" list? Similar to the queue suggestion?

DataDrivenMD, to random

Increasingly clear that quote posts are the key differentiator between BlueSky and Mastodon

Crell,
@Crell@phpc.social avatar

@ShekinahCanCook

  1. Purpose: Share with additional context to my own followers.
  2. Screencaps are more effort, and hurt accessibility, and make it harder for people to follow back to the original thread.
  3. Thank you for doing exactly what the OP said you would do.

Literally every feature can be used for good or ill. The question is the balance and how to mitigate.

I'm sorry if you've only seen QTs used for dogpiling. I've almost always seen it used for useful context.

Crell,
@Crell@phpc.social avatar

@ShekinahCanCook That sounds like a moderation problem, not a QT problem. Mods should make much better use of the ban hammer.

Crell,
@Crell@phpc.social avatar

@ShekinahCanCook

> I can't wait for Zuck to go bankrupt.

Amen to that.

We're not talking about growth, though. We're talking about equity, and features that are very important to certain professions and cultures. Black Twitter, for instance, used QTs extensively as a Force For Good. The lack of it here is bad for that culture, and drives black people away from Mastodon. That's bad for the network, whatever it's size.

syntaxseed, to Symfony
@syntaxseed@phpc.social avatar

Hey folks.

What's your thoughts on vs ? I'm looking for a PHP CMS that isn't WordPress based on a potential client's request. Prefer based so that's why these 2.

Mostly a brochure site with some normal CMS-y features (gallery, contact form, etc).

Bonus for ease of ongoing maintenance.

Crell,
@Crell@phpc.social avatar

@symfonystation @syntaxseed @nanimal No, Drupal. I have no significant contact with the Joomla community so cannot say one way or another.

Crell,
@Crell@phpc.social avatar

@symfonystation @syntaxseed @nanimal Oh, there's lots of very good people in Drupal.

I was a core dev for 10 years and led the "integrate Symfony and rewrite everything" effort. The core dev culture is toxic and destructive, and project leadership is horribly biggoted.

(Details not for public thread, but will answer DMs.)

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