Salta al contenuto
0
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Old Web Site
  • Recenti
  • Popolare
  • Tag
  • Utenti
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Old Web Site
  • Recenti
  • Popolare
  • Tag
  • Utenti
Skin
  • Chiaro
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Scuro
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Predefinito (Nessuna skin)
  • Nessuna skin
Collassa

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
  1. Home
  2. Categorie
  3. Technical Discussion
  4. One regret I have about ActivityPub is that navigating reverse chronological collections is really error-prone.

One regret I have about ActivityPub is that navigating reverse chronological collections is really error-prone.

Pianificato Fissato Bloccato Spostato Technical Discussion
5 Post 3 Autori 26 Visualizzazioni
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Risposta alla discussione
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • evan@cosocial.ca
    evan@cosocial.ca
    evan@cosocial.ca
    scritto su ultima modifica di
    #1

    One regret I have about ActivityPub is that navigating reverse chronological collections is really error-prone. "first", "last", "next" and "prev" mean the opposite of what you think they mean, so it's easy to get mixed up and navigate things the wrong way.

    It's too late to change now, but I could see adding some synonyms for these properties, like "newest", "oldest", "older" and "newer", to make it easier to do the navigation code.

    flancian@social.coop julian@activitypub.space 2 Risposte Ultima Risposta
    1
    0
    • evan@cosocial.ca evan@cosocial.ca

      One regret I have about ActivityPub is that navigating reverse chronological collections is really error-prone. "first", "last", "next" and "prev" mean the opposite of what you think they mean, so it's easy to get mixed up and navigate things the wrong way.

      It's too late to change now, but I could see adding some synonyms for these properties, like "newest", "oldest", "older" and "newer", to make it easier to do the navigation code.

      flancian@social.coop
      flancian@social.coop
      flancian@social.coop
      scritto su ultima modifica di
      #2

      @evan could this be fixed by a future version? Or given that the set is not overlapping I guess they could be provided concurrently for compatibility?

      evan@cosocial.ca 1 Risposta Ultima Risposta
      0
      • julian@activitypub.space julian@activitypub.space ha condiviso questa discussione su
      • evan@cosocial.ca evan@cosocial.ca

        One regret I have about ActivityPub is that navigating reverse chronological collections is really error-prone. "first", "last", "next" and "prev" mean the opposite of what you think they mean, so it's easy to get mixed up and navigate things the wrong way.

        It's too late to change now, but I could see adding some synonyms for these properties, like "newest", "oldest", "older" and "newer", to make it easier to do the navigation code.

        julian@activitypub.space
        julian@activitypub.space
        julian@activitypub.space
        scritto su ultima modifica di
        #3

        evan@cosocial.ca what about after? Using paginated collections is easy, but could be problematic if the set changes while you are navigating.

        Using after is a little more complicated but much more reliable in terms of getting exactly the next set of items.

        1 Risposta Ultima Risposta
        0
        • evan@cosocial.ca
          evan@cosocial.ca
          evan@cosocial.ca
          scritto su ultima modifica di
          #4

          @julian Pages should be real containers, not slices of the collection like "last 25 items".

          1 Risposta Ultima Risposta
          0
          • Sistema ha condiviso questa discussione su
          • flancian@social.coop flancian@social.coop

            @evan could this be fixed by a future version? Or given that the set is not overlapping I guess they could be provided concurrently for compatibility?

            evan@cosocial.ca
            evan@cosocial.ca
            evan@cosocial.ca
            scritto su ultima modifica di
            #5

            @flancian It's an egregiously backwards-incompatible change, so probably no.

            1 Risposta Ultima Risposta
            0

            Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.

            Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.

            Con il tuo contributo, questo post potrebbe essere ancora migliore 💗

            Registrati Accedi
            Rispondi
            • Risposta alla discussione
            Effettua l'accesso per rispondere
            • Da Vecchi a Nuovi
            • Da Nuovi a Vecchi
            • Più Voti


            Feed RSS
            One regret I have about ActivityPub is that navigating reverse chronological collections is really error-prone.
            @pierobosio@soc.bosio.info
            NodeBB Contributors
            • Accedi

            • Accedi o registrati per effettuare la ricerca.
            • Primo post
              Ultimo post