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
    3 Views
    @dansup @trankten @Skivling Anyone who spends any time contributing code online will eventually receive entitled, selfish and lazy users with snarky and unproductive comments trying to diminish their work. Open source (or don't) your code whenever you feel like it, choose whatever license you feel fits your project, push commits/tag releases whenever you feel like it, enable/disable the issue tracker as you see fit, you don't owe anyone your time and skills.Congrats on the release! 🥳
  • 0 Votes
    1 Posts
    1 Views
    ActivityPub für WordPress, ein kurzer Vortrag.Matthias Pfefferle, der Entwickler des ActivityPub-Plugins für WordPress, hat einen sehr interessanten Vortrag darüber gehalten, wie es mit dem Plugin weitergehen soll und welche Probleme es gibt.https://blog.fedispace.de/activitypub-fuer-wordpress-ein-kurzer-vortrag/#WordPress #ActivityPub
  • 0 Votes
    1 Posts
    8 Views
    I'm thrilled about the launch of @altstore's support for ActivityPub. Welcome to the fediverse! This integration will enable you to follow updates from your favorite apps and their developers right here on your fediverse timeline. You can see their server's local timeline here, to get an idea of what that looks like: https://explore.alt.store/public/localTo me, this represents an innovative and exciting new way to spread the social web to new and different kinds of apps and services. What should we make social next??And a heartfelt thank you from the @Mastodon team to AltStore for their generous donation 💞https://techcrunch.com/2025/10/07/alternative-app-store-altstore-raises-6m-connects-with-the-fediverse/#Mastodon #Fediverse #ActivityPub
  • 0 Votes
    10 Posts
    50 Views
    julian@activitypub.space I am subscribed to 4 relays: https://relay.minecloud.ro/actor https://relay.publicsquare.global/actor https://relay.infosec.exchange/actor https://rel.re/actor I did have others added that sat at 'Pending' for days (I guess some relay admin are not monitoring requests), but they have been removed.