Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

NodeBB <> Lemmy federation issue (re: nullable image/icon)

Technical Discussion
26 4 20

Gli ultimi otto messaggi ricevuti dalla Federazione
  • @julian that might be it, yeah. languages outside of javascript generally don't make a distinction between null and undefined, and even in javascript these are used inconsistently. for example localStorage.getItem will return null for a missing key. practically speaking, the "intentionally" distinction is a distinction without a difference in most processing contexts.

    read more

  • trwnh@mastodon.social undefined and perhaps that's why we're disagreeing on our interpretations of how these values should be handled.

    null in JavaScript is very explicitly a declaration that there is no value or "intentionally empty".

    null and undefined are two separate things here at least.

    read more

  • @julian what does js return instead? in most cases i'm familiar with, programming languages use null or nil or None for anything that doesn't have a value, or any reference which doesn't point anywhere. hence a null pointer exception when you try to dereference a null. if you try to get a value for a key that isn't in the dictionary, you get null by default because there is no value for a missing key. how would you consume a null value? if you have nothing to say, why say anything?

    read more

  • trwnh@mastodon.social I'm coding in js, which has all sorts of footguns, but even that won't return null when I attempt to access the non-existent property of an object... 😛

    read more

  • @julian this wouldn't be your AP lib, it would be your programming language itself

    read more

  • trwnh@mastodon.social as someone working on the consuming side, that is not correct.

    If my AP lib automatically assumed null when requesting an object property that didn't exist I'd consider that a bug.

    read more

  • @julian there's no difference on the consuming side (and in many programming languages you can check for truthiness with something like `if x.get("totalItems")` which defaults to returning null if missing anyway)

    functionally, you either have the information, or you don't

    read more

  • trwnh@mastodon.social not sent due to implementation differences, rather.

    read more
Post suggeriti
  • 0 Votes
    4 Posts
    10 Views
    @julian @box464 There's actually already an Android app that allows all this: Raccoon for Friendica (which actually also works for Mastodon).Raccoon for Friendica is a rather unique app, one I'm very fond of, because it perfectly illustrates how the best ideas come from the "contamination" of different environments. Here's an article about Raccoon that should be updated, which I wrote a few weeks after the app's beta release (launched in late August 2024)Raccoon for Friendica was developed by @akesiseli after he had already developed an Android client for Lemmy (Raccoon for Lemmy).When he focused on Friendica, he faced the problem of how to translate Friendica's ability to display group conversations into an app (they're quite visible on Friendica's web interface, though they don't have the clearest interface possible like Lemmy's or forum platforms like NodeBB and Discourse). He ported the "topic view" feature already present in Lemmy's apps to Friendica!Since Raccoon is an app that also works with Mastodon, @akesiseli attempted to "force" Mastodon to have the same interface, and after a few attempts, he succeeded perfectly.Raccoon for Friendica still has a few imperfections (search isn't 100% functional, it still doesn't handle resharing with quoting, and other minor glitches, and feed capture is still a bit slow compared to Tusky and Fedilab), but despite being just over a year old, it's a decidedly mature app. Most importantly, it offers group viewing features that no other app offers. And—trust me!—group viewing isn't the only new feature Raccoon has brought to a social media client!I hope the app's development continues well, although I'm a little concerned: the developer is a bit disappointed that almost no one uses his app... But this is mostly due to the fact that the app has a name that appeals to Friendica users (who are very few) and that even the most established apps for Mastodon suffer from competition from an "official" app!
  • 0 Votes
    2 Posts
    16 Views
    does anybody use #wordpress as their main #ActivityPub account? is there a good app? basically are we there yet?
  • WordPress and 844e

    Uncategorized fep 844e activitypub wordpress
    5
    0 Votes
    5 Posts
    28 Views
    silverpill@mitra.social the second code example in FEP 844e is wrong though, it uses [ and ] instead of { and } around the "object" in implements
  • 0 Votes
    1 Posts
    4 Views
    🌍 Il mondo e l'Italia stanno cambiando e non sempre in meglio.Crisi internazionali, guerre, derive autoritarie, censure e manipolazione dell'informazione. E in Italia i segnali preoccupanti non mancano.Per informarsi al di fuori dal rumore di fondo e dall'indignazione acchiappa click il gruppo #lemmy di attualità ha appena raggiunto i 400 iscritti:💬 @attualitaun punto di informazione dal basso per seguire notizie indipendenti, reportage dal campo, analisi di attivisti e osservatori.