FEP drafting: Am I using “side effects” here the same way as other ActivityPub developers?

submitted by

https://fietkau.social/system/media_attachments/files/116/035/729/962/589/648/original/c41d31ec34fde4bf.png

The "side effects" of an activity are everything caused by the activity other than it being visible in its actor's outbox and getting posted to its audience's inboxes. For example, a like or reply being represented in the affected object's `likes` or `replies` collection is a side effect, as is likes or replies being shown on a web page corresponding to the object.

FEP drafting: Am I using “side effects” here the same way as other ActivityPub developers? I've seen the term used a bunch in casual conversation, but my personal understanding of it is kinda fuzzy.

#ActivityPub #FediDev #FEP

3
1

Log in to comment

3 Comments

@julian@fietkau.social yes you are correct as far as my limited understanding goes.

My personal definition of side effect limited to “unintended consequences”, which differs greatly from the ActivityStreams definition, so for my own sanity I avoid the term in my own documents 🙂

@julian I use side-effect a lot when talking about ActivityPub activities and I mean it close in context to its functional programming meaning, where an action can have side-effects which are not immediately observable from its input or output.

Ie, when a Create activity determines a server to persist an object to disk that's a side-effect of the Create. When an Undo activity removes its object activity from disk, that's another side-effect. They are not immediately observable from the results of the Activity upon its server or its client.

Does that make sense?

@mariusor I think I get it, yeah. Would that still fit with my draft definition? It feels weird to call it a side effect when a `Like` towards an object gets added to its `likes` collection, since that's arguably part of the intended effect. But that's what I'm picking up from the standard as well: w3.org/TR/activitypub/#likes

@julian close enough, i guess? it's the stuff that happens after you POST (think ifttt, service processing, that kind of stuff)

they can be automatic or manual, often automatic in the way most people use the term but i personally allow manual processing of "side effects" too

Insert image