this post was submitted on 18 Jul 2024
608 points (98.1% liked)

Technology

59187 readers
2746 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 13 points 3 months ago (1 children)

I don’t mind the pop up as much as I mind it being a pop up that tells you to go to another menu to change the setting. Why not just put the setting in the pop up?

[–] [email protected] -1 points 3 months ago (2 children)

Thats how you get spaghetti code.

[–] [email protected] 6 points 3 months ago

It's really not that complicated.

You give the information on where the setting is, then have an "enable now" button that calls the exact same function as clicking the toggle on the other page does. Having multiple ways to do the same thing isn't unusual and is trivial with properly designed code.

[–] [email protected] 2 points 3 months ago

No. It isn't. The setting in the modal should act as a convenience component that doesn't have any of its own data. It only modifies the value in the original source of truth. Once the modal has been used, it should never pop up again, as the assumption will be if the user has interacted with the modal, they are now aware of the setting and can set it themselves from the original source of truth. Unless of course you consider any feature speghettification