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
    1 Views
    It would be one thing if I had no proof. If I were just a random making wild claims without any documentation, of course, that would be nonsense.But I have proof. I have seen this first hand and even took the risk of sharing things from work to back up. This place is supposed to be better than Blue Sky, Twitter, Facebook, and Reddit --- Right?If so, why embrace and protect scammers as if they were a protected class of people?#Scam #Fraud #Fediverse #ActivityPub
  • 0 Votes
    5 Posts
    16 Views
    @pfefferle Thanks, Mr. ActivityPub. I'll have an eye on that.
  • NodeBB e i Widget

    Blog nodebb widget
    1
    1
    0 Votes
    1 Posts
    39 Views
    NodeBB è la piattaforma software federata alla base di questo sito. Lo trovo interessante per le sue caratteristiche di federazione e opzioni di configurazione. Una di queste opzioni sono i Widget, dei mattoncini preconfigurati e da completare che si possono inserire nelle pagine del sito. Il titolo e sottotitolo su sfondo blu in alto è un esempio di widget che NodeBB mette a disposizione. Anche i Messaggi recenti a destra sono un esempio di widget. [image: 1757427905119-nodebb_widget.jpg] I Widget mi ricordano un'altra piattaforma software di configurazione e sviluppo di Blog: MovableType, una sorta di CMS (Content Management System) sul quale ho lavorato diversi anni. Avendo installato NodeBB da poche settimane, non lo conosco ancora bene e lo sto testando. Anche questo post è un test. Ci sono ancora diversi aspetti che vorrei approfondire di questo software, come i plugin, i temi grafici, le classi degli stili.