originalfrozenbanana

joined 11 months ago
[–] [email protected] 3 points 2 months ago (6 children)

Isn’t what illegal? They are allowed to determine how you access their gym.

[–] [email protected] 2 points 2 months ago* (last edited 2 months ago) (6 children)

Yes that’s absolutely what will happen. They likely have language in the contract you signed allowing them to do just that.

You are paying for access to the gym. They don’t have to provide you access via a card or a list or an app - they probably specify that they can refuse access for a variety of reasons, including “safety and privacy” or some shit they can shoehorn an app into. You don’t have a legal right to access a place via the mechanism you choose.

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

That isn’t how contracts work

[–] [email protected] 92 points 2 months ago (23 children)

And they will say you can’t go to the gym, then. I agree this is enshittification but this isn’t a magic trick that lets you bypass the app

[–] [email protected] 40 points 2 months ago* (last edited 2 months ago) (2 children)

In 20 years cell phones (as phones not portable computers) went from a tool that united people in new and exciting ways to a way for solicitors to spam us. It’s to the point that I don’t know anyone who answers their phone if they don’t have the caller’s number saved.

This is a choice that we have made. We could legislate this behavior and we as a society choose to act as if it is inevitable.

[–] [email protected] 0 points 2 months ago (2 children)

I don’t really think political spending is going towards Lemmy trolls, much less like…national propaganda spending. Shitty advertising bots maybe.

[–] [email protected] 0 points 2 months ago (4 children)

No one is paying troll farms to go comment on lemmy though

[–] [email protected] 5 points 9 months ago* (last edited 9 months ago) (1 children)

User inputs are strings, which can be anything. You are hoping they input True or false but what if they input tRUe or FALSE77 or Hunter4 or jgidqopqncb uriwnsvsveyqiaoNcbtjwnak? bool(“tRUe”) doesn’t evaluate to True or False in the way you think it does.

If you want to convert user input to a bool use a lookup dict with some validation rules (like lower casing input text) to sanitize the input. I cannot emphasize this enough - never trust user input.

[–] [email protected] 5 points 9 months ago

Which is really bad if the user inputs executable code. Never call eval on unsanitized text

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

I have to imagine the ternary operator would still count as an if statement in spirit

[–] [email protected] 2 points 9 months ago* (last edited 9 months ago) (9 children)

Without if statements?

Apologies typing on my phone

def input_checker(input_str):

input_str = input_str.lower()

validation_dict = {“true”: “they input true”,
                               “false”: “they input false”}

return validation_dict.get(input_str, “They input something else”)

You are comparing the content of strings, not their truth value. A string is true if it’s not empty and false if it is. The string “True” is no closer to the bool True than the string “Oranges” is.

What you are looking for is input validation. Check the content of what they wrote and respond accordingly.

[–] [email protected] -1 points 10 months ago

Like you, we’re all bots.

view more: ‹ prev next ›