reply with features and bug fixes you’d like to see in Philthy, the lemmy fork that runs on this instance. no guarantees I’ll get to any of them soon, but particularly low-hanging fruit and well-liked features can be prioritized.

  • @froztbyte
    cake
    link
    English
    43 months ago

    reading that made me flinch

    it’s the exact same thinking I see from a lot of node devs (“just slap chained ops on it to express the logic! it’ll be fine. won’t ever need any complexity!”)

    • @selfOPMA
      link
      33 months ago

      you’re gonna hate me but this style of code is usually my jam

      however, the fact that it’s a conditional whose true branch essentially crashes the task for something that happens frequently (this pattern is everwhere in lemmy, and it’s why my logs are almost nothing but long stack traces) is truly godawful

      • @froztbyte
        cake
        link
        English
        43 months ago

        oh I understand the appeal: it is rapid to express on the fly without breaking flow and enumerating through failure cases. and, for a bit of leeway, there is the upside that rust’s rich return styles affords better actual expression/handling

        but ime each site the pattern gets used for barely holds out at that approach over time (for all but the very simplest cases), and you always discover this far later, when the appropriate context has gotten paged out of all relevant peoples heads

        • @froztbyte
          cake
          link
          English
          33 months ago

          (at one of my old clients, an :aa-gun: emoji was added exclusively because of my code reviews)