• 0 Posts
  • 187 Comments
Joined 1 year ago
cake
Cake day: July 2nd, 2023

help-circle









  • Hi! Professional android dev here who has done some work on migrating an app to foldable:

    Apps don’t guess. If they’re using XML they make specific layouts for a given width of screen.

    If they’re using compose it’s even easier: the entire UI library is built for adaptive layouts. The main issue is a lot of apps are not in compose UI (or not entirely) - and material 3 has excellent components but it’s even less widely used.

    Tldr: tech debt

    A potential cause of the wonkiness is explicitly setting resizeableActivity="false" in the app manifest.



  • Theory is fine but in the real world I’ve never used a REST API that adhered to the stateless standard, but everyone will still call it REST. Regardless of if you want it or not REST is no longer the same as it’s original definition, the same way nobody pronounces gif as “jif” unless they’re being deliberately transgressive.

    403 can be thrown for all of those reasons - I just grabbed that from Wikipedia because I was too lazy to dig into our prod code to actually map out specifics.

    Looking at production code I see 13 different variations on 422, 2 different variations of 429…


  • 403 is a category, not a code. Yes I know they’re called http codes but REST calls are more complex than they were in 2001. There are hundreds of reasons you might not be authorized.

    Is it insufficient permissions? Authentication required? Blocked by security? Too many users concurrently active?

    I’d argue the minimum for modern services is:

    403 category
    Code for front end error displays
    Message as default front end code interpretation

    As json usually but if you’re all using protobuf, go off King.




  • It’s the inverse that is true actually -

    As Lemmy becomes more popular it will drift from being so tech focused.

    Many popular sites gradually drifted off of tech focus as their user base grew. R*ddit is a prime example of how a very nerdy niche site grew and shifted to be popular (sorta) organically.

    I do think that for all the hullabaloo about Ellen Pao and banning a bunch of subreddits - that actually did more to open the place up to users who were otherwise driven away by /r/FatPeopleHate and /r/Jailbait being on the front page all the time.

    If Lemmy were to change to attract users it would likely be from increased defederation with instances that are less palatable to mainstream society.