@mikemccaffrey@drupal.community
@mikemccaffrey@drupal.community avatar

mikemccaffrey

@mikemccaffrey@drupal.community

Building drupal sites for more years than I care to count, now with a strong focus on accessibility and best practices. Senior Architect at Kalamuna.

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

mikemccaffrey, to microsoft
@mikemccaffrey@drupal.community avatar

Speaking of , is replacing their Chief Product Officer, who has been in charge of the and development with a marketing guy who has spent recent months hawking AI bullshit.

https://arstechnica.com/gadgets/2023/09/panos-panay-leader-of-the-surface-and-windows-teams-is-leaving-microsoft/

ht/ @aardrian

stpaultim, to random
@stpaultim@fosstodon.org avatar

Just logged into a Zoom meeting and noticed a number of UI changes and feature upgrades. They may have been there for weeks and I'm just noticing them or maybe it's a more recent update.

Most interesting for me is improvements to the whiteboard feature. Are these new or am I just noticing them?

mikemccaffrey,
@mikemccaffrey@drupal.community avatar

@stpaultim That is my frustration with Google Meet as well, which seems like it should be even more possible to keep a record of because they have a whole chat feature in your mailbox that can display text in a chat format.

mikemccaffrey, to drupal
@mikemccaffrey@drupal.community avatar

I often give a hard time due to all the eccentricates of the community and the code, but seeing the sudden of really makes me appreciate contributing to a non-corporate project.

mikemccaffrey, to drupal
@mikemccaffrey@drupal.community avatar

Looks like @dries included his birthday as an easter egg in the headers of (every single?!) http responses from .

I must admit the scale of that is very epic, and I'm only glad that I discovered it because he called it out in his http header tool, and I didn't encounter it in the code and spend time wondering why that arbitrary date was being set.

Screenshot of the expires header line in Dries' tool for reviewing the http headers your website. It says "PS November 19th is by birthday!" at the end.

mikemccaffrey, to random
@mikemccaffrey@drupal.community avatar

Heartened by the outpouring of feedback around this year's @aspirationtech asking for masks to be required during the event. It really is a special group of caring people who attend this .
https://aspirationtech.org/events/devsummit23

mikemccaffrey, to drupal
@mikemccaffrey@drupal.community avatar

Oh look, my coworkers at published another one of my modules on .org!

The allows you to quickly access properties and methods of an object without worrying about accidentally causing a fatal exception if something doesn't exist as expected.

It is great for theme functions where want a value from an object, but it is no big deal if it is not available.

https://www.drupal.org/project/maybe

mikemccaffrey,
@mikemccaffrey@drupal.community avatar

@pcambra Good catch! I rewrote the long version to use referencedEntities() so it matches the maybe version.

It turned out to be the exact same amount of code, since before you call referencedEntities() you need to make sure the field is actually an entity reference field.

Before I update it on d.o, did I miss any obvious way that someone would write this code more succinctly while still ensuring that you have the expected entity types before calling methods on them?

https://github.com/mikemccaffrey/maybe

mikemccaffrey,
@mikemccaffrey@drupal.community avatar

@pcambra Yes, you can reorder and combine those if statements, but you still need to check the same amount of things to safely get to the end of the code.

Sure, it is very rare to get the wrong type of field type or entity type than what you are expecting, but it could happen, especially if you were to copy code between two similar, but slightly differently configured sites.

mikemccaffrey,
@mikemccaffrey@drupal.community avatar

@penyaskito @pcambra Not sure exactly what you mean, but this is only an example, showing how without the maybe module you need to be very thorough in checking things if you absolutely want to prevent exceptions.

mikemccaffrey, to random
@mikemccaffrey@drupal.community avatar

@Auxonic I would be doing everything in if it had support to use twig for the frontend. The Drupal 7 back-end architecture was so much more elegant.

mglaman, to drupal
@mglaman@phpc.social avatar

Rendering PHPTemplates in 10? 😱

Yes! That's now supported by Retrofit.

https://github.com/mglaman/retrofit-drupal/releases/tag/0.1.2

mikemccaffrey,
@mikemccaffrey@drupal.community avatar

@mglaman I love how you've gone and figured out a way to remove the one big improvement that I think Drupal 8/9/10 has over 7.

ultimike, to drupal
@ultimike@drupal.community avatar

Well-written blog post from @mglaman that helps to explain factory classes (in the context of dependency injection).

https://mglaman.dev/blog/factories-and-dependency-injection

mikemccaffrey,
@mikemccaffrey@drupal.community avatar

@ultimike @mglaman I have a computer science degree and 24 years of programming experience, and I still cannot follow any of the logic behind this stuff.

mikemccaffrey,
@mikemccaffrey@drupal.community avatar

@mglaman I need a kindergarten level picture book explanation of why we need all this stuff in the first place.

mikemccaffrey,
@mikemccaffrey@drupal.community avatar

@mglaman in principal, I get dependency injection, but not all the weird times in drupal when sometimes it is done automatically and sometimes it is not.

mikemccaffrey, to random
@mikemccaffrey@drupal.community avatar

Wow, I really wish I had enough clout on to downvote and comment on this answer that says to refer to dependencies in terms of "master" and "slave". https://english.stackexchange.com/questions/25575/what-is-the-correct-word-for-dependee

mikemccaffrey, to random
@mikemccaffrey@drupal.community avatar

Home safely from , but I find myself completely dispirited. We released tons of CO2 flying to Pittsburgh while the world burned around us, and instead of using what little precious time and resources we have left to help solve problems, we spent our time listening to the leadership tie themselves into knots to avoid taking the smallest possible ethical stance against hosting fascists that are responsible for injustice and state-sanctioned violence around the world.

mikemccaffrey,
@mikemccaffrey@drupal.community avatar

I'm appreciative of all the attendees and broader members of the community who voiced their opposition to actively supporting hate groups. However, with both and leaders doubling down on an "open web" that protects the privilege of groups who are working to take the rights away from other people, it is hard not to conclude that the entire foundation of the drupal project is increasingly rotten.

mikemccaffrey,
@mikemccaffrey@drupal.community avatar

@pcambra No, just some rhetoric from Dries about how important it is to have an "Open Web", which is something he never seemed to care about before during his enterprise-level keynotes.

mikemccaffrey,
@mikemccaffrey@drupal.community avatar

@pcambra That is an absolutely bonkers post. It basically boils down to "we are writing a manifesto on a vague but important issue, but instead of just telling you why we are doing it, how about you tell us what might sound good to you".

mikemccaffrey,
@mikemccaffrey@drupal.community avatar

@pcambra What is that makers/takers supposed to mean other than as a conservative dog whistle? It is pretty thoroughly proven that the tragedy of the commons is just a conservative fever dream. https://blogs.scientificamerican.com/voices/the-tragedy-of-the-tragedy-of-the-commons/

steveboland, to random
@steveboland@mastodon.social avatar

Finally finished Mrs. Davis and it was a fantastic ride. One uneven episode, but wow what a story, imagination and performances!

https://en.m.wikipedia.org/wiki/Mrs._Davis

mikemccaffrey,
@mikemccaffrey@drupal.community avatar

@steveboland @stpaultim Wait, which is the uneven episode?

mikemccaffrey, to php
@mikemccaffrey@drupal.community avatar

Spending time this weekend reaching out to personal clients about moving their sites to a different web host. Since made it clear that they are not a values-based company and are fine having hate groups as customers, they are not a good provider for organizations who are actually values-based.

mikemccaffrey, to php
@mikemccaffrey@drupal.community avatar

Always love searching to see if there has been an issue created for a problem, only to discover that you yourself created one three years ago. https://www.drupal.org/project/drupal/issues/3134257

Em0nM4stodon, to random

The battle for End-to-End Encryption is going to be a very important one.

Support it.
Talk about it.
Do not believe the excuses they give to break it.

End-to-End Encryption protects everyone!


https://signal.org/blog/uk-online-safety-bill/

mikemccaffrey,
@mikemccaffrey@drupal.community avatar

@Em0nM4stodon @Ryan I'm surprised how little discussion there is of using end-to-end encryption as part of direct messages on mastodon, so server admins and such can't access them.

mikemccaffrey,
@mikemccaffrey@drupal.community avatar

@Em0nM4stodon @Ryan But if a mastodon account published a public key, it would not be hard for clients to encrypt any direct messages before sending them.

Seems like a no-brainer feature, and could easily fall back to just being plain text if either the sender or recipient does not have support for it.

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