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
    2 Posts
    0 Views
    @evilworld friendica è un po' il dinosauro del fediverso è il software più antico ancora in sviluppo. Fa tante cose, pure troppe e dietro ci sono solo un paio di persone quindi dubito abbiano la forza per rifarlo tutto, fra l'altro un ex sviluppatore è uscito e ha rifatto da zero un nuovo progetto: hubzilla. per i gruppi poi ora ci sono le istanze lemmy come https://diggita.com,ad esempio quando scrivi di fediverso aggiungi il tag al gruppo:@fediverso e verrà ripubblicato
  • 0 Votes
    1 Posts
    2 Views
    Check out this progress on #Atlas. In about two weeks, we've gone from tooting an 85mph brainstorm on I70 to a fledgling app that lets me annotate any location on the globe, and share it over #ActivityPubSo here's a quick video of where it is right now. There's still a lot to do before anyone can really use it. But there's enough here for me to ask for your help. I would love to hear what you think and to start talking to everyone out there who's interested in making maps on the #Fediverse.
  • 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! 🥳
  • Prova messaggio NodeBB aggiornato

    Uncategorized nodebb
    1
    0 Votes
    1 Posts
    23 Views
    NodeBB è stato aggiornato alla versione 4.5.1. Sto testando questa versione di NodeBB su un nuovo URL.